我正在使用Ubuntu服务器并安装BIND9,所以我可以build立一个DNS服务器。 我正在configuration反向DNS。 这是我的/etc/bind/named.conf.local文件:
zone "grupolar.com" in{ type master; file "/etc/bind/db.grupolar.com"; }; zone "0.13.10.in-addr.arpa" in{ type master; file "/etc/bind/db.10.13.0.rev"; };
这里是我的/etc/bind/db.10.3.0.rev文件:
$TTL 604800 $ORIGIN 0.13.10.in-addr.arpa. @ IN SOA ns1.grupolar.com. adm.grupolar.com. ( 10000 ; Serial 604800 ; Refresh 2419200 ; Expire 604800 ) ; Negative Cache TTL IN NS ns1.grupolar.com. 11 IN PTR server1.grupolar.com.; qualified name 12 IN PTR server2.grupolar.com.
命令nslookup 10.13.0.11 - 10.13.0.10正在生成以下内容:
Server: 10.13.0.10 Address: 10.13.0.10#53 ** server can't find 11.0.13.10.in-addr.arpa: SERVFAIL
这是为了学术目的,我想知道我做错了什么,如果你能帮助我。
当我使用named-checkzone 0.13.10.in-addr.arpa /etc/bind/db.10.13.0.rev命令时,我得到以下输出:
dns_rdata_fromtext: /etc/bind/db.10.13.0.rev:7: near eol: unexpected end of input zone 0.13.10.in-addr.arpa/IN: loading from master file /etc/bind/db.10.13.0.rev failed: unexpected end of input zone 0.13.10.in-addr.arpa/iN: not loaded due to erros.
谢谢。
dns_rdata_fromtext: /etc/bind/db.10.13.0.rev:7: near eol: unexpected end of input
该问题中包含的错误消息说,在区域文件中第7行有一个错误。 这个位置恰好与您的SOAlogging的结尾。
问题是您的SOAlogging缺less其七个字段之一。
SOAlogging具有以下字段MNAME , RNAME , SERIAL , REFRESH , RETRY , EXPIRE和MINIMUM (按此顺序)。
您的SOAlogging中缺less五个整数字段之一,根据您的意见,它是缺less的RETRY字段。