nsupdate qestion

Kevin Darcy kcd at daimlerchrysler.com
Tue Dec 10 19:38:47 UTC 2002


billy bob wrote:

> Hi everyone.
>
> there is a way to pass a standard journal file to
> nsupdate command?
>
> that's my mydomain.com.log file
>
> ;BIND LOG V8
> [DYNAMIC_UPDATE] id 0 from [127.0.0.1].53 at
> 1015009678 (named pid 2804):
> zone:   origin mydomain.com class IN serial 2001442926
> prereq: {nxrrset} PC102.mydomain.com. IN A
> update: {add} PC102.mydomain.com. 129600 IN A
> 10.0.0.192
>
> [INCR_SERIAL] from 2001442926 to 2001442927 Mon Dec  9
> 13:47:59 2002
>
> [DYNAMIC_UPDATE] id 0 from [127.0.0.1].53 at
> 1015009685 (named pid 2804):
> zone:   origin mydomain.com class IN serial 2001442927
> prereq: {nxrrset} pc103.mydomain.com. IN A
> update: {add} pc103.mydomain.com. 129600 IN A
> 10.0.0.157
>
> [INCR_SERIAL] from 2001442927 to 2001442928 Mon Dec  9
> 13:48:05 2002
>
> the nsupdate command work well with "prereq" and
> "update", but there is some error with theses 3
> options.
>
> 1- [DYNAMIC_UPDATE]
> > nsupdate -d ./mydomain.com.log
> > incorrect section name: [DYNAMIC_UPDATE]
> > section ZONE not permitted
> > incorrect section name: [INCR_SERIAL]

This is nothing that a little script pre-processing -- using Perl, nawk,
or your favorite scripting tool -- couldn't fix.

I'm curious _why_ you'd want to generate nsupdate commands from a log
file, though (note that a log file is different from a journal file).
Usually it's the other way around, i.e. the log file is generated in
response to Dynamic Updates, through nsupdate or some other mechanism...


- Kevin





More information about the bind-users mailing list