Subject: | _normalize_data doesn't work for TXT records |
Date: | Wed, 26 Aug 2009 14:22:14 +0200 |
To: | <bug-Net-DNS [...] rt.cpan.org> |
From: | "Ulrich Wisser" <ulrich.wisser [...] iis.se> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I found several errors while testing the latest Net::DNS version. But I could replicate only one of them in a small example script.
The following Perl code
#!/usr/bin/perl
use Net::DNS::RR;
my $txt = Net::DNS::RR->new(name => 'a.ns.se', ttl => '2d', class => 'IN', type => 'TXT', txtdata => '"Netnod, Stockholm"');
print $txt->string . "\n";
prints
a.ns.se. 2 IN TXT "Netnod, Stockholm"
Look at the TTL, not quite what I expected.
I have had other errors. Everything comes down to _normalize_rdata. Something that pkt2->new does isn't quite right.
/Ulrich
-----BEGIN PGP SIGNATURE-----
Version: 9.8.3 (Build 4028)
Charset: utf-8
wj8DBQFKlSj2L3KsM7TAdDARAh0DAJ4/34kRoz4IwQaMWos6xU10XeCObACg5NvO
6c4wA1MZFeEF27FhTILc25E=
=ruIS
-----END PGP SIGNATURE-----