小编Ric*_*ich的帖子

为什么 nslookup 提供 NXDOMAIN 但 dig 工作正常?

我在其他地方没有看到这个问题的确切答案,所以我会勇敢地在这里问。我有一个 linode,并为我的主机设置了 DNS A 记录,我将其称为 A.wc.net。当我在 A.wc.net 上使用 nslookup 查找它时,我得到了这样的答案:

#  running on A.wc.net:  
root@linode (etc ): nslookup A.wc.net
Server:         173.255.243.5
Address:        173.255.243.5#53

** server can't find A.wc.net: NXDOMAIN
Run Code Online (Sandbox Code Playgroud)

但是,在任何其他机器上, nslookup 都会给出正确的结果:

@HomeMac (~ (BARE:master)): nslookup A.wc.net
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
Name:   A.wc.net
Address: 173.255.111.911  (number changed for my protection ;-) 
Run Code Online (Sandbox Code Playgroud)

另外,如果我在主机 A.wc.net 上运行 dig:

root@linode (etc ): dig @ns1.linode.com A.wc.net

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @ns1.linode.com A.wc.net
; (2 servers found)
;; global options: +cmd
;; Got …
Run Code Online (Sandbox Code Playgroud)

networking dns nslookup

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

dns ×1

networking ×1

nslookup ×1