]> ToastFreeware Gitweb - toast/tdyndns.git/blob - bin/nsupdate_dyndns
dd9d5f0e31fa155250a9a015fa783b6a6457b3ad
[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