Commit 656bcd7a authored by Jens-Petter Salvesen's avatar Jens-Petter Salvesen

fix DNS update script

parent 9ee633a3
......@@ -21,14 +21,14 @@ for i in ${list[@]}; do
echo $IPV4 >> ./mpssh_hosts
echo "updating dns"
echo "
update delete $hostname.c.bitbit.net A
update delete $hostname.c.bitbit.net AAAA
update add $hostname.c.bitbit.net 60 in A $IPV4
update add $hostname.api.c.bitbit.net 60 in AAAA $IPV6
update add $hostname.c.bitbit.net 60 in AAAA $IPV6
send
answer
"
| tee -a dnsupdates | nsupdate -v -k ~/.certs/Kapi.c.bitbit.net.+157+49975.key;
" | tee -a dnsupdates | nsupdate -v -k ~/.certs/Kapi.c.bitbit.net.+157+49975.key;
done
echo run 'mpssh -sf mpssh_hosts -l migratehosts "sudo ps -ef|grep puppet"'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment