Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: Rich_Pearson [...] cable.comcast.com
Cc:
AdminCc:

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



Subject: TTL value of 0 bombs parsing of Zonefile
Date: Thu, 31 Jan 2013 19:41:07 +0000
To: "bug-net-dns [...] rt.cpan.org" <bug-net-dns [...] rt.cpan.org>
From: "Pearson, Rich (Contractor)" <Rich_Pearson [...] cable.comcast.com>
I was parsing some zone files and found Net::DNS::ZoneFile dies on a "$TTL 0". In my search of the RFCs I found that 0 is a valid value, it just means to not cache the entry. Changing ZonFile.pm line 460 from: die '$TTL incomplete' unless $ttl; To die '$TTL incomplete' unless $ttl >= 0; Fixes the issue. Rich Pearson 703-939-8462 (work) 703-537-6550 (work cell)
From: rwfranks [...] acm.org
On Thu Jan 31 14:41:19 2013, Rich_Pearson@cable.comcast.com wrote: Show quoted text
> I was parsing some zone files and found Net::DNS::ZoneFile dies on a > "$TTL 0".
Well spotted, although your proposed fix does not go far enough. ZonFile.pm line 460 should read: die '$TTL incomplete' unless defined $ttl;
This is fixed in the upcoming 0.73 release