我的网络上有一个 DNS 服务器,它包含一个本地区域。当我从服务器查找该区域中的域时,它们可以正常解析,即
# nslookup internal.site 127.0.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: internal.site
Address: 192.168.1.200
# dig +short @127.0.0.1 internal.site
192.168.1.200
但从网络上的任何其他机器都无法解析。
$ nslookup internal.site 192.168.1.10
Server: 192.168.1.10
Address: 192.168.1.10#53
Non-authoritative answer:
*** Can't find internal.site: No answer
$ dig +short @192.168.1.10 internal.site
netstat 报告端口被命名使用
# netstat -tulpn | grep ":53 "
tcp 0 0 192.168.1.10:53 0.0.0.0:* LISTEN 1639/named
tcp 0 0 192.168.1.10:53 0.0.0.0:* LISTEN 1639/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1639/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1639/named
udp 0 0 192.168.1.10:53 0.0.0.0:* 1639/named
udp 0 0 192.168.1.10:53 0.0.0.0:* 1639/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 1639/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 1639/named
nmap 报告端口已打开
$ sudo nmap -sU -p53 10.0.0.10
Starting Nmap 7.93 ( https://nmap.org ) at 2024-03-05 19:11 EST
Nmap scan report for 192.168.1.10
Host is up (0.028s latency).
PORT STATE SERVICE
53/udp open domain
Nmap done: 1 IP address (1 host up) scanned in 0.15 seconds