std input to nsupdate

Mark Andrews Mark_Andrews at isc.org
Thu Nov 3 22:24:03 UTC 2005


> On 11/3/05, Len Conrad <LConrad at go2france.com> wrote:
> >
> > Is there any sytnax to make this work as source for standard intput:
> >
> > echo "update delete node.domain.tld 60 in a 1.2.3.4" | nsupdate
> >
> 
> You need a newline or send command. You can do this:
> 
>      echo "update delete node.domain.tld 60 a 1.2.3.4
>      send" | nsupdate
> 
> or
> 
>      echo update delete node.domain.tld 60 a 1.2.3.4 > file
>      echo send >> file
>      nsupdate file
> 

(
	echo zone ...
	echo server ...
	echo key ... ...
	echo "update delete node.domain.tld 60 a 1.2.3.4"
	echo send
) | nsupdate

--
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