LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   bind9 dynamic zone not reloading (https://www.linuxquestions.org/questions/linux-software-2/bind9-dynamic-zone-not-reloading-801812/)

jhwilliams 04-13-2010 02:28 PM

bind9 dynamic zone not reloading
 
Hi there,

I suppose this is somewhat esoteric, but hopefully some bind9 guru will see this.

I have a dynamic-dns setup that updates from DHCP. In my reverse zone file, I have some mappings that are more or less static (as in, outside of the DHCP range that updates to dhcp-<ipaddr>.domain.tld)

When I add new records to this zone and then reload the zone file (making sure to update the serial number), the name server still does not serve these new records. For example, I might add the following to my 168.192.in-addr.arpa. zone under the $ORIGIN 25.168.192.in-addr.arpa. section:

Code:

45 IN PTR new-host.example.tld.
I then proceed to try:

Code:

rndc reload
/etc/init.d/bind9 reload

and yet:

Code:

dig @localhost 168.192.in-addr.arpa AXFR | grep new-host
does not return the record I added manually to the file. All of the pre-existing records (including both DHCP generated and "static" names alike) are working fine.

I have a .jnl journal file in /var/lib for the zone, which whenever I look has file size 0. I have even tried to flush the cache. What could be causing this behavior?

Here is my zone conf in named.conf.local:

Code:

zone "168.192.in-addr.arpa" {
        type master;
        notify yes;
        file "/etc/bind/db.192.168";
        allow-update { key "rndc-key"; };
    journal "/var/lib/bind/168.192.in-addr.arpa.jnl";
};

Thanks in advance for any ideas.

jhwilliams 04-13-2010 02:33 PM

Oops. Sorry. I just now found the right link on Google. For anyone who sees this, check out rndc freeze and rndc thaw. rndc witll not allow you to reload a dynamic zone, so you must first freeze it before updating.


All times are GMT -5. The time now is 05:29 AM.