Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: weiler [...] tislabs.com
Cc:
AdminCc:

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



Subject: possible net::dns bug -- FQDN in new
Date: Tue, 10 Oct 2006 22:52:15 -0400 (EDT)
To: "Olaf M. Kolkman" <olaf [...] NLnetLabs.nl>, bug-Net-DNS [...] rt.cpan.org
From: Sam Weiler <weiler [...] tislabs.com>
Creating a new RR (DNSKEY and A tested) using new (from hash), if the $name is set to an FQDN (with trailing dot), the resulting RR has two dots at the end of its name. By comparison, new (from string) will handle the trailing dot just fine. use Net::DNS; use Net::DNS::SEC; my $keyrr = new Net::DNS::RR( name => "example.org.", ttl => 42, class => "IN", type => "DNSKEY", flags => 256, protocol => $3 ); print $keyrr->string,"\n";
From: rwfranks [...] acm.org
Attached patch strips trailing dot from each name. Croaks moved ahead of loop to avoid attempted pattern match on undef value.
Download patch22019
application/octet-stream 966b

Message body not shown because it is not plain text.

On Sat Jan 27 07:37:41 2007, rwfranks@acm.org wrote: Show quoted text
> Attached patch strips trailing dot from each name. > > Croaks moved ahead of loop to avoid attempted pattern match on undef
value. Show quoted text
>
And this now lives in release 0.60 --Olaf