忽略bind9的区域外数据问题

时间:2011-10-04 22:45:14

标签: linux bind

启动bind9时出现这些错误,但它没有加载记录。根据我能找到的一切,它应该是正确的,但它没有通过命名检查区出于同样的原因。

Oct  4 22:35:44 li205-55 named[7828]: /etc/bind/zones/lan.master.listenerapproved.com:3: ignoring out-of-zone data (listenerapproved.com)
Oct  4 22:35:44 li205-55 named[7828]: /etc/bind/zones/lan.master.listenerapproved.com:10: ignoring out-of-zone data (listenerapproved.com)
Oct  4 22:35:44 li205-55 named[7828]: /etc/bind/zones/lan.master.listenerapproved.com:12: ignoring out-of-zone data (listenerapproved.com)
Oct  4 22:35:44 li205-55 named[7828]: /etc/bind/zones/lan.master.listenerapproved.com:13: ignoring out-of-zone data (ns1.listenerapproved.com)
Oct  4 22:35:44 li205-55 named[7828]: /etc/bind/zones/lan.master.listenerapproved.com:16: ignoring out-of-zone data (application01.listenerapproved.com)
Oct  4 22:35:44 li205-55 named[7828]: /etc/bind/zones/lan.master.listenerapproved.com:17: ignoring out-of-zone data (zenoss.listenerapproved.com)
Oct  4 22:35:44 li205-55 named[7828]: zone internal.listenerapproved.com\032/IN/internal-view: has 0 SOA records
Oct  4 22:35:44 li205-55 named[7828]: zone internal.listenerapproved.com\032/IN/internal-view: has no NS records
Oct  4 22:35:44 li205-55 named[7828]: zone internal.listenerapproved.com\032/IN/internal-view: not loaded due to errors.

这里是我的lan.master文件

$ORIGIN listenerapproved.com.
$TTL 3600
@        IN SOA ns1.listenerapproved.com. webmaster.listenerapproved.com. (
                       2011100338        ; Serial yyyymmddnn
                       3h                ; Refresh After 3 hours
                       1h                ; Retry Retry after 1 hour
                       1h                ; Expire after 1 week 1w
                       1h)             ; Minimum negative caching of 1 hour

@                              IN NS    ns1.listenerapproved.com.

@                      3600    IN A     173.255.195.55
ns1                    3600    IN A     173.255.195.55
;out-router             3600    IN A     208.43.79.100
; lan data
application01          3600    IN A     192.168.168.18
zenoss                 3600    IN A     192.168.159.236
;in-router              3600    IN A     192.168.1.254
; add other lan specifc data below

如果有帮助,这是我的named.conf

options {
        directory "/var/cache/bind";
        forwarders { 8.8.8.8; };
        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
        allow-recursion { internal; };
};


acl internal { localnets; localhost; };

//
// Lan zone recursion is the default
//
view "internal-view" {
  match-clients { internal; };
  zone "." IN {
    type hint;
    file "/etc/bind/db.root";
  };
  zone "internal.listenerapproved.com " IN {
    type master;
    file "/etc/bind/zones/lan.master.listenerapproved.com";
    allow-transfer { key TRANSFER; };
  };
};
//
// external zone w/o recursion
//
view "external-view" {
  match-clients { any; };
  recursion no;
  zone "listenerapproved.com " IN {
    type master;
    file "/etc/bind/zones/internet.master.listenerapproved.com";
    allow-transfer { key TRANSFER; };
  };
};

1 个答案:

答案 0 :(得分:3)

哇.....这只是

末尾的额外空间

zone“internal.listenerapproved.com”