[nsd-users] Perl and/or DB interface into nsd3
untg99 at gmail.com
Thu Jun 9 00:07:34 CEST 2011
On Thu, Jun 9, 2011 at 12:44 AM, Oliver Peter <lists at peter.de.com> wrote:
> On Wed, Jun 08, 2011 at 04:32:42PM +0930, David H wrote:
> > ...
> > I was looking at DNS::Config::File::Nsd but got an error when trying to
> > $nsdfile->parse() undefined call to 'read', I'm guessing this is because
> > package is no longer maintained.
> > I'm trying a simple file:
> > -----nsdread.pl------
> > use DNS::Config::File::Nsd;
> > $file = "zonefile.conf";
> > my $file = new DNS::Config::File::Nsd($file);
> > $file->parse();
> > -------end-------------
> > Can't locate object method "read" via package "DNS::Config::File::Nsd" at
> > /usr/local/share/perl/5.12.3/DNS/Config/File/Nsd.pm line 207.
> Just a wild guess:
> The documentation says:
> # Read in an additional config file (needed before invoking
> # ->parse() ) $file->nsdc( $nsdc.conf_file );
So I've modified it as follows:
$file = "zonefile.zone";
open (TEST, $file) or die $!;
my $read = new DNS::Config::File::Nsd($file);
And it still says:
Can't locate object method "read" via package "DNS::Config::File::Nsd" at
/usr/local/share/perl/5.12.3/DNS/Config/File/Nsd.pm line 207.
It is weird that I'm pretty sure the read method does not appear to be a
native perl method and also does not appear in Nsd.pm.
> Oliver PETER oliver at opdns.de 0x456D688F
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nsd-users