大网数据广告活动
服务器运维问答

Reverse DNS/bind named-checkzone "zone NS has no address records (A or AAAA) error"

· 52CE 我爱测

This is my reverse dns file. $TTL 1D @ IN SOA dns.prv.server.co.uk. root.prv.server.co.uk. ( 2014090402 ; serial 3600 ; refresh 1800 ; retry 604800 ; expire 10800 ) ; minimum ; Name servers's @ IN NS dns.prv.server.co.uk. @ IN PT…

问题原文

原帖链接 · neilH · CC BY-SA 3.0

This is my reverse dns file.

$TTL 1D
@       IN SOA  dns.prv.server.co.uk. root.prv.server.co.uk. (
                                        2014090402      ; serial
                                        3600    ; refresh
                                        1800    ; retry
                                        604800  ; expire
                                        10800 ) ; minimum
; Name servers's

@    IN         NS      dns.prv.server.co.uk.
@    IN         PTR     prv.server.co.uk.

; Name server hostname to IP resolve.
dns     IN      A       10.100.48.51

2       PTR     frontend.prv.server.co.uk.
4       PTR     opennebula.prv.server.co.uk.
5       PTR     bleakhouse.prv.server.co.uk.
6       PTR     thebodyfarm.prv.server.co.uk.
7       PTR     luther.prv.server.co.uk.
8       PTR     atlantis.prv.server.co.uk.
51      PTR     dns.prv.server.co.uk.

I've tried checking it with:

sudo named-checkzone dns.prv.server.co.uk /etc/named/48.100.10.rev

And I'm getting the error:

zone dns.prv.server.co.uk/IN: NS 'dns.prv.server.co.uk' has no address records (A or AAAA)
zone dns.prv.server.co.uk/IN: not loaded due to errors.

Can anyone see anything wrong with the file?

已采纳解答

原帖链接 · HBruijn · CC BY-SA 3.0

If the following line is supposed to be the GLUE record:

dns     IN      A       10.100.48.51

you should use the FQDN of your nameserver, rather than DNS shorthand. That record now gets expanded as dns.48.100.10.in-addr.arpa. and you probably intended to use dns.prv.server.co.uk. (from you NS record) there. Instead use:

dns.prv.server.co.uk. IN      A       10.100.48.51

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-09-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。