Bind forgets my changes with nsupdate

Paul van der Vlis paul at vandervlis.nl
Fri Oct 6 11:17:07 UTC 2023


Op 06-10-2023 om 10:28 schreef Paul van der Vlis via bind-users:
> Hello,
> 
> I try to give a dynamic IP to a name, using nsupdate. This works fine, 
> but after some hours the IP is gone from the master (which I update).
> 
> Something like this:
> Host home.customer.nl not found: 3(NXDOMAIN)
> 
> The IP is then still available from the slaves, what gets it from the 
> master.
> 
> I do something like this to give the IP, using a script:
> 
> root at server:~# /usr/bin/nsupdate -k /etc/customer.key
>  > server ns1.vandervlis.nl
>  > zone customer.nl.
>  > update delete home.customer.nl.
>  > update add home.customer.nl. 3600 A 1.2.3.4
>  > send
>  > quit
> 
> I don't see anything about the removal in the logs. But I saw a "freeze" 
> and a "thaw" in the logs for the domain.
> 
> Any idea why the IP removes after some time?

Hmm, I see I have cronjob what causes this problem:

-----
# change serial
SERIAL=`named-checkzone $domain $domain | egrep -ho '[0-9]{10}'`
sed -i 's/'$SERIAL'/'$(($SERIAL+1))'/' $domain

# sign zone
rndc freeze $domain
dnssec-signzone -S -K /etc/bind/keys/ -g -a -o $domain $domain
rndc reload $domain
rndc thaw $domain
-----

But how could I refresh the key without loosing the IP?

With regards,
Paul





-- 
Paul van der Vlis Linux systeembeheer Groningen
https://vandervlis.nl/


More information about the bind-users mailing list