gpt4 book ai didi

linux - 使用 bind9 忽略区域外数据问题

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:00:06 27 4
gpt4 key购买 nike

<分区>

我在启动 bind9 时收到这些错误并且它没有加载记录。根据我能找到的一切,它应该是正确的,但由于同样的原因它没有通过 named-checkzone。

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; };
};
};

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com