logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Having a script update BIND from w2k?: msg#00295

Subject: Re: Having a script update BIND from w2k?
On Wed, 26 Feb 2003, Dan Newcombe wrote:

> Right now my next solution is to use nsupdate from the Win2k side and have
> the script call nsupdate to do the updates.  It's ugly, but so far it's
> all I can find to do this.

Having had some experience with nsupdate, let me offer a piece of advice.
(Note: I have no experience scripting in dos/win). You might think that
nsupdate returns an error if the update was not in fact sent to and
accepted by the server. This is wrong, nsupdate happily returns success in
at least these scenarios:

1) The updates you specified contained syntactic errors (this has nothing
   to do with the server)
2) An update times out

Both these errors are reported to the output for the user to read, so if
you want to do this reliably from a script, you regretfully have to parse
output from nsupdate in addition to checking the return value.

Ketil Froyn
ketil@xxxxxxxxxx
http://ketil.froyn.name/





<Prev in Thread] Current Thread [Next in Thread>