【发布时间】:2010-09-24 17:30:22
【问题描述】:
我正在我的公寓里设置一个开发服务器。我已经在其上设置了一个 Ubuntu DNS 服务器并添加了区域婚礼列表(只是婚礼列表 - 没有 TLD。它只是一个内部域。)
这在我的 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.
我的ipconfig:
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,也无法访问 www.weddinglist 上的网页。
如何使 ping 能够在 Windows PC 上运行?
【问题讨论】:
-
您查看过您的主机文件吗?
-
你能提供'weddinglist'的区域文件吗?如果没有,您能否说明您是否在该区域中获得了主机的 A 记录?
-
为了避免 Alnitak 解释的问题(软件在找不到点时添加“.something”),我建议使用带点的名称,如有必要,使用官方 TLD,如“.example” .如果您使用“www.mysite.example”进行测试,您将不会遇到这些问题。
-
应该迁移到超级用户
-
这是一个重复的超级用户问题superuser.com/questions/495759/…