• DNS 失效问题解决~~ - [椒图之门 Code]

    2009-07-09

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://fuckui.net/logs/42122195.html

    遇到一个很奇怪的问题。
    有AB两台机器,配置一样,装的2003系统。内网使用一直是主板自带的网卡,半年来一切正常,最近机器A开始出现打不开网页症状,浏览器有时需多次刷新才能打开,但是直接输入网址可以打开,而机器B一直正常。网络设置、DNS地址都没有任何问题,而且防火墙设置也没有差错,很囧!由于这台机器有重要数据不可以重装(介个是某部门说的,汗一个)~~~只能自己解决。
    遛狗后终于找到一篇文章:


    ----------------------------------------------------------------------------
    有趣案例一个(DNS失效)
    本文网址
    http://bbs.bitscn.com/190474
    英文原文:http://www.windowsreference.com/windows-xp/fix-for-ping-request-could-not-find-host-fqdn-of-server-error/

    有时候你可能会发现,当你想要输入一个网站的域名访问的时候无法访问,但是使用IP地址访问却能访问到,当你ping这个域名时,会得到类似如下的信息:
    Ping request could not find host “你想要访问的那个域名”. Please check the name and try again.
    但这个时候你会发现使用ip或者NetBIOS名访问这个服务器,是没有问题的;同时,使用nslookup工具测试DNS,也会得到所有DNS工作正常的结果。
    ……………………………………………………………………………………………………………………………………
    然后是一句话没看懂
    By default DNS client service rejects resolution of DNS records in top level domain (TLD) that has a purely numeric suffix.
    大概是说dns客户端(也就是我们的winxp上的dns客户端)默认设置会拒绝来自顶级域的某种dns纪录。
    ……………………………………………………………………………………………………………………………………
    尝试解决的方法如下:在注册表中添加一个ScreenBadTlds键值,然后重新启动DNS客户端服务。
    添加ScreenBadTlds键值方法如下:
    点开始-〉运行-〉输入regedit-〉定位到
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
    这个键值。
    然后点编辑-〉新建-〉dword值,将该值命名为ScreenBadTlds,右键点这个值,选择编辑,然后将键值修改为0。关闭注册表编辑器regeidt。
    然后重新启动dns客户端服务:
    点开始-〉运行-〉cmd,然后在命令行模式下输入:
    net stop DNScache
    net start DNScache
    然后退出命令行模式既可。
    (我没有试验过,不过碰到这种故障的人似乎也很少,觉得有意思,因此翻译过来了)

    ----------------------------------------------------------------------------

     

    感谢 中国网管论坛 的  iamshiyu 大大~~

     

    英文原文如下:

    ----------------------------------------------------------------------------
    Fix for Ping request could not find host “FQDN of server” Error

    When you try to connect to server by fully qualified domain name (FQDN) which resides in top level domain (TLD) that has a purely numeric suffix, connection is failed. If server is domain controller issue also affects establishing trusts and domain joins.
    When you try to PING server by FQDN you receive the following error message:
    Ping request could not find host “FQDN of server”. Please check the name and try again.
    Connection to the server by IP or by NetBIOS name is succeeding.When this issue occurs, all Domain Name System (DNS) records are correctly returned by NSLOOKUP. Therefore, DNS is fully functional and is not part of this issue.
    By default DNS client service rejects resolution of DNS records in top level domain (TLD) that has a purely numeric suffix.
    Procedure to Follow
    To resolve this problem, add the ScreenBadTlds registry entry and restart DNS client service. Adding this registry entry prevents the DNS client service from performing the test to determine whether the top level domain is supported.
    To add this registry entry and restart DNS client service, follow these steps.
    1. Click Start, and then click Run, type regedit in Open box, and then press ENTER.
    2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
    3. On the Edit menu, point to New, and then click DWORD Value.
    4. Type ScreenBadTlds, and then press ENTER.
    5. Right-click ScreenBadTlds, and then click Modify.
    6. In the Value data box, type 0, and then click OK.
    7. Exit Registry Editor.
    8. Stop and then start the DNS client service. To do so:
    a.  Click Start, and then click Run.
    b.  In the Open box, type cmd, and then click OK.
    c.  At the command prompt, type the following lines. Press ENTER after each line
    net stop DNScache
    net start DNScache
    d.  Type exit to quit Command Prompt.

    ----------------------------------------------------------------------------

     

    正是我遇到的问题。已经解决~~~~吼吼~


    历史上的今天: