Subject: | Net::DNS::Nameserver example fails for IPv6 aware hosts |
Hi,
Not really a bug this, but anyway: - the example given at the bottom of the Net::DNS::Nameserver POD replies to all 'A' record requests with whatever IP address is given. However, IPv6 aware hosts (e.g. WinXP with the IPv6 driver installed) request 'AAAA' records and so receive NXDOMAIN.
For the example to work with both IPv6-unaware & -aware hosts, the subroutine evaluation line could read something like:
if ($qtype eq 'A' or $qtype eq 'AAAA') {
Otherwise, great module, thanks for writing/maintaining it!
Rich