2 domain-name-system windows-server-2008
我使用的是 Windows Server 2008 并安装了 iis7。我输入命令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
Run Code Online (Sandbox Code Playgroud)
此外,当我在命令提示符中输入命令主机名时,我得到了正确的主机名。我仍然无法 ping 主机名。有与我遇到的问题类似的帖子,我已经阅读了这些帖子,但仍然无法解决问题。
更新:
@Mark 我在那台机器上没有设置 DNS 服务器。设置也是如此。按照此链接,但似乎我无法正确配置。所以我被困在同一个地方。
我不是服务器管理员,就像你们中的大多数人一样,所以对“服务器名称”和主机 (A) 记录等可用选项不太清楚。看起来这就是事情出错的地方。
@ByITDesign 我不能这样做,因为我无法通过同一台机器的机器名称 ping 服务器。我以为我也这样做了,但后来意识到这不是正确的事情。所以现在我通过 IP 地址访问服务器。
小智 5
该错误消息意味着它找不到 Decisons_Win2008 的 DNS 条目。您在 192.168.19.1 有一个 DNS 服务器,但其中没有 Decisons_Win2008 的条目。
什么是生活在 192.168.19.1 上?那是域控制器吗?如果是这样,那么将 Decision_Win2008 添加到域应该会使其自动更新 DNS 中的 A 记录。否则,您需要手动将其添加到 DNS 服务器。