无法通过 DNS 域名 ping 计算机

无法通过 DNS 域名 ping 计算机

我有两台台式电脑,最近又安装了第三台电脑,一台 Windows Server 2012 机箱,我为它安装了 DNS,并将其设置为域控制器。我成功地将每台电脑设置为新域的一部分。有一个路由器,可以连接到外部世界。

问题:我无法通过完全合格的 DNS 域名 ping 另一台计算机。我还设置了 A 记录,但两台计算机都无法 ping 通。

域:myoffice.com 计算机:ComputerA、ComputerB 完全限定名称:ComputerA.myoffice.com 和 ComputerB.myoffice.com

每台计算机都可以使用计算机名称或其完全限定名称 ping 自己。但是,服务器可以 ping 任何一台计算机。

每台计算机的主 DNS 网关设置为服务器的 IP 地址,辅助网关设置为路由器的 IP 地址。路由器提供所有 DHCP 地址。

我在 DNS 管理器中的 [DNS | | 正向查找区域 | myoffice.com] 中创建了一条新的 A 记录,将 mail.myoffice.com 设置为服务器的 IP 地址。两个工作站都看不到新的 A 记录。我甚至执行了“ipconfig /flushdns”,但这没有帮助。

显然,我没有做我应该做的事情。我该如何解决问题?

更新:每台客户端计算机都可以通过其计算机名称 ping 域控制的 IP 地址,但不能 ping 服务器的完全限定域名。

nslookup 的输出:C:\Users\sarah>nslookup bvoffice.com 服务器:未知 地址:fe80::224:b2ff:fe57:9758

*** bvoffice.com 没有可用的 IPv4 和 IPv6 地址 (A+AAAA) 记录的内部类型

计算机 A IP 配置输出

ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : Sarah-PC
   Primary Dns Suffix  . . . . . . . : bvoffice.com
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : bvoffice.com

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   Physical Address. . . . . . . . . : 2C-D0-5A-08-42-80
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) 82579V Gigabit Network Connection
   Physical Address. . . . . . . . . : 70-54-D2-7E-23-FB
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2002:4cad:f3e4:e472:b8c0:dfcb:ee45:c6a1(Preferred)
   Temporary IPv6 Address. . . . . . : 2002:4cad:f3e4:e472:1dbe:3610:a70b:314d(Preferred)
   Link-local IPv6 Address . . . . . : fe80::b8c0:dfcb:ee45:c6a1%13(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.9(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, July 3, 2013 12:56:23 PM
   Lease Expires . . . . . . . . . . : Friday, July 5, 2013 2:29:40 PM
   Default Gateway . . . . . . . . . : fe80::224:b2ff:fe57:9758%13
                                       192.168.0.1
   DHCP Server . . . . . . . . . . . : 192.168.0.1
   DHCPv6 IAID . . . . . . . . . . . : 275797202
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-50-2E-76-70-54-D2-7E-23-FB
   DNS Servers . . . . . . . . . . . : fe80::224:b2ff:fe57:9758%13
                                       192.168.0.8
                                       192.168.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{D8E204FB-BED9-4124-A71F-4A787C17CC6B}:

           Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6ab8:3c4e:1fb:b352:c1b(Preferred)
                   Link-local IPv6 Address . . . . . : fe80::3c4e:1fb:b352:c1b%17(Preferred)
   Default Gateway . . . . . . . . . :
   NetBIOS over Tcpip. . . . . . . . : Disabled

服务器 IP 信息

Windows IP Configuration

   Host Name . . . . . . . . . . . . : BvOffice-Server
   Primary Dns Suffix  . . . . . . . : bvoffice.com
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : bvoffice.com

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) 82567V-2 Gigabit Network Connection
   Physical Address. . . . . . . . . : .......
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2002:4cad:f3e4:e472:191b:925d:194c:f862(Preferred)
   Link-local IPv6 Address . . . . . : fe80::191b:925d:194c:f862%12(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.8(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : fe80::224:b2ff:fe57:9758%12
                                       192.168.0.1
   DHCPv6 IAID . . . . . . . . . . . : 259027388
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-4E-EB-C4-70-71-BC-C2-87-67
   DNS Servers . . . . . . . . . . . : ::1
                                       192.168.0.1
                                       127.0.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{F8DDE0EA-4905-44FC-A7AB-A2305032D53A}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 11:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

ComputerB IP 信息

Windows IP Configuration

   Host Name . . . . . . . . . . . . : Eniko-PC
   Primary Dns Suffix  . . . . . . . : bvoffice.com
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : bvoffice.com

Wireless LAN adapter Local Area Connection* 12:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 12-26-82-75-A3-06
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   Physical Address. . . . . . . . . : CC-52-AF-C8-ED-C1
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) 82567V-2 Gigabit Network Connection
   Physical Address. . . . . . . . . : ..........
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2002:4cad:f3e4:e472:c436:3a32:a4d5:2ab8(Preferred)
   Temporary IPv6 Address. . . . . . : 2002:4cad:f3e4:e472:51de:2b58:ba08:d13d(Preferred)
   Link-local IPv6 Address . . . . . : fe80::c436:3a32:a4d5:2ab8%13(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.4(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Sunday, June 30, 2013 8:47:01 AM
   Lease Expires . . . . . . . . . . : Friday, July 5, 2013 2:52:38 PM
   Default Gateway . . . . . . . . . : fe80::224:b2ff:fe57:9758%13
                                       192.168.0.1
   DHCP Server . . . . . . . . . . . : 192.168.0.1
   DHCPv6 IAID . . . . . . . . . . . : 367028629
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-6A-5C-11-00-26-82-75-A3-06
   DNS Servers . . . . . . . . . . . : fe80::224:b2ff:fe57:9758%13
                                       192.168.0.8
                                       192.168.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Wi-Fi:

   Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Qualcomm Atheros 802.11 a/b/g/n Dualband Wireless Network
   Physical Address. . . . . . . . . : 00-26-82-75-A3-06
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{0DD203E4-1E86-4994-A801-1475B5B30BAD}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6ab8:3c67:19c3:3f57:fffb(Preferred)
   Link-local IPv6 Address . . . . . : fe80::3c67:19c3:3f57:fffb%18(Preferred)
   Default Gateway . . . . . . . . . :
   NetBIOS over Tcpip. . . . . . . . : Disabled

答案1

DNS 设置不正确。DNS IP 指向 DNS 服务器,“DNS 网关”这一术语不正确且具有误导性,因为 DNS 服务器仅响应查询,而不执行任何数据包路由。

在 Windows 服务器上:
- 在 IPv4 TCP/IP 属性中将主 DNS 服务器更改为 192.168.0.8(无辅助 DNS)
- 执行“ipconfig /registerDNS”,然后重新启动。

在 DHCP 服务器范围内(当前为路由器):
- 将主 DNS 服务器更改为 192.168.0.8(Windows 服务器 IP) -
除非 LAN 上有第二个 AD DNS 服务器,否则不要使用辅助 DNS 服务器。

请注意,如果 Windows 服务器已安装好,并且服务器上已完成 DHCP 且已启用 DDNS,则网络浏览效果会更好。请参阅:
http://technet.microsoft.com/en-us/library/cc771255.aspx http://en.wikipedia.org/wiki/Dynamic_DNS#Function

工作站:
完成上述更改后,重新启动或“ipconfig /renew”。

是的,如果 Windows DNS 服务器瘫痪,互联网也会瘫痪。如果是这样,那么问题就会更大,此时可以启用路由器上的 DHCP 作用域。

由于 AD 依赖于 DNS,因此内部工作站应仅使用内部 AD DNS 服务器。使用外部辅助 DNS 会导致 AD 域中出现不可预测的浏览、登录和网络性能问题。

使用 .com 域名(例如 BVOffice.com)作为 AD 名称通常会有问题,在我看来不推荐。目前没有公共 DNS 记录,但如果这不是您的域名,那么我要么购买它,但我仍然会将内部 AD 名称更改为 bvoffice.local。使用 .com 作为 AD 名称可以管理(大多数情况下...),但需要对 DNS 和 TCP/IP 有很好的了解。

答案2

您的两个客户端的 DNS 设置都指向域控制器以外的服务器。我建议手动尝试使用指定服务器查找 FQDN。例如, nslookup google.com 8.8.8.8使用 DNS 服务器 8.8.8.8 查找 google.com。将 8.8.8.8 替换为您的域控制器的 IP,将 google.com 替换为您域上的 FQDN。如果可行,请删除除 DC 之外的所有其他 DNS 客户端设置。

相关内容