CC: | 10079241 [...] ticket.noris.net |
Subject: | warning for MX RRs with exchange "." |
From my understanding of the documentation to Net::DNS::RR, the trailing
dot to FQDNs should be optional when creating such objects.
However, when I omit it, the edge case of creating an MX-RR with "." as
(pseudo) exchange still works, but emits a warning:
zoneedit@dns0:~ > perl -wMNet::DNS -e 'Net::DNS::RR->new_from_hash(
name=>"foo", type=>"MX", preference=>0, exchange=>"" )->print'
Use of uninitialized value $name in scalar chop at
/usr/lib/perl5/Net/DNS.pm line 473.
foo. 0 IN MX 0 .
This can also be reproduced by running the test suite for the current
version 1.12 of Net::DNS::ZoneFile::Fast in conjunction with Net::DNS
0.65. (Also see ticket 39362.)
Regards,
fany