在Windows 2003服务器上,我可以nslookup www.google.com返回
Server: localhost Address: 127.0.0.1 Non-authoritative answer: Name: www.l.google.com Addresses: 74.125.79.104, 74.125.79.147, 74.125.79.99 Aliases: www.google.com
我可以再ping 74.125.79.104 :
Pinging 74.125.79.104 with 32 bytes of data: Reply from 74.125.79.104: bytes=32 time=16ms TTL=54 Reply from 74.125.79.104: bytes=32 time=32ms TTL=54 Reply from 74.125.79.104: bytes=32 time=15ms TTL=54 Reply from 74.125.79.104: bytes=32 time=15ms TTL=54 Ping statistics for 74.125.79.104: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 15ms, Maximum = 32ms, Average = 19ms
但是我无法ping www.google.com :
Ping request could not find host www.google.com. Please check the name and try again.
(这一个不同于另一个问题,因为这个是顶级域名,它不是本地域名。)
更新:我在本地主机(127.0.0.1)上运行一个DNS服务器。 即使当我改变它使用例如opendns,它仍然可以nslookup主机名和ping ip地址,但不ping主机名。 那么,什么是错的?
**更新2:**
这里是ipconfig / all的结果:
Windows IP Configuration Host Name . . . . . . . . . . . . : SERVER Primary Dns Suffix . . . . . . . : NETWORK.local Node Type . . . . . . . . . . . . : Unknown IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : NETWORK.local Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet #2 Physical Address. . . . . . . . . : 00-0F-1F-56-3B-AA DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 192.168.7.2 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.7.1 DNS Servers . . . . . . . . . . . : 127.0.0.1
更新3:
感谢大家的帮助和build议。 我很感激。
Ipconfig / flushdns返回:成功刷新DNSparsing器caching
Ipconfig / displaydns返回:
2.7.168.192.in-addr.arpa ---------------------------------------- Record Name . . . . . : 2.7.168.192.in-addr.arpa. Record Type . . . . . : 12 Time To Live . . . . : 0 Data Length . . . . . : 4 Section . . . . . . . : Answer PTR Record . . . . . : webserver.mydomainname.com 1.0.0.127.in-addr.arpa ---------------------------------------- Record Name . . . . . : 1.0.0.127.in-addr.arpa. Record Type . . . . . : 12 Time To Live . . . . : 0 Data Length . . . . . : 4 Section . . . . . . . : Answer PTR Record . . . . . : localhost
更新4:
Wireshark显示如下:
3 11.540542 208.67.220.220 192.168.7.2 DNS Standard query response A 74.125.79.99 A 74.125.79.104 A 74.125.79.147 6 42.056794 192.168.7.2 192.168.7.255 NBNS Name query NB WWW.GOOGLE.COM<00>
这很奇怪:当我ping ,它发送一个数据包到192.168.7.255而不是询问DNS服务器的地址
更新5:
这就是netdig不得不说的:
opcode: Query, status: NoError, id: 42 flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0 QUESTION SECTION: www.google.com. IN A ANSWER SECTION: www.google.com. 86324 IN CNAME www.l.google.com. www.l.google.com. 224 IN A 74.125.79.99 www.l.google.com. 224 IN A 74.125.79.104 www.l.google.com. 224 IN A 74.125.79.147 Query time: 0 ms Server : 192.168.7.2:53 udp (192.168.7.2) When : 1/6/2011 12:33:50 PM Size rcvd : 100
你正在使用你自己(127.0.0.1)作为DNS …你真的是这个意思吗? 如果您的计算机正在运行DNS服务器服务,nslookup将可以正常工作。
确保networking适配器上的DNS设置正确。
只是好奇,你有没有把服务器上的DNS设置为127.0.0.1,因为你在服务器上使用DNS,并且设置了指向你的ISP的DNS服务器的DNS转发器?
如果是这样的话,你可以试试这样的testing。 将服务器适配器上的DNS设置为直接指向您的ISP的DNS服务器。 在这一点上,你可以做一个ipconfig / flushdns和/或重新启动,然后再试一次。 你可能会得到更多的信息.…