Initial check-in: This is currently working but needs improvements.
[toast/tdyndns.git] / bin / nsupdate_dyndns
1 #!/bin/bash
2
3 hostname=$1
4 myip=$2
5 type=$3 # A or AAAA
6 ttl=600
7 domain=dyn.colgarra.priv.at
8
9 echo -e "update delete $hostname.$domain $type\nupdate add $hostname.$domain $ttl IN $type $myip\n" | nsupdate -l