我正在我的公寓里设置一个开发服务器。我已经在其上设置了一个 Ubuntu DNS 服务器,并添加了区域 weddinglist(只是 weddinglist - 没有TLD http://en.wikipedia.org/wiki/Top-level_domain。这只是一个内部域。)
这在我的 Ubuntu 笔记本电脑上运行良好。
在我所有的 Windows PC(Vista 和 XP)上,我从命令提示符处得到以下信息:
C:\Users\Giles Roadnight>nslookup weddinglist
Server: UnKnown
Address: 192.168.0.40
Name: weddinglist
Address: 192.168.0.41
C:\Users\Giles 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:\Users\Giles Roadnight>ping weddinglist
Ping request could not find host weddinglist. Please check the name and try again.
我的ip配置:
C:\Users\Giles 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 通,也无法访问 weddinglist 上的网页。
如何使 ping 适用于 Windows PC?
Windows 内部解析程序可能会将“.local”添加到域名中,因为其中没有点。nslookup
不会那样做的。
要验证这种可能性,请在客户端计算机上安装“Wireshark”(以前称为 Ethereal),并在运行以下命令时观察离开该计算机的任何 DNS 请求数据包:ping
命令。
好吧,在我家里的 XP 机器上进一步调查发现,对于单标签名称(即“foo”或“foo.”),系统根本不使用 DNS,而是使用 NBNS(NetBios 名称服务)。
使用位于以下位置的提示http://www.chicagotech.net/netforums/viewtopic.php?t=1476 http://www.chicagotech.net/netforums/viewtopic.php?t=1476,我发现我能够通过放置一个读取“.”的条目来强制对单个标签域进行 DNS 查找。在里面 ”附加这些 DNS
后缀(按顺序)“ 在里面 ”高级 TCP/IP 设置" dialog
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)