Windows-Server-2003

Windows nslookup 的“預設伺服器:未知”是什麼意思

  • June 24, 2019

我想在您的幫助下解決一個關於 Windows 上的 nslookup 的問題。請參閱下面的我的 CMD 命令(在 WinXP SP2 上執行)。

C:\>ipconfig /all

Windows IP Configuration

       Host Name . . . . . . . . . . . . : vchjXPsp3MUI
       Primary Dns Suffix  . . . . . . . :
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter LAN1-hostvn1:

       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter

       Physical Address. . . . . . . . . : 00-0C-29-E0-68-00
       Dhcp Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
       IP Address. . . . . . . . . . . . : 192.168.11.120
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 192.168.11.1
       DHCP Server . . . . . . . . . . . : 192.168.11.1
       DNS Servers . . . . . . . . . . . : 172.27.0.12
       Primary WINS Server . . . . . . . : 172.27.0.12
       Lease Obtained. . . . . . . . . . : Wednesday, August 03, 2011 8:58:19 AM
       Lease Expires . . . . . . . . . . : Thursday, August 02, 2012 8:58:19 AM

Ethernet adapter LAN2-bridged:

       Media State . . . . . . . . . . . : Media disconnected
       Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter

       Physical Address. . . . . . . . . : 00-0C-29-E0-68-0A

C:\>ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

C:\>nslookup
*** Can't find server name for address 172.27.0.12: Non-existent domain
*** Default servers are not available
Default Server:  UnKnown
Address:  172.27.0.12

> chj.dev.nls
Server:  UnKnown
Address:  172.27.0.12

Name:    chj.dev.nls
Address:  172.27.0.120

>

你可以看到我在我的 IP 配置中分配了一個 DNS 伺服器,但是為什麼 nslookup spouts

*** Can't find server name for address 172.27.0.12: Non-existent domain
*** Default servers are not available
Default Server: Unknown

說“不可用”和“未知”是什麼意思?

DNS 伺服器(172.27.0.12)工作正常,因為它按預期回答了 chj.dev.nls 的查詢。DNS 伺服器是 Win2003 SP2。

一些詳細資訊:

> set debug
> chj.dev.nls
Server:  UnKnown
Address:  172.27.0.12

------------
Got answer:
   HEADER:
       opcode = QUERY, id = 4, rcode = NOERROR
       header flags:  response, auth. answer, want recursion, recursion avail.
       questions = 1,  answers = 0,  authority records = 1,  additional = 0

   QUESTIONS:
       chj.dev.nls, type = A, class = IN
   AUTHORITY RECORDS:
   ->  dev.nls
       ttl = 3600 (1 hour)
       primary name server = nlserver.dev.nls
       responsible mail addr = hostmaster.dev.nls
       serial  = 14716
       refresh = 900 (15 mins)
       retry   = 600 (10 mins)
       expire  = 86400 (1 day)
       default TTL = 3600 (1 hour)

------------
------------
Got answer:
   HEADER:
       opcode = QUERY, id = 5, rcode = NOERROR
       header flags:  response, auth. answer, want recursion, recursion avail.
       questions = 1,  answers = 0,  authority records = 1,  additional = 0

   QUESTIONS:
       chj.dev.nls, type = A, class = IN
   AUTHORITY RECORDS:
   ->  dev.nls
       ttl = 3600 (1 hour)
       primary name server = nlserver.dev.nls
       responsible mail addr = hostmaster.dev.nls
       serial  = 14716
       refresh = 900 (15 mins)
       retry   = 600 (10 mins)
       expire  = 86400 (1 day)
       default TTL = 3600 (1 hour)

------------
Name:    chj.dev.nls

>

任何的想法?謝謝你。

Nslookup 將嘗試通過執行 IP 地址的反向查找來解析配置為客戶端上主要 DNS 伺服器的 DNS 伺服器的 IP 地址的名稱。如果您沒有為您的網路/子網設置 rDNS 區域,您將收到“伺服器未知”消息,因為 nslookup 將無法解析 IP 地址的名稱。

這不是錯誤情況,不會對正常的 AD 和 DNS 操作造成任何問題。

您的伺服器沒有返回對其名稱的反向查找。這就是您在那裡看到“未知”的原因。您需要創建適當的反向查找區域,以允許您的伺服器將其自己的 IP 地址反向解析回其名稱。

引用自:https://serverfault.com/questions/299907