From d75b1edf651a755b6890c8dc85a2571799fe3e8a Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 21 Nov 2019 02:24:24 +0100 Subject: Started to add more generic zones And added shell files to do the same thing as wsgi, but without network --- pdnsutil-update.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pdnsutil-update.sh (limited to 'pdnsutil-update.sh') 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 @@ +#!/bin/sh + +zone=$1 +shift +host=$1 +shift + +set -x +pdnsutil delete-rrset $zone $host A +for ip in "$@" +do + echo " Adding $ip" + pdnsutil add-record $zone $host A $ip +done -- cgit v1.2.3