From ff7caa01f47df249066169daa314664c3669842e Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Wed, 9 Nov 2011 18:51:46 +0100 Subject: Initial commit --- nsupdate-script | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 nsupdate-script (limited to 'nsupdate-script') diff --git a/nsupdate-script b/nsupdate-script new file mode 100755 index 0000000..023b161 --- /dev/null +++ b/nsupdate-script @@ -0,0 +1,32 @@ +#!/bin/sh +# +# nsupdate-script does the actuall call to 'nsupdate'. It is called by the +# console and returns 'OK' or 'ERROR' to standard output. +# +# Edit the address below to point to your DNS server IP. +# +DNS_SERVER="192.168.1.11" +# +# +# + +if [ $# -ne 2 ]; then + echo "usage: nsupdate-script " 1>&2 + exit 1 +fi +RECORD=$1 +VALUE=$2 + +nsupdate -k ./nsupdate.test <