resolv.conf 和 nslookup 错误

resolv.conf 和 nslookup 错误

我将 DNS 服务器放在 resolv.conf 10.0.2.5 中,但只有 127.0.0.53 的名称服务器允许我在使用nslookup 10.0.2.5或时解析查找nslookup 10.0.2.6

我读到 resolv.conf 中应该有一个 DNS 服务器地址。

root@ubuntuserver:/etc/bind/zones# nslookup 10.0.2.5
;; Got SERVFAIL reply from 10.0.2.5, trying next server
5.2.0.10.in-addr.arpa   name = ubuntuserver.com.
5.2.0.10.in-addr.arpa   name = adminserverkerberos.
5.2.0.10.in-addr.arpa   name = ubunturealm.
5.2.0.10.in-addr.arpa   name = serverkerberos.
5.2.0.10.in-addr.arpa   name = ubuntumailsystem.

解析.conf:

nameserver 10.0.2.5
nameserver 127.0.0.53
options edns0 trust-ad
search home

我想从我的服务器和客户端上的 bind9 获取完整的 DNS 查询依赖关系。


@Greg Askew 这些 IP 不是我的,发生了什么?

root@ubuntuserver:/etc/bind/zones# nslookup ubuntuserver.com 10.0.2.5
Server:     10.0.2.5
Address:    10.0.2.5#53

Non-authoritative answer:
Name:   ubuntuserver.com
Address: XXX.90.244.158
Name:   ubuntuserver.com
Address: XXX.89.244.183

root@ubuntuserver:/etc/bind/zones# nslookup clientnorbert.com 10.0.2.5
Server:     10.0.2.5
Address:    10.0.2.5#53

** server can't find clientnorbert.com: NXDOMAIN

root@ubuntuserver:/etc/bind/zones# nslookup clientnorbert.com 10.0.2.6
;; communications error to 10.0.2.6#53: connection refused
;; communications error to 10.0.2.6#53: connection refused
;; communications error to 10.0.2.6#53: connection refused
;; no servers could be reached

相关内容