diff options
author | Max Christian Pohle | 2019-11-21 02:24:24 +0100 |
---|---|---|
committer | Max Christian Pohle | 2019-11-21 02:24:24 +0100 |
commit | d75b1edf651a755b6890c8dc85a2571799fe3e8a (patch) | |
tree | ef012bc69f532f4b08c44c69b46139e5aa708789 /pdnsutil-update.csh | |
parent | 1dcb4c6cc058800d8995bd3489ce840ff07055ec (diff) | |
download | pdnsupdate-master.tar.bz2 pdnsupdate-master.zip |
And added shell files to do the same thing as wsgi, but without network
Diffstat (limited to 'pdnsutil-update.csh')
-rw-r--r-- | pdnsutil-update.csh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pdnsutil-update.csh b/pdnsutil-update.csh new file mode 100644 index 0000000..8cc00d1 --- /dev/null +++ b/pdnsutil-update.csh | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/csh | ||
2 | set host=$1 | ||
3 | shift | ||
4 | pdnsutil delete-rrset wire-me.de $host A | ||
5 | foreach ip ($*) | ||
6 | echo "Adding $ip to $host" | ||
7 | pdnsutil add-record wire-me.de $host A $ip | ||
8 | end | ||