ToastFreeware
/
toast
/
tdyndns.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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