Subject: | Net::DNS::ZoneFile::Fast bug: RR's do not accept the * wildcard |
Date: | Wed, 26 Mar 2008 16:05:20 +0100 |
To: | <bug-Net-DNS [...] rt.cpan.org> |
From: | "Leo Noordergraaf" <leo [...] apcare.net> |
When reading the zonefile for a domain with wildcard resource records, Net::DNS reports an error in the parse subroutine on line 149 of Net/DNS/ZoneFile/Fast.pm.
This is due to the $pat_name pattern defined on line 55 of Net/DNS/ZoneFile/Fast.pm.
In this pattern there is no match for the wildcard.
When line 55: my $pat_name = qr{[-\w\$\d\/*]+(?:\.[-\w\$\d\/]+)*};
is replaced by: my $pat_name = qr{[-\*\w\$\d\/*]+(?:\.[-\*\w\$\d\/]+)*};
Net::DNS is capable of parsing zone files containing wildcard resource records.
with regards,
Leo Noordergraaf