Update AAAA records
This commit is contained in:
parent
72dd05114f
commit
b281cf4b20
|
@ -9,7 +9,9 @@ if [ ! -z ${reason} ]; then
|
|||
echo "Updating AAAA record for companioncu.be to $IPV6"
|
||||
echo "
|
||||
update delete companioncu.be. AAAA
|
||||
update delete *.companioncu.be. AAAA
|
||||
update add companioncu.be. 10 AAAA $IPV6
|
||||
update add *.companioncu.be. 10 AAAA $IPV6
|
||||
send
|
||||
" | 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 "
|
||||
update delete companioncu.be. A
|
||||
update delete *.companioncu.be. A
|
||||
update add companioncu.be. 10 A $IPV4
|
||||
update add *.companioncu.be. 10 A $IPV4
|
||||
send
|
||||
" | nsupdate -k $KEY
|
||||
|
||||
|
@ -40,5 +44,3 @@ else #TODO: come up with some sanity-check for pppd
|
|||
done
|
||||
/etc/init.d/iptables restart
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue