Update AAAA records

This commit is contained in:
root 2024-09-26 17:59:33 +02:00
parent 72dd05114f
commit b281cf4b20

View file

@ -9,7 +9,9 @@ if [ ! -z ${reason} ]; then
echo "Updating AAAA record for companioncu.be to $IPV6" echo "Updating AAAA record for companioncu.be to $IPV6"
echo " echo "
update delete companioncu.be. AAAA update delete companioncu.be. AAAA
update delete *.companioncu.be. AAAA
update add companioncu.be. 10 AAAA $IPV6 update add companioncu.be. 10 AAAA $IPV6
update add *.companioncu.be. 10 AAAA $IPV6
send send
" | nsupdate -k $KEY " | nsupdate -k $KEY
;; ;;
@ -22,7 +24,9 @@ else #TODO: come up with some sanity-check for pppd
echo "Updating A record for companioncu.be to $IPV4" echo "Updating A record for companioncu.be to $IPV4"
echo " echo "
update delete companioncu.be. A update delete companioncu.be. A
update delete *.companioncu.be. A
update add companioncu.be. 10 A $IPV4 update add companioncu.be. 10 A $IPV4
update add *.companioncu.be. 10 A $IPV4
send send
" | nsupdate -k $KEY " | nsupdate -k $KEY
@ -40,5 +44,3 @@ else #TODO: come up with some sanity-check for pppd
done done
/etc/init.d/iptables restart /etc/init.d/iptables restart
fi fi