From: | gregoa [...] cpan.org |
Subject: | IPv6 resolving broken |
We have the following bug reported to the Debian package of
NetAddr-IP (https://bugs.debian.org/851388):
It doesn't seem to be a bug in the packaging, so you may want to take
a look. Thanks!
------8<-----------8<-----------8<-----------8<-----------8<-----
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: submit@bugs.debian.org
Subject: IPv6 resolving broken
Date: Sat, 14 Jan 2017 14:25:51 +0000
Package: libnetaddr-ip-perl
Severity: important
Version: 4.079+dfsg-1
Resolving DNS names to IPv6 addresses with
NetAddr::IP->new6($hostname) fails and results in some IPv4'ish
address with IPv6 syntax.
```
use NetAddr::IP;
my $hostname = "google-public-dns-a.google.com";
my $ip6 = NetAddr::IP->new6($hostname);
my $ip4 = NetAddr::IP->new($hostname);
print "$ip6 <- WTF???\n";
print "$ip4\n";
exit(0);
```
... gives...
```
[mike@minobo ~]$ ./netaddr-ip_resolv-ipv6.pl
0:0:0:0:0:0:808:808/128 <- WTF???
8.8.8.8/32
```
This issues currently causes this upstream bug in UIF [1].
Greets,
Mike
https://github.com/cajus/uif/issues/2
------8<-----------8<-----------8<-----------8<-----------8<-----
Thanks for considering,
gregor herrmann,
Debian Perl Group