nsupdate 9.3.4 server servername

Mark Andrews Mark_Andrews at isc.org
Mon Apr 23 04:18:51 UTC 2007


> What is the correct syntax for using nsupdate with a different server 
> via command line in 1 statement?
> 
> No matter what I try, it only tries to update the MASTER one and not 
> another one I am trying to test with:
> 
> nsupdate -k /var/named/keys/Kns2.mydomain.com.+157+32453.private -d 
> /etc/nsupdate server ns4.mydomain.com
> 
> 
> (/etc/nsupdate contains information to pass onto nsupdate from this script:)
> 
> =============
> #!/sbin/sh
> IPADDR=`/sbin/ifconfig bge1|grep 'inet [0-9]'|tr -s " "|cut -d" " -f2`
> echo "update delete www.mydomain.com. A" > /etc/nsupdate
> echo "update add www.mydomain.com. 86400 IN A $IPADDR" >> /etc/nsupdate
  echo server ns4.mydomain.com >> /etc/nsupdate 
> echo "" >> /etc/nsupdate
> 
> =============
> My script works fine if I do not use the 'server' statement but I 
> dont want to mess with production name servers until I have things 
> perfect...so I know nothing is wrong with my script.
> 
> How do I get nsupdate to talk to a different server?
> 
> -JD
> 
> 
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org



More information about the bind-users mailing list