Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 64529
Status: resolved
Priority: 0/
Queue: Parse-DNS-Zone

People
Owner: olof [...] cpan.org
Requestors: Hagedorn [...] uni-koeln.de
Cc:
AdminCc:

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



Subject: Origin isn't appended to rdata
Hi, I noticed that Parse-DNS-Zone handles $ORIGIN statements for the name parts, using the following statement in _parse_zone(): $name.=".$origin" if(($name ne $origin) && !($name=~/\.$/)); It doesn't do the same for the rdata, though. I fixed that for our purposes by adding this block: if ($type =~ /cname|afsdb|mx|ns/i) { $rdata.=".$origin" if(($rdata ne $origin) && !($rdata=~/\.$/)); } I'm not sure what other RRs might use unqualified records as rdata, but those are definitely among them.
Subject: Re: [rt.cpan.org #64529] Origin isn't appended to rdata
Date: Thu, 6 Jan 2011 13:25:30 +0000
To: "Hagedorn [...] uni-koeln.de via RT" <bug-Parse-DNS-Zone [...] rt.cpan.org>
From: Olof Johansson <olof [...] ethup.se>
On 2011-01-06 06:50 -0500, Hagedorn@uni-koeln.de via RT wrote: Show quoted text
> I noticed that Parse-DNS-Zone handles $ORIGIN statements for the name > parts, using the following statement in _parse_zone(): > > $name.=".$origin" if(($name ne $origin) && !($name=~/\.$/)); > > It doesn't do the same for the rdata, though. I fixed that for our > purposes by adding this block: > > if ($type =~ /cname|afsdb|mx|ns/i) { > $rdata.=".$origin" if(($rdata ne $origin) && !($rdata=~/\.$/)); > } > > I'm not sure what other RRs might use unqualified records as rdata, but > those are definitely among them.
I'll look into to it. I'll have a new version uploaded to CPAN within a day or so. Thank you! -- - Olof Johansson - www: http://www.stdlib.se/ - {mail,xmpp}: olof@ethup.se - irc: zibri on Freenode/OFTC/... --
Download signature.asc
application/pgp-signature 197b

Message body not shown because it is not plain text.

Hi, I just uploaded Parse::DNS::Zone-0.41, which adds a parameter to the construct, "append_origin". If that is set to a true value, RDATA in the record types you listed will be translated to fqdn.