diff --git a/multiupdater.sh b/multiupdater.sh index 04beddb..0608130 100755 --- a/multiupdater.sh +++ b/multiupdater.sh @@ -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 - -