Skip Menu |
 

This queue is for tickets about the Net-DNS-ZoneFile-Fast CPAN distribution.

Report information
The Basics
Id: 117006
Status: open
Priority: 0/
Queue: Net-DNS-ZoneFile-Fast

People
Owner: Nobody in particular
Requestors: Andrew.White2 [...] charter.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug line 193 of Fast.pm
Date: Tue, 16 Aug 2016 19:36:14 +0000
To: "bug-Net-DNS-ZoneFile-Fast [...] rt.cpan.org" <bug-Net-DNS-ZoneFile-Fast [...] rt.cpan.org>
From: "White, Andrew" <Andrew.White2 [...] charter.com>
Download (untitled) / with headers
text/plain 1.9k
Hi there, In the latest supported version of Net:DNS on RHEL 6 (perl-Net-DNS-0.65-5.el6.x86_64), installing the latest Net::DNS::ZoneFile::Fast throws the following error. Installing latest Net::DNS from CPAN does not fix the issue, either. $ perl test.pl undefined method Net::DNS::RR::new_from_hash at /usr/local/share/perl5/Net/DNS/RR.pm line 697 Net::DNS::RR::AUTOLOAD('Net::DNS::RR', 'minimum', 86400, 'serial', 2014103100, 'ttl', 86400, 'mname', 'ns1.charter.com', ...) called at /usr/share/perl5/vendor_perl/Net/DNS/ZoneFile/Fast.pm line 193 Net::DNS::ZoneFile::Fast::parse('file', '/var/tmp/example.com.hosts', 'soft_errors', 1) called at test.pl line 7 Line 193 of Fast.pm contains: Net::DNS::RR->new_from_hash(%$z); But should probably be: Net::DNS::RR->new(%$z); Contents of test.pl: #!/usr/bin/perl use Net::DNS; use Net::DNS::ZoneFile::Fast; my $file = "/var/tmp/example.com.hosts"; my $rrs = Net::DNS::ZoneFile::Fast::parse( file => $file, soft_errors => 1); Contents of example.com.hosts: $TTL 86400 @ IN SOA ns1.charter.com. ipaddressing.chartercom.com. ( 2014103100 ; serial 7200 ; refresh (2 hour) 3600 ; retry (1 hour) 604800 ; expire (1 week) 86400 ) ; minimum or neg ttl (1 day) IN NS ns1.charter.com. IN NS ns2.charter.com. IN NS ns3.charter.com. IN NS ns4.charter.com. @ MX 10 mail.chartercom.com. Andrew White Desk: 314.394-9594<sip:13143949594> | Cell: 314-452-4386<sip:1-314-452-4386> | Jabber<sip:andrew.white2@charter.com> andrew.white2@charter.com<mailto:andrew.white2@charter.com> Systems Engineer III, DAS DNS group Charter Communications 12405 Powerscourt Drive<https://goo.gl/maps/AH2PXFKnaGU2>,<http://www.html5zombo.com/> St. Louis, MO 63131
Download (untitled) / with headers
text/html 11.3k
From: rwfranks [...] acm.org
Download (untitled) / with headers
text/plain 857b
On Tue Aug 16 15:36:28 2016, Andrew.White2@charter.com wrote: Show quoted text
> In the latest supported version of Net:DNS on RHEL 6 (perl-Net-DNS- > 0.65-5.el6.x86_64), installing the latest Net::DNS::ZoneFile::Fast > throws the following error. Installing latest Net::DNS from CPAN does > not fix the issue, either.
Any recent Net::DNS will fix your problem, although not in the way you had in mind. See http://http://search.cpan.org/~nlnetlabs/Net-DNS-1.06/lib/Net/DNS/ZoneFile.pm Net::DNS::ZoneFile is also much faster than Net::DNS::ZoneFile::Fast use Net::DNS 1.06; use Net::DNS::ZoneFile; my $file = "/var/tmp/example.com.hosts"; #my $rrs = Net::DNS::ZoneFile::Fast::parse( file => $file, soft_errors => 1); my $zonefile = new Net::DNS::ZoneFile( $file ); my @rrs = $zonefile->read; foreach (@rrs) { $_->print } __END__
From: rwfranks [...] acm.org
Download (untitled) / with headers
text/plain 112b
Subject: RE: [rt.cpan.org #117006] Bug line 193 of Fast.pm
Date: Mon, 5 Sep 2016 14:31:42 +0000
To: "bug-Net-DNS-ZoneFile-Fast [...] rt.cpan.org" <bug-Net-DNS-ZoneFile-Fast [...] rt.cpan.org>
From: "White, Andrew" <Andrew.White2 [...] charter.com>
Download (untitled) / with headers
text/plain 1.3k
This worked, thanks! Andrew White Desk: 314.394-9594 | Cell: 314-452-4386 | Jabber andrew.white2@charter.com Systems Engineer III, DAS DNS group Charter Communications 12405 Powerscourt Drive, St. Louis, MO 63131 Show quoted text
-----Original Message----- From: Dick Franks via RT [mailto:bug-Net-DNS-ZoneFile-Fast@rt.cpan.org] Sent: Sunday, September 04, 2016 5:52 AM To: White, Andrew Subject: [rt.cpan.org #117006] Bug line 193 of Fast.pm <URL: https://rt.cpan.org/Ticket/Display.html?id=117006 > On Tue Aug 16 15:36:28 2016, Andrew.White2@charter.com wrote:
> In the latest supported version of Net:DNS on RHEL 6 (perl-Net-DNS- > 0.65-5.el6.x86_64), installing the latest Net::DNS::ZoneFile::Fast > throws the following error. Installing latest Net::DNS from CPAN does > not fix the issue, either.
Any recent Net::DNS will fix your problem, although not in the way you had in mind. See http://http://search.cpan.org/~nlnetlabs/Net-DNS-1.06/lib/Net/DNS/ZoneFile.pm Net::DNS::ZoneFile is also much faster than Net::DNS::ZoneFile::Fast use Net::DNS 1.06; use Net::DNS::ZoneFile; my $file = "/var/tmp/example.com.hosts"; #my $rrs = Net::DNS::ZoneFile::Fast::parse( file => $file, soft_errors => 1); my $zonefile = new Net::DNS::ZoneFile( $file ); my @rrs = $zonefile->read; foreach (@rrs) { $_->print } __END__


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.