如何修复DNS?

最近众多人出现了能上QQ,不能上网页的问题,经过我调查,具有以下特征:
1. 网络正常;
2. 不能通过域名访问网站,但可以通过IP访问网站;
3. 网络程序无法解析域名;
4. 但nslookup可以正常解析域名;
5. 即使修改hosts文件,也无法解析;
6. QQ正常是因为有DNS缓存

故 我怀疑DNS客户端损坏,但dns客户端是windows的基础之一不知可否修复。
于是 我上网查了查,得到以下文章:

Manually repair Windows XP / 2000 DNS lookup properties

Doing this with Windows XP and 2000 is a little harder, due to the fact that TCP/IP cannot be removed, and if you delete the keys from the registry they will automatically be recreated, but empty.

First, you need to reset the TCP stack using Netsh. Click Start->Run and type in "netsh int ip reset resetlog.txt"

The default values for the reg keys are the same on all machines, so you can transplant them from a known good machine.

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Winsock
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Winsock2

Here is an export of the good keys, although I have personally never used them. I take no responsibility if it crashes the system it is used on. (Set a restore point beforehand) Windows generally will not load networking when in safe mode, so boot to safe mode to replace the keys.

You'll now want to clear out your hosts file. The path to it is: Windows/system32/drivers/etc/Hosts. Simply open it in notepad and delete any entries you find in it. Save it, and you're done. It may be a good idea to save a backup of it beforehand, but I can't imagine you needing it.

Once that is done, reboot.

 

 

(1) 在开始执行,输入“netsh int ip reset resetlog.txt”
(2) 到另外一台正常电脑上,汇出登陆码
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Winsock
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Winsock2
(3) 进入安全模式,删除这些旧登陆,并汇入新的。
(4) 重新开机试看看!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值