Subject: | Error in RegEx Parsing BIND-Reverse Entries (IN PTR) |
Bug in DNS::ZoneParse v0.91:
There is a little error in the regex, ignoring single-digit reverse entries like this:
2 IN PTR i.think.so.
10 IN PTR i.think.so.too.
only the row with '10' will be parsed , not the row with the '2'.
Caused is this by the following regex in sub _parse:
my $valid_name = qr/[\@a-z_\-\.0-9\*]+/i;
replace it with:
my $valid_name = qr/[\@a-z_\-\.0-9\*]*/i;
and it also catches single digit entries.