Subject: | Query for incomplete IPv6 address produces invalid PTR name |
Perl 5.008008
Linux 2.6.19-1.2895.fc6 i686
Net::DNS 0.59
Accidentally missing a : from IPv6 address used in a query results in a
PTR name containing embedded spaces.
code fragment
$q = Net::DNS::Question->new('1:2:3:4:5:6');
print $q->string,"\n";
produces
6.0.0.0.5.0.0.0.4.0.0.0.3.0.0.0.2.0.0.0.1.0.0.0. . . . . . . .
.ip6.arpa. IN PTR
which fails as expected, but concentrates unwarranted load on ip6.arpa
nameservers.