每当我运行 systemctl start named.service 时,我都会收到错误:
zone example.com/IN NS 'linserver-1.myco.example.com.example.com' has no address records (A or AAAA)
现在让我感到困惑的是,即使这失败了,我仍然能够使用客户端 ping 我的服务器,ping hostname
即使 DNS 服务没有运行。我还想指出dig, nslookup, and host
命令不起作用。
nslookup linserver-1
返回DNS request timed out. Timeout was 2 seconds. Server: UnKnown, Address: 10.150.34.101
myco.example.db 文件:
@ IN SOA linserver-1.myco.example.com example.com myco.example.com (
20002001 ; serial
12h ; refresh
15m ; update retry
6w ; exp
3h ; min
)
@ IN NS linserver-1.myco.example.com.
ns1 IN A 10.150.34.101
linserver-2.myco.example.com IN A 10.150.34.202
正向查找区域文件:
$TTL 2d ;
@ IN SOA linserver-1.myco.example.com example.myco.example.com. (
20002001 ; serial
12h ; refresh
15m ; update retry
6w ; exp
3h ; min
)
IN NS linserver-1.myco.example.com
linserver-1 IN A 10.150.34.101
winclient IN A 10.150.33.20
winserv IN A 10.150.33.4
linclient IN A 10.150.33.12
winclient-2 IN A 10.150.34.85
反向查找网络 33:
$TTL 2d ;
$ORIGIN 33.150.10.IN-ADDR.ARPA.
@ IN SOA linserver-1.myco.example.com example.myco.example.com. (
20002001 ; serial
12h ; refresh
15m ; update retry
6w ; exp
3h ; min
)
IN NS linserver-1.myco.example.com.
IN NS linserver-2.myco.example.com.
4 IN PTR WinServ.myco.example.com.
12 IN PTR linclient.myco.example.com.
20 IN PTR winclient.myco.example.com.
反向查找网络 34:
$TTL 2d ;
$ORIGIN 34.150.10.IN-ADDR.ARPA.
@ IN SOA linserver-1.myco.example.com example.myco.example.com. (
20002001 ; serial
12h ; refresh
15m ; update retry
6w ; exp
3h ; min
)
IN NS linserver-1.myco.example.com.
IN NS linserver-2.myco.example.com.
85 IN PTR winclient-2.myco.example.com.
答案1
当我创建 Bind 服务器时,我使用了这个关联!。对我来说很好用。