#!/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 <