Skip Menu |
 

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

Report information
The Basics
Id: 39364
Status: resolved
Priority: 0/
Queue: Net-DNS-ZoneFile-Fast

People
Owner: wjhns117 [...] hardakers.net
Requestors: FANY [...] cpan.org
Cc: 305045 [...] rt.noris.net
AdminCc:

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



CC: 305045 [...] rt.noris.net
Subject: bad TTL value `0'
Download (untitled) / with headers
text/plain 711b
Net::DNS::ZoneFile::Fast considers TTLs with value 0 to be invalid. I beg to differ, since RFC 1035 reads: TTL a 32 bit unsigned integer that specifies the time interval (in seconds) that the resource record may be cached before it should be discarded. Zero values are ^^^^^^^^^^^^^^^ interpreted to mean that the RR can only be used for the ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ transaction in progress, and should not be cached. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Please find a patch attached. Regards, fany
Subject: ttl.patch
Download ttl.patch
text/x-diff 522b
--- /usr/local/lib/perl5/site_perl/5.10.0/Net/DNS/ZoneFile/Fast.pm 2008-05-26 19:14:06.000000000 +0200 +++ Net/DNS/ZoneFile/Fast.pm 2008-09-17 18:36:53.083242672 +0200 @@ -277,7 +279,7 @@ if (/\G\s+($pat_ttl)$pat_skip$/) { my $v = $1; $ttl = $default_ttl = ttl_fromtext($v); - if ($default_ttl <= 0 || $default_ttl > $MAXIMUM_TTL) { + if ($default_ttl < 0 || $default_ttl > $MAXIMUM_TTL) { error("bad TTL value `$v'"); } else { debug("\$TTL <= $default_ttl\n") if $debug;
Download (untitled) / with headers
text/plain 118b
That patch actually wasn't complete, but I've changed the behaviour for future versions so 0 will be allowed. Thanks!
resolved in next release


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.