区域无法正确加载

区域无法正确加载

我不知道我的区域哪里有错误。我不明白。执行 named-checkzone 命令后,我得到了这些响应。有人能告诉我区域中正确的词汇表吗?

root@ubuntuserver:/etc/bind/zones# named-checkzone ns1.db /etc/bind/zones/ns1.db
/etc/bind/zones/ns1.db:14: ignoring out-of-zone data (ubuntuserver.com)
/etc/bind/zones/ns1.db:15: ignoring out-of-zone data (ubuntumailsystem)
/etc/bind/zones/ns1.db:16: ignoring out-of-zone data (clientnorbert.com)
/etc/bind/zones/ns1.db:17: ignoring out-of-zone data (serverkerberos)
/etc/bind/zones/ns1.db:18: ignoring out-of-zone data (adminserverkerberos)
/etc/bind/zones/ns1.db:19: ignoring out-of-zone data (ubunturealm)
/etc/bind/zones/ns1.db:21: ignoring out-of-zone data (ubuntuserver.com)
/etc/bind/zones/ns1.db:22: ignoring out-of-zone data (clientnorbert.com)
/etc/bind/zones/ns1.db:24: ignoring out-of-zone data (ubuntuserver.com)
/etc/bind/zones/ns1.db:25: ignoring out-of-zone data (clientnorbert.com)
zone ns1.db/IN: NS 'ns1.ubuntuserver.com.ns1.db' has no address records (A or AAAA)
zone ns1.db/IN: not loaded due to errors.

; BIND data file for local loopback interface
;
$TTL    604800
@   IN  SOA ns1.ubuntuserver.com. root.ubuntuserver.com. (
              2     ; Serial
         604800     ; Refresh
          86400     ; Retry
        2419200     ; Expire
         604800 )   ; Negative Cache TTL
 ; 
                    IN  NS  ns1.ubuntuserver.com
 ;
 ubuntuserver.com.  IN  A   10.0.2.5
 ubuntumailsystem.  IN  A   10.0.2.5
 clientnorbert.com. IN  A   10.0.2.6
 serverkerberos.        IN  A   10.0.2.5
 adminserverkerberos.   IN  A   10.0.2.5
 ubunturealm.       IN  A   10.0.2.5
;
ubuntuserver.com.   IN  MX  10  ubuntumailsystem.
clientnorbert.com.  IN  MX  10  ubuntuserver.com.
;
ubuntuserver.com.   3600    IN  AAAA    fe80::a00:27ff:feb5:df44
clientnorbert.com.  3600    IN  AAAA    fe80::a00:27ff:fe23:f7a1

root@ubuntuserver:/etc/bind/zones# named-checkzone db.0.10 /etc/bind/zones/db.0.10
dns_rdata_fromtext: /etc/bind/zones/db.0.10:14: near '.clientnorbert.com.': empty label
dns_rdata_fromtext: /etc/bind/zones/db.0.10:16: near '.ubuntuserver.com.': empty label
dns_rdata_fromtext: /etc/bind/zones/db.0.10:17: near '.clientnorbert.com.': empty label
zone db.0.10/IN: loading from master file /etc/bind/zones/db.0.10 failed: empty label
zone db.0.10/IN: not loaded due to errors.


;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@   IN  SOA ns1.ubuntuserver.com. root.ubuntuserver.com. (
              1     ; Serial
         604800     ; Refresh
          86400     ; Retry
        2419200     ; Expire
         604800 )   ; Negative Cache TTL
;
IN  NS  ns1.ubuntuserver.com.
IN  NS  .clientnorbert.com.
; PTR records
0.10    IN  PTR .ubuntuserver.com.
0.10    IN  PTR .clientnorbert.com.

答案1

区域外数据是一个错误消息,警告您 DNS 区域文件包含实际上不属于您区域的记录,这些记录不属于该区域应该描述的域名。

named-checkzonens1.db /etc/bind/zones/ns1.db

/etc/bind/zones/ns1.db检查区域文件中有关“区域”(通俗地说是“域名”)记录 的完整性 ns1.db

这需要属于域的域名记录 ns1.db,即资源记录ubuntuserver.ns1.db.ubunturealm.ns1.db而不是您拥有的记录。


您通常 named-checkzone db.0.10 /etc/bind/zones/db.0.10必须使用0.10.in-addr.arpa.区域名称来检查 IP 地址范围 10.0.0.0/16 的反向 DNS 区域的语法:

named-checkzone  0.10.in-addr.arpa. /etc/bind/zones/db.0.10

相关内容