Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: Ulrich.Wisser [...] iis.se
Cc:
AdminCc:

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



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-----
On Wed Aug 26 08:23:47 2009, Ulrich.Wisser@iis.se wrote: Show quoted text
> my $txt = > Net::DNS::RR->new(name => 'a.ns.se', ttl => '2d', class => 'IN', type > => 'TXT', txtdata => '"Netnod, Stockholm"');
TTLs need to be given in seconds, not duration short-hand. I don't think Net::DNS is documented to support duration short-hand. Chris. -- Chris Reinhardt chris@triv.org
Ulrich, The rubric being followed is RFC1035 (5.1) which defines the format of master files. Your use of ( name => value ) syntax does not alter that. "TTL is a decimal integer". That is constrained elsewhere to be a non-negative integer < 2**31. -- Dick
As this is a 'user error' this ticket is not further actionable