aboutsummaryrefslogtreecommitdiff
path: root/pdnsutil-update.sh
diff options
context:
space:
mode:
authorMax Christian Pohle2019-11-21 02:24:24 +0100
committerMax Christian Pohle2019-11-21 02:24:24 +0100
commitd75b1edf651a755b6890c8dc85a2571799fe3e8a (patch)
treeef012bc69f532f4b08c44c69b46139e5aa708789 /pdnsutil-update.sh
parent1dcb4c6cc058800d8995bd3489ce840ff07055ec (diff)
downloadpdnsupdate-master.tar.bz2
pdnsupdate-master.zip
Started to add more generic zonesHEADmaster
And added shell files to do the same thing as wsgi, but without network
Diffstat (limited to 'pdnsutil-update.sh')
-rw-r--r--pdnsutil-update.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/pdnsutil-update.sh b/pdnsutil-update.sh
new file mode 100644
index 0000000..6f46279
--- /dev/null
+++ b/pdnsutil-update.sh
@@ -0,0 +1,14 @@
1#!/bin/sh
2
3zone=$1
4shift
5host=$1
6shift
7
8set -x
9pdnsutil delete-rrset $zone $host A
10for ip in "$@"
11do
12 echo " Adding $ip"
13 pdnsutil add-record $zone $host A $ip
14done
..