DNS 问题,nslookup 有效,ping 无效 [英] DNS problem, nslookup works, ping doesn't

查看:26
本文介绍了DNS 问题,nslookup 有效,ping 无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的公寓里设置一个开发服务器.我已经在其上设置了一个 Ubuntu DNS 服务器并添加了区域婚礼列表(只是婚礼列表 - 没有 TLD.它只是一个内部域.)

I am setting up a development server in my flat. I have set up an Ubuntu DNS server on it and have added the zone weddinglist (just weddinglist - no TLD. It's just an internal domain.)

这在我的 Ubuntu 笔记本电脑上运行良好.

This works fine on my Ubuntu laptop.

在我所有的 Windows PC(Vista 和 XP)上,我从命令提示符处得到以下信息:

On all my Windows PCs (Vista and XP) I get the following from the command prompt:

C:UsersGiles Roadnight>nslookup weddinglist
Server:  UnKnown
Address:  192.168.0.40

Name:    weddinglist
Address:  192.168.0.41


C:UsersGiles Roadnight>ping 192.168.0.41

Pinging 192.168.0.41 with 32 bytes of data:
Reply from 192.168.0.41: bytes=32 time<1ms TTL=64
Reply from 192.168.0.41: bytes=32 time<1ms TTL=64
Reply from 192.168.0.41: bytes=32 time<1ms TTL=64
Reply from 192.168.0.41: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.0.41:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:UsersGiles Roadnight>ping weddinglist
Ping request could not find host weddinglist. Please check the name and try again.

我的 ipconfig:

My ipconfig:

C:UsersGiles Roadnight>ipconfig -all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : Giles-Desktop
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Marvell Yukon 88E8001/8003/8010 PCI Gigabit Ethernet Controller
   Physical Address. . . . . . . . . : **-**-**-**-**-**
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::f179:680f:f313:5448%8(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.5(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.0.1
   DNS Servers . . . . . . . . . . . : 192.168.0.40
   NetBIOS over Tcpip. . . . . . . . : Enabled

我很确定我的 DNS 设置正常,因为 nslookup 正常,但我无法 ping 并且无法访问婚礼列表中的网页.

I am pretty sure that I have the DNS set up OK as the nslookup is OK but I can't ping and I can't access webpages at weddinglist.

如何使 Windows PC 的 ping 工作?

How can I make ping work for the Windows PCs?

推荐答案

可能是 Windows 内部解析器将.local"添加到域名中,因为其中没有点.nslookup 不会这样做.

It's possible that the Windows internal resolver is adding '.local' to the domain name because there's no dots in it. nslookup wouldn't do that.

要验证这种可能性,请在您的客户端计算机上安装Wireshark"(以前称为 Ethereal),并在您运行 ping 命令时观察任何离开它的 DNS 请求数据包.

To verify this possiblity, install 'Wireshark' (previously aka Ethereal) on your client machine and observe any DNS request packets leaving it when you run the ping command.

好的,在我自己家里的 XP 机器上的进一步调查显示,对于单个标签名称(即foo"或foo"),系统根本不使用 DNS,而是使用 NBNS(NetBios 名称服务)).

OK, further investigation on my own XP machine at home reveals that for single label names (i.e. "foo", or "foo.") the system doesn't use DNS at all, and instead uses NBNS (NetBios Name Service).

使用在 http://www.chicagotech.net/netforums 中找到的提示/viewtopic.php?t=1476,我发现我可以通过放置一个读取."的条目来强制对单标签域进行 DNS 查找.在附加这些 DNS高级 TCP/IP 设置"对话框中的后缀(按顺序)

Using a hint found at http://www.chicagotech.net/netforums/viewtopic.php?t=1476, I found that I was able to force DNS lookups for single label domains by putting a single entry reading "." in the "Append these DNS suffixes (in order)" in the "Advanced TCP/IP settings" dialog

这篇关于DNS 问题,nslookup 有效,ping 无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆