ignoring out-of-zone data issues with bind9 [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionI get these errors when starting bind9 and it doesn't load the records. According to everything I can find it should be right, but its not passing named-checkzone for the same reason.
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.listener开发者_如何学Capproved.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.
And here ins my lan.master file
$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
Here is my named.conf if it helps
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; };
};
};
wow.....it was just the extra space at the end of
zone "internal.listenerapproved.com "
精彩评论