Subject: | ZoneFile.pm should parse $TTL case insensitively? |
Date: | Wed, 24 Feb 2016 16:39:04 +0000 |
To: | "bug-Net-DNS [...] rt.cpan.org" <bug-Net-DNS [...] rt.cpan.org> |
From: | Paul Roberts <paul [...] callevanetworks.com> |
Please excuse my ignorance, but I've been working with some zone files that have the $TTL directive in lowercase, e.g. $ttl - I am finding that ZoneFile.pm is not parsing this correctly and have had to modify it:
from:
} elsif (/^\$TTL/) { # directive
to:
} elsif (/^\$TTL/i) { # directive
I also noticed it is also expecting $INCLUDE, $GENERATE and $ORIGIN to be all in upper case.
Despite what the RFCs state, BIND works fine when $TTL is in lower-case, so I have hundreds of zone files to process that all use a lower case $ttl directive.
I am running 0.83 but I checked 1.04 and it has the same issue.
Would a request to implement case insensitive regex be valid for this for future versions or is it simply a case of BIND not following the RFCs?
Cheers,
Paul
Paul Roberts
Director
Calleva Networks Ltd.
Tel: +44 118 902 6622
Mob: +44 7837 362149
Email: paul@callevanetworks.com<mailto:paul@callevanetworks.com>
[calleva-email-sig]<http://www.callevanetworks.com/>