<style>p {margin:0 0 14px 0}.default-font-1702974369281 {font-size: 14px;font-family: 宋体, arial, Verdana, sans-serif}</style><div class="default-font-1702974369281"><pre wrap="soft" style="overflow-wrap:break-word;">I found there was a db.ynu.edu.cn.intranet.jnl beside db.ynu.edu.cn.intranet, I tried to remove it, then restarted and checked the new cache_dump.db, no `zone not loaded` anymore.
For the original problem, because I modified serial of SOA and updated bind9 to the latest version, it could not reproduce. Maybe it's also the similar issue, but in the older bind 9.11, no jnl file generated via named.
</pre>
<div>
<br>
</div>
<br>
<br>
2023-12-17 15:47:43 <a href="mailto:"Mark Andrews" <marka@isc.org>" data-ke-src="mailto:"Mark Andrews" <marka@isc.org>">"Mark Andrews" <marka@isc.org></a> 写道:
<blockquote name="replyContent" style="padding-left:1ex;margin:0 0 0 0.8ex;border-left:1px solid #ccc;">
<div>
<div dir="auto">
Read your logs and/or use named-checkzone and/or tell name-checkconf to load the zones. <br>
<br>
<div dir="ltr">
--
<div>
Mark Andrews
</div>
</div>
<div dir="ltr">
<br>
<blockquote type="cite">
On 17 Dec 2023, at 15:22, liudonghua@ynu.edu.cn wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<style>p { margin: 0px 0px 14px; }
.default-font-1702786966707 { font-size: 14px; font-family: 宋体, arial, Verdana, sans-serif; }</style>
<div class="default-font-1702786966707">
<span style="text-wrap:nowrap;"></span><span style="text-wrap:nowrap;">Hi, I have a bind9 authoritative name server running, but I found a strange problem. One of zone in a specific view not loaded when I view the cache_dump.db after I execute `rndc dumpdb -all`.</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">The zone data file is almost the same for difference views execpted some few domain resolution.</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# head -n 20 /etc/named.data/db.ynu.edu.cn.cernet</span><br>
<span style="text-wrap:nowrap;">$TTL 86400 ; 1 day</span><br>
<span style="text-wrap:nowrap;">@ IN SOA pridns.ynu.edu.cn. root.pridns.ynu.edu.cn. (</span><br>
<span style="text-wrap:nowrap;"> 2023121601 ; serial number</span><br>
<span style="text-wrap:nowrap;"> 10800 ; Refresh interval, every 3 hours</span><br>
<span style="text-wrap:nowrap;"> 3600 ; Retry interval, every 30 minutes </span><br>
<span style="text-wrap:nowrap;"> 604800 ; Expire after 1 week</span><br>
<span style="text-wrap:nowrap;"> 86400 ) ; Minimum TTL of 1 day</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">$INCLUDE /etc/named.data/db.ynu.edu.cn.common</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">; RR of type A</span><br>
<span style="text-wrap:nowrap;">; </span><br>
<span style="text-wrap:nowrap;">vpn1 10800 IN A 113.55.110.251</span><br>
<span style="text-wrap:nowrap;">; </span><br>
<span style="text-wrap:nowrap;">lb-http-jz IN A 113.55.14.52</span><br>
<span style="text-wrap:nowrap;">ynucdn 600 IN A 202.203.208.4</span><br>
<span style="text-wrap:nowrap;">; </span><br>
<span style="text-wrap:nowrap;">vpn2 IN A 202.203.208.9</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# head -n 20 /etc/named.data/db.ynu.edu.cn.intranet</span><br>
<span style="text-wrap:nowrap;">$TTL 86400 ; 1 day</span><br>
<span style="text-wrap:nowrap;">@ IN SOA pridns.ynu.edu.cn. root.pridns.ynu.edu.cn. (</span><br>
<span style="text-wrap:nowrap;"> 2023121601 ; serial number</span><br>
<span style="text-wrap:nowrap;"> 10800 ; Refresh interval, every 3 hours</span><br>
<span style="text-wrap:nowrap;"> 3600 ; Retry interval, every 30 minutes </span><br>
<span style="text-wrap:nowrap;"> 604800 ; Expire after 1 week</span><br>
<span style="text-wrap:nowrap;"> 86400 ) ; Minimum TTL of 1 day</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">$INCLUDE /etc/named.data/db.ynu.edu.cn.common</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">; RR of type A</span><br>
<span style="text-wrap:nowrap;">; </span><br>
<span style="text-wrap:nowrap;">lb-http-jz IN A 113.55.14.52</span><br>
<span style="text-wrap:nowrap;">; </span><br>
<span style="text-wrap:nowrap;">vpn1 10800 IN A 192.168.208.3</span><br>
<span style="text-wrap:nowrap;">ynucdn 600 IN A 202.203.208.4</span><br>
<span style="text-wrap:nowrap;">; </span><br>
<span style="text-wrap:nowrap;">vpn2 IN A 202.203.208.9</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]#</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# named-checkconf /etc/named.conf</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# echo $?</span><br>
<span style="text-wrap:nowrap;">0</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# </span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# rndc zonestatus ynu.edu.cn in CERNET</span><br>
<span style="text-wrap:nowrap;">name: ynu.edu.cn</span><br>
<span style="text-wrap:nowrap;">type: primary</span><br>
<span style="text-wrap:nowrap;">files: db.ynu.edu.cn.cernet, /etc/named.data/db.ynu.edu.cn.common</span><br>
<span style="text-wrap:nowrap;">serial: 2023121601</span><br>
<span style="text-wrap:nowrap;">nodes: 576</span><br>
<span style="text-wrap:nowrap;">last loaded: Sat, 16 Dec 2023 08:00:49 GMT</span><br>
<span style="text-wrap:nowrap;">secure: no</span><br>
<span style="text-wrap:nowrap;">dynamic: no</span><br>
<span style="text-wrap:nowrap;">reconfigurable via modzone: no</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]#</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# rndc zonestatus ynu.edu.cn in INTRANET</span><br>
<span style="text-wrap:nowrap;">rndc: 'zonestatus' failed: zone not loaded</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]#</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# named-checkzone ynu.edu.cn /etc/named.data/db.ynu.edu.cn.intranet</span><br>
<span style="text-wrap:nowrap;">zone ynu.edu.cn/IN: loaded serial 2023121601</span><br>
<span style="text-wrap:nowrap;">OK</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# </span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# ll /etc/named.data/db.ynu.edu.cn.cernet /etc/named.data/db.ynu.edu.cn.intranet</span><br>
<span style="text-wrap:nowrap;">-rw-r--r-- 1 root root 1.3K Dec 16 16:00 /etc/named.data/db.ynu.edu.cn.cernet</span><br>
<span style="text-wrap:nowrap;">-rw-r--r-- 1 root root 1.3K Dec 16 16:00 /etc/named.data/db.ynu.edu.cn.intranet</span><br>
<span style="text-wrap:nowrap;">[root@pridns data]# </span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">And here is parts of content in /var/named/data/cache_dump.db</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<span style="text-wrap:nowrap;">; Zone dump of 'ynu.edu.cn/IN/INTRANET'</span><br>
<span style="text-wrap:nowrap;">;</span><br>
<span style="text-wrap:nowrap;">; zone not loaded</span><br>
<span style="text-wrap:nowrap;">;</span><br>
<span style="text-wrap:nowrap;">; Zone dump of 'rpz/IN/INTRANET'</span><br>
<span style="text-wrap:nowrap;"><br>
</span><br>
<br>
<br>
</div>
<span>-- </span><br>
<span>Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list</span><br>
<span></span><br>
<span>ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.</span><br>
<span></span><br>
<span></span><br>
<span>bind-users mailing list</span><br>
<span>bind-users@lists.isc.org</span><br>
<span>https://lists.isc.org/mailman/listinfo/bind-users</span><br>
</div>
</blockquote>
</div>
</div>
</blockquote></div>