<div dir="ltr">Hi.<div>The existence of a `.jnl` file for the zone means that, at some point in the past anyway, you *did* allow dynamic updates to this zone and some updates were made, which were stored in the journal file.</div><div><br></div><div>I would like to ask a couple of questions:</div><div>1) What is the timeline of your investigation? Map out file creation and modification dates and times along with log messages and times you made changes to see if you can build a picture of what actually happened when.</div><div>2) How many instances of 'named' are running on this server? I have seen in the past people have two or more 'named' processes running that they were not aware of, which *might* cause problems if they are trying to use the same data files.</div><div><br></div><div>Cheers, Greg</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 19 Dec 2023 at 08:26, <<a href="mailto:liudonghua@ynu.edu.cn">liudonghua@ynu.edu.cn</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><pre>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:%22Mark+Andrews%22+%3Cmarka@isc.org%3E" target="_blank">"Mark Andrews" <marka@isc.org></a> 写道:
<blockquote name="replyContent" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)">
        <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, <a href="mailto:liudonghua@ynu.edu.cn" target="_blank">liudonghua@ynu.edu.cn</a> wrote:<br>
<br>
                                </blockquote>
                        </div>
                        <blockquote type="cite">
                                <div dir="ltr">

                                        <div>
                                                <span></span><span>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><br>
</span><br>
<span>The zone data file is almost the same for difference views execpted some few domain resolution.</span><br>
<span><br>
</span><br>
<span>[root@pridns data]# head -n 20 /etc/named.data/db.ynu.edu.cn.cernet</span><br>
<span>$TTL 86400      ; 1 day</span><br>
<span>@       IN      SOA     <a href="http://pridns.ynu.edu.cn" target="_blank">pridns.ynu.edu.cn</a>. <a href="http://root.pridns.ynu.edu.cn" target="_blank">root.pridns.ynu.edu.cn</a>. (</span><br>
<span>                                2023121601    ;   serial number</span><br>
<span>                                10800   ;   Refresh interval, every 3 hours</span><br>
<span>                                3600    ;   Retry interval, every 30 minutes </span><br>
<span>                                604800  ;   Expire after 1 week</span><br>
<span>                                86400 ) ;    Minimum TTL of 1 day</span><br>
<span><br>
</span><br>
<span>$INCLUDE /etc/named.data/db.ynu.edu.cn.common</span><br>
<span><br>
</span><br>
<span><br>
</span><br>
<span>; RR of type A</span><br>
<span>; </span><br>
<span>vpn1                    10800   IN  A       113.55.110.251</span><br>
<span>; </span><br>
<span>lb-http-jz                      IN  A       113.55.14.52</span><br>
<span>ynucdn                  600     IN  A       202.203.208.4</span><br>
<span>; </span><br>
<span>vpn2                            IN  A       202.203.208.9</span><br>
<span><br>
</span><br>
<span>[root@pridns data]# head -n 20 /etc/named.data/db.ynu.edu.cn.intranet</span><br>
<span>$TTL 86400      ; 1 day</span><br>
<span>@       IN      SOA     <a href="http://pridns.ynu.edu.cn" target="_blank">pridns.ynu.edu.cn</a>. <a href="http://root.pridns.ynu.edu.cn" target="_blank">root.pridns.ynu.edu.cn</a>. (</span><br>
<span>                                2023121601    ;   serial number</span><br>
<span>                                10800   ;   Refresh interval, every 3 hours</span><br>
<span>                                3600    ;   Retry interval, every 30 minutes </span><br>
<span>                                604800  ;   Expire after 1 week</span><br>
<span>                                86400 ) ;    Minimum TTL of 1 day</span><br>
<span><br>
</span><br>
<span>$INCLUDE /etc/named.data/db.ynu.edu.cn.common</span><br>
<span><br>
</span><br>
<span><br>
</span><br>
<span>; RR of type A</span><br>
<span>; </span><br>
<span>lb-http-jz                      IN  A       113.55.14.52</span><br>
<span>; </span><br>
<span>vpn1                    10800   IN  A       192.168.208.3</span><br>
<span>ynucdn                  600     IN  A       202.203.208.4</span><br>
<span>; </span><br>
<span>vpn2                            IN  A       202.203.208.9</span><br>
<span><br>
</span><br>
<span>[root@pridns data]#</span><br>
<span>[root@pridns data]# named-checkconf /etc/named.conf</span><br>
<span>[root@pridns data]# echo $?</span><br>
<span>0</span><br>
<span>[root@pridns data]# </span><br>
<span>[root@pridns data]# rndc zonestatus <a href="http://ynu.edu.cn" target="_blank">ynu.edu.cn</a> in CERNET</span><br>
<span>name: <a href="http://ynu.edu.cn" target="_blank">ynu.edu.cn</a></span><br>
<span>type: primary</span><br>
<span>files: db.ynu.edu.cn.cernet, /etc/named.data/db.ynu.edu.cn.common</span><br>
<span>serial: 2023121601</span><br>
<span>nodes: 576</span><br>
<span>last loaded: Sat, 16 Dec 2023 08:00:49 GMT</span><br>
<span>secure: no</span><br>
<span>dynamic: no</span><br>
<span>reconfigurable via modzone: no</span><br>
<span>[root@pridns data]#</span><br>
<span>[root@pridns data]# rndc zonestatus <a href="http://ynu.edu.cn" target="_blank">ynu.edu.cn</a> in INTRANET</span><br>
<span>rndc: 'zonestatus' failed: zone not loaded</span><br>
<span>[root@pridns data]#</span><br>
<span>[root@pridns data]# named-checkzone <a href="http://ynu.edu.cn" target="_blank">ynu.edu.cn</a> /etc/named.data/db.ynu.edu.cn.intranet</span><br>
<span>zone <a href="http://ynu.edu.cn/IN" target="_blank">ynu.edu.cn/IN</a>: loaded serial 2023121601</span><br>
<span>OK</span><br>
<span>[root@pridns data]# </span><br>
<span>[root@pridns data]# ll /etc/named.data/db.ynu.edu.cn.cernet /etc/named.data/db.ynu.edu.cn.intranet</span><br>
<span>-rw-r--r-- 1 root root 1.3K Dec 16 16:00 /etc/named.data/db.ynu.edu.cn.cernet</span><br>
<span>-rw-r--r-- 1 root root 1.3K Dec 16 16:00 /etc/named.data/db.ynu.edu.cn.intranet</span><br>
<span>[root@pridns data]# </span><br>
<span><br>
</span><br>
<span>And here is parts of content in /var/named/data/cache_dump.db</span><br>
<span><br>
</span><br>
<span>; Zone dump of '<a href="http://ynu.edu.cn/IN/INTRANET" target="_blank">ynu.edu.cn/IN/INTRANET</a>'</span><br>
<span>;</span><br>
<span>; zone not loaded</span><br>
<span>;</span><br>
<span>; Zone dump of 'rpz/IN/INTRANET'</span><br>
<span><br>
</span><br>
<br>
<br>
                                        </div>
<span>-- </span><br>
<span>Visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> 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 <a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a> for more information.</span><br>
<span></span><br>
<span></span><br>
<span>bind-users mailing list</span><br>
<span><a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a></span><br>
<span><a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a></span><br>
                                </div>
                        </blockquote>
                </div>
        </div>
</blockquote></div>-- <br>
Visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div>