Skip Menu |

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

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

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: Net::DNS::ZoneFile
Date: Tue, 31 May 2016 19:02:38 +0000
To: "bug-Net-DNS [...] rt.cpan.org" <bug-Net-DNS [...] rt.cpan.org>
From: "White, Andrew" <Andrew.White2 [...] charter.com>
Hi there, I notice that Net::DNS::ZoneFile fails to parse records with class IN or type RR if they are mixed case. Example below. Is this a bug in Net::DNS::RR or Net::DNS::ZoneFile, or is this expected behavior? My reading of RFC-4343 is that these should be case-insensitive. Andrew $ cat example.com.hosts $TTL 1D @ IN SOA ns1.example.com. admin.example.com. ( 2016053100 ;serial 2h ; refresh (2 hour) 1h ; retry (1 hour) 1W ; expire (1 week) 1D ) ; minimum or neg ttl (1 day) IN NS ns1.example.com. IN NS ns2.example.com. foo In A 10.0.0.1 bar IN PTr foobar.example.com. $ cat foo.pl #!/usr/bin/perl use strict; use Net::DNS::RR; use Net::DNS::ZoneFile; my $zonefile = new Net::DNS::ZoneFile("example.com.hosts", "example.com"); if (! $zonefile) { die("Error\n"); } my @rr = $zonefile->read or die("Could not parse $zonefile\n"); foreach my $rr (@rr) { print OUT $rr->plain . "\n"; } $ ./foo.pl unknown type PTr at /usr/local/share/perl5/Net/DNS/RR.pm line 660 file example.com.hosts line 13 at ./foo.pl line 12 unknown type In at /usr/local/share/perl5/Net/DNS/RR.pm line 660 file example.com.hosts line 12 at ./foo.pl line 12 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
From: rwfranks [...] acm.org
On Tue May 31 15:02:49 2016, Andrew.White2@charter.com wrote: Show quoted text
> > Hi there, > > I notice that Net::DNS::ZoneFile fails to parse records with class IN > or type RR if they are mixed case. Example below. Is this a bug in > Net::DNS::RR or Net::DNS::ZoneFile, or is this expected behavior? My > reading of RFC-4343 is that these should be case-insensitive. >
RFC4343 deals with case issues surrounding DNS labels and says nothing about type and class mnemonics. By convention, mnemonics are upper case, but (all) lower case is accepted.
Subject: RE: [rt.cpan.org #114917] Net::DNS::ZoneFile
Date: Wed, 1 Jun 2016 11:19:05 +0000
To: "bug-Net-DNS [...] rt.cpan.org" <bug-Net-DNS [...] rt.cpan.org>
From: "White, Andrew" <Andrew.White2 [...] charter.com>
Hi Dick, Thanks. Is there a reason mixed-case isn't accepted? BIND 9.10 accepts it. I can't think of a reason why accepting a mixed-case mnemonic would be a problem as there are currently no classes nor types that require any particular capitalization. Andrew 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@rt.cpan.org] Sent: Tuesday, May 31, 2016 7:49 PM To: White, Andrew Subject: [rt.cpan.org #114917] Net::DNS::ZoneFile <URL: https://rt.cpan.org/Ticket/Display.html?id=114917 > On Tue May 31 15:02:49 2016, Andrew.White2@charter.com wrote:
> > Hi there, > > I notice that Net::DNS::ZoneFile fails to parse records with class IN > or type RR if they are mixed case. Example below. Is this a bug in > Net::DNS::RR or Net::DNS::ZoneFile, or is this expected behavior? My > reading of RFC-4343 is that these should be case-insensitive. >
RFC4343 deals with case issues surrounding DNS labels and says nothing about type and class mnemonics. By convention, mnemonics are upper case, but (all) lower case is accepted.
From: rwfranks [...] acm.org
On Wed Jun 01 07:19:19 2016, Andrew.White2@charter.com wrote: Show quoted text
> Hi Dick, > > Thanks. Is there a reason mixed-case isn't accepted? BIND 9.10 accepts > it. >
No but there is no compelling reason to do bizarre capitalisation either! Will do that if it can be done easily.
Subject: RE: [rt.cpan.org #114917] Net::DNS::ZoneFile
Date: Wed, 1 Jun 2016 12:35:36 +0000
To: "bug-Net-DNS [...] rt.cpan.org" <bug-Net-DNS [...] rt.cpan.org>
From: "White, Andrew" <Andrew.White2 [...] charter.com>
Ha ha, agreed! However there are bound to be typos. I found that about 10 of our zones (out of 36,xxx) had such typos ("In" instead of "IN", "PTr" instead of "PTR"). Bind happily parsed them. I manually corrected those zones in order to be able to parse them with Net::DNS::ZoneFile. Andrew 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@rt.cpan.org] Sent: Wednesday, June 01, 2016 7:34 AM To: White, Andrew Subject: [rt.cpan.org #114917] Net::DNS::ZoneFile <URL: https://rt.cpan.org/Ticket/Display.html?id=114917 > On Wed Jun 01 07:19:19 2016, Andrew.White2@charter.com wrote:
> Hi Dick, > > Thanks. Is there a reason mixed-case isn't accepted? BIND 9.10 accepts > it. >
No but there is no compelling reason to do bizarre capitalisation either! Will do that if it can be done easily.
This is fixed in the upcoming 1.07 release of Net::DNS