[已解決]請教,有個主機名稱nslookup可以解析,但ping程序不能獲得IP
bind 9.3.4-P1版本,需要解析filesvr到192.168.8.201,我建了filesvr的zone,定義「@ IN A 192.168.8.201」,在windows下的結果如下。
C:\>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
C:\>nslookup filesvr
Server: jpdns1test.gzjp.cn
Address: 192.168.8.99
Name: filesvr
Address: 192.168.8.201
C:\>ping filesvr
Ping request could not find host filesvr. Please check the name and try again.
比較鬱悶,,可以解析但不能訪問,,在linux的主機下是可以正常ping通filesvr的,但windows就是不行。難道解析域名的方法不一樣?請大家幫忙
[ 本帖最後由 jxndccc 於 2009-3-16 12:27 編輯 ]
《解決方案》
解析域名的方法是一樣的,只是移植的平台不一樣罷了。
有沒有嘗試換個windows的客戶機測試呢?
你這裡的filesvr是主機名嗎?
主機名是不需要域名解析的。
windows的DNS伺服器設置的是哪個?
C:\>nslookup【回車】
再輸入域名可以解析嗎?
《解決方案》
感謝幫忙。
換過windows客戶機測試,是一樣的不行。。不過這些windows 客戶機都是工作組模式,未加入域,與filesvr不在一個網段。
filesvr是一台文件伺服器的主機名,不屬於任何域,主機名只有"filesvr"字元,沒有類似.xx.cn的後綴,因為是跨網段訪問所以想做域名解析。
C:\>nslookup【回車】是可以解析的,就是不能訪問,ping不出IP來
C:\Documents and Settings\Administrator>nslookup
Default Server: jpdns1test.gzjp.cn
Address: 192.168.8.99
> filesvr
Server: jpdns1test.gzjp.cn
Address: 192.168.8.99
Name: filesvr
Address: 192.168.8.201
《解決方案》
ping 192.168.8.201 通不通?
《解決方案》
肯定通的。。呵呵,,,這要不通的話俺就成大白了。
C:\>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
C:\>nslookup filesvr
Server: jpdns1test.gzjp.cn
Address: 192.168.8.99
Name: filesvr
Address: 192.168.8.201
C:\>ping 192.168.8.201
Pinging 192.168.8.201 with 32 bytes of data:
Reply from 192.168.8.201: bytes=32 time=1ms TTL=63
Ping statistics for 192.168.8.201:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
Control-C
^C
C:\>ping filesvr
Ping request could not find host filesvr. Please check the name and try again.
《解決方案》
主機名是不需要域名解析的。
編輯C:\WINDOWS\system32\drivers\etc,添加
192.168.8.201 filesvr
《解決方案》
ping主機名是不會去DNS伺服器解析,但我ping filesvr. ,加個點就行了。
如果在HOSTS里加192.168.8.201 filesvr行的話,幾百台PC不都要加了,我就是想不加HOSTS,在DNS伺服器上搞定這個東西。
《解決方案》
先ping filesvr. 加點的 ,然後PING通了,再ping filesvr 不加點的,,然後也通了。。ipconfig /flushdns清除緩存,ping filesvr不加點的,又不通了。。HOHO,看來解決不了了。
《解決方案》
回復 #1 jxndccc 的帖子
tcp/ip配置中DNS的高級選項有一個DNS的後綴信息填寫上jpdns1test.gzjp.cn
《解決方案》
windows ping不通是吧?
可能扯遠了,我記得win98~2000的年代,MS windows出過一個bug,
用戶訪問網路鄰居共享的時候會跑到公網DNS上去解析主機名,因為是單體域名,往往被遞交到根域伺服器上解析
大量的windows客戶端訪問文件共享,導致DNS根域伺服器壓力過大,後來微軟發補丁解決了這個問題。
或許現在的windows看到結尾不是「.」的單體域名,就不會送給DNS解析,直接走WINS了..