<br><div class="gmail_quote">On Thu, Jun 9, 2011 at 12:44 AM, Oliver Peter <span dir="ltr"><<a href="mailto:lists@peter.de.com">lists@peter.de.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Wed, Jun 08, 2011 at 04:32:42PM +0930, David H wrote:<br>
> ...<br>
<div class="im">> I was looking at DNS::Config::File::Nsd but got an error when trying to<br>
> $nsdfile->parse() undefined call to 'read', I'm guessing this is because the<br>
> package is no longer maintained.<br>
><br>
> I'm trying a simple file:<br>
><br>
> -----nsdread.pl------<br>
> use DNS::Config::File::Nsd;<br>
><br>
> $file = "zonefile.conf";<br>
><br>
> my $file = new DNS::Config::File::Nsd($file);<br>
><br>
> $file->parse();<br>
><br>
> -------end-------------<br>
><br>
> Can't locate object method "read" via package "DNS::Config::File::Nsd" at<br>
> /usr/local/share/perl/5.12.3/DNS/Config/File/Nsd.pm line 207.<br>
<br>
</div>Just a wild guess:<br>
The documentation[1] says:<br>
# Read in an additional config file (needed before invoking<br>
# ->parse() ) $file->nsdc( $nsdc.conf_file );<br>
<br>
[1] <a href="http://search.cpan.org/%7Ewolf/DNS-Config-0.66/lib/DNS/Config/File/Nsd.pm" target="_blank">http://search.cpan.org/~wolf/DNS-Config-0.66/lib/DNS/Config/File/Nsd.pm</a><br>
<font color="#888888"><br></font></blockquote><div><br>So I've modified it as follows:<br><br>use DNS::Config::File::Nsd;<br><br>$file = "zonefile.zone";<br><br>open (TEST, $file) or die $!;<br><br>my $read = new DNS::Config::File::Nsd($file);<br>
<br>$read->nsdc($file);<br><br>$read->parse();<br><br>And it still says:<br><br>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.<br>
<br>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.<br><br>Thanks,<br><br>David<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888">
--<br>
Oliver PETER <a href="mailto:oliver@opdns.de">oliver@opdns.de</a> 0x456D688F<br>
</font></blockquote></div><br>