Skip Menu |

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

Report information
The Basics
Id: 84110
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: zhibzhou [...] ebay.com
Cc:
AdminCc:

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



Subject: bug with Net::DNS::ZoneFile
Date: Thu, 21 Mar 2013 06:06:44 +0000
To: "bug-Net-DNS [...] rt.cpan.org" <bug-Net-DNS [...] rt.cpan.org>
From: "zhou, victor" <zhibzhou [...] ebay.com>
Hi, This is Victor Zhou. Thanks very much for developing such an amazing module. It really helps me a lot. I am usin net-dns-0.72. I found when I use Net::DNS::ZoneFile to parse reverse zones, the RR's names doesn't seem right. Here is my zonefiles and script: [victor@testserver ~]$ cat ipv4-reversezone $TTL 1200 ; 20 minutes @ IN SOA ns.abc.com. hostmaster.abc.com. ( 714 ; serial 1200 ; refresh (20 minutes) 300 ; retry (5 minutes) 604800 ; expire (1 week) 1200 ; minimum (20 minutes) ) NS ns.abc.com. 1 PTR a1.abc.com. 2 PTR a2.abc.com. [victor@testserver ~]$ cat ipv6-reversezone $TTL 2H @ IN SOA dns1.abc.com. hostmater.abc.com. ( 2011051001 28800 ; Refresh - 8 hours 7200 ; Retry - 2 hours 6048000 ; Expire - 70 days 86400 ) ; Minimum - 24 hours NS dns1.abc.com. NS dns2.abc.com. 2.0.0.0.b.0.0.0.0.0.0.0.0.0.0.0 IN PTR x1.abc.com. 2.0.0.0.f.0.0.0.0.0.0.0.0.0.0.0 IN PTR x2.abc.com. 2.0.0.0.c.0.0.0.0.0.0.0.0.0.0.0 IN PTR x3.abc.com. 2.0.0.0.0.1.0.0.0.0.0.0.0.0.0.0 IN PTR x4.abc.com. 2.0.0.0.d.0.0.0.0.0.0.0.0.0.0.0 IN PTR x5.abc.com. 2.0.0.0.1.1.0.0.0.0.0.0.0.0.0.0 IN PTR x6.abc.com. [victor@testserver ~]$ cat zonefile.pl #!/usr/bin/perl use Net::DNS::ZoneFile; $file = $ARGV[0]; $zone = $ARGV[1]; $zonefile = new Net::DNS::ZoneFile($file, $zone); while ( $rr = $zonefile->read) { $rr->print; } [victor@testserver ~]$ ./zonefile.pl ipv4-reversezone 13.24.10.in-addr.arpa 13.24.10.in-addr.arpa. 1200 IN SOA ns.abc.com. hostmaster.abc.com. ( 714 ;serial 1200 ;refresh 300 ;retry 604800 ;expire 1200 ) ;minimum 13.24.10.in-addr.arpa. 1200 IN NS ns.abc.com. 1.in-addr.arpa. 1200 IN PTR a1.abc.com. 2.in-addr.arpa. 1200 IN PTR a2.abc.com. [victor@testserver ~]$ ./zonefile.pl ipv6-reversezone 0.0.0.0.2.0.5.0.0.0.0.0.0.2.6.2.ip6.arpa 0.0.0.0.2.0.5.0.0.0.0.0.0.2.6.2.ip6.arpa. 7200 IN SOA dns1.abc.com. hostmater.abc.com. ( 2011051001 ;serial 28800 ;refresh 7200 ;retry 6048000 ;expire 86400 ) ;minimum 0.0.0.0.2.0.5.0.0.0.0.0.0.2.6.2.ip6.arpa. 7200 IN NS dns1.abc.com. 0.0.0.0.2.0.5.0.0.0.0.0.0.2.6.2.ip6.arpa. 7200 IN NS dns2.abc.com. 2.0.0.0.b.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.5.0.0.0.0.0.0.2.6.2.ip6.arpa. 7200 IN PTR x1.abc.com. 2.0.0.0.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.5.0.0.0.0.0.0.2.6.2.ip6.arpa. 7200 IN PTR x2.abc.com. 2.0.0.0.c.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.5.0.0.0.0.0.0.2.6.2.ip6.arpa. 7200 IN PTR x3.abc.com. 0.0.0.2.in-addr.arpa. 7200 IN PTR x4.abc.com. 2.0.0.0.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.5.0.0.0.0.0.0.2.6.2.ip6.arpa. 7200 IN PTR x5.abc.com. 0.0.0.2.in-addr.arpa. 7200 IN PTR x6.abc.com. As you can see the names marked in bold is not right. Can you please help with this? Thank you, Victor

Message body is not shown because it is too large.

From: rwfranks [...] acm.org
This will be fixed in 0.73
This is fixed in the upcoming 0.73 release