无法通过主机名称ping机器,但我可以通过它的ip地址ping通

我正在使用Windows Server 2008并安装了iis7。 我input命令ping <hostname> ,我得到的错误: Ping request could not find the host name.

当我做了ipconfig -all

 "C:\Users\Administrator>ipconfig -all Windows IP Configuration Host Name . . . . . . . . . . . . : Decisons_Win2008 Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection Physical Address. . . . . . . . . : 00-0C-29-F2-71-6A DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::61bc:3d4b:76d1:2387%11(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.168.167(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : 12 July 2011 12:39:28 Lease Expires . . . . . . . . . . : 13 July 2011 12:39:27 Default Gateway . . . . . . . . . : 192.168.168.168 DHCP Server . . . . . . . . . . . : 192.168.168.168 DHCPv6 IAID . . . . . . . . . . . : 234884137 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-15-A0-D6-B6-00-0C-29-DA-6F-43 DNS Servers . . . . . . . . . . . : 192.168.19.1 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.{11E5344A-7083-449F-B326-CECA5F7B43A3}: 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* 9: 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:4137:9e76:1cbf:e96:3f57:5758(Prefe rred) Link-local IPv6 Address . . . . . : fe80::1cbf:e96:3f57:5758%13(Preferred) Default Gateway . . . . . . . . . : :: NetBIOS over Tcpip. . . . . . . . : Disabled 

另外,当我在命令提示符中input命令主机名时,我得到正确的主机名。 但我仍然无法ping主机名称。 有类似的问题,我已经阅读了这些post,仍然无法解决问题。

更新:

@Mark我没有在该机器上设置DNS服务器。 所以做的设置。 跟随这个链接 ,但似乎我无法正确configuration。 所以我被困在同一个地方。

我不是一个服务器pipe理员的家伙,像大多数人一样,所以不太清楚可用的选项,如“服务器名称”和主机(A)的logging。 看起来就是那里出了问题。

@ByITDesign我无法做到这一点,因为我无法通过它的机器名称ping相同的机器的服务器。 我以为我也这么做了,但后来才意识到这不是正确的。 所以现在我正在通过IP地址访问服务器。

错误消息意味着它找不到Decisons_Win2008的DNS条目。 你有一个192.168.19.1的DNS服务器,但是它没有Decisons_Win2008的条目。

生活在192.168.19.1上的是什么? 这是一个域控制器? 如果是这样,那么将Decision_Win2008添加到域中会导致它自动更新DNS中的Alogging。 否则,您需要手动将其添加到DNS服务器。

在本地桌面上的主机文件中input也可以解决这个问题。 对位于此处的主机文件进行更改。 C:\ WINDOWS \ SYSTEM32 \ drivers \ etc中

192.168.XX servername

您的DHCP服务器192.168.168.168也可能为您提供DNS服务,在这种情况下,您只需将networking设置设置为“从networking适配器设置中dynamic获取DNS服务器”即可。 它将删除您已经定义的DNS。

希望它有帮助。

为了解决这个问题,我必须configuration我的Windows 2008 Server防火墙

  • 我必须进入开始>控制面板> Windows防火墙>更改设置>选项卡“ 例外 ”>检查“ networking发现
  • 我也必须启用ping请求/响应,如下所述。