Hi All, Be really grateful if anyone has luck with a Perl/DB interface into the nsd3 zone files. 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 the 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. Nsd.pm has this on line 207: 202: sub parse { 203: my($self, $file) = @_; 204: 205: $file = $file || $self->{'FILE'}; 206: 207: my @lines = $self->read($file); # error here with $self->read ----chop--- Can anyone shed any light on this or is this a stupid user error I'm having trying to get this working? Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20110608/959b7c25/attachment.htm>
Hi All, Be really grateful if anyone has luck with a Perl/DB interface into the nsd3 zone files. 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 the 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. Nsd.pm has this on line 207: 202: sub parse { 203: my($self, $file) = @_; 204: 205: $file = $file || $self->{'FILE'}; 206: 207: my @lines = $self->read($file); # error here with $self->read ----chop--- Can anyone shed any light on this or is this a stupid user error I'm having trying to get this working? Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20110608/6c6f888c/attachment.htm>