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)