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";