
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.
(この質問は、TLD があり、ローカル ドメインではないという点で他の質問とは異なります。)
更新: 私は localhost (127.0.0.1) で DNS サーバーを実行しています。たとえば、opendns を使用するように変更しても、ホスト名の nslookup と IP アドレスの ping はできますが、ホスト名の 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:
皆様のご協力とご提案に感謝します。感謝します。
Ipconfig /flushdns は次のように返します: DNS リゾルバ キャッシュが正常にフラッシュされました
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
、DNSサーバーにアドレスを問い合わせる代わりに、192.168.7.255にパケットを送信します。
アップデート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
答え1
DNS として自分自身 (127.0.0.1) を使用しています... 本当にそう思っていますか? 自分のマシンで DNS サーバー サービスを実行している場合は、nslookup が機能します。
ネットワーク アダプタで DNS が正しく設定されていることを確認します。
答え2
興味深いことに、サーバー上で DNS を使用しており、ISP の DNS サーバーを指す DNS フォワーダーを設定しているため、サーバーの DNS を 127.0.0.1 に設定しましたか?
その場合は、次のようなテストを試すことができます。サーバー アダプターの DNS を、ISP の DNS サーバーを直接ポイントするように設定します。その時点で、ipconfig /flushdns を実行したり、再起動したりして、もう一度試すことができます。その方法で、さらに情報が得られる可能性があります...