[nsd-users] Perl and/or DB interface into nsd3
Oliver Peter
lists at peter.de.com
Thu Jun 9 07:29:09 UTC 2011
On Thu, Jun 09, 2011 at 07:37:34AM +0930, David H wrote:
> ...
> > Just a wild guess:
> > The documentation[1] says:
> > # Read in an additional config file (needed before invoking
> > # ->parse() ) $file->nsdc( $nsdc.conf_file );
> So I've modified it as follows:
>
> use DNS::Config::File::Nsd;
>
> $file = "zonefile.zone";
>
> open (TEST, $file) or die $!;
>
> my $read = new DNS::Config::File::Nsd($file);
>
> $read->nsdc($file);
>
> $read->parse();
It could be that ->nsdc doesn't expect a zonefile but your nsd.conf:
$file->nsdc( $nsdc.conf_file )
--
Oliver PETER oliver at opdns.de 0x456D688F
More information about the nsd-users
mailing list