Bug#851388: IPv6 resolving broken

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Sat Jan 14 14:25:51 UTC 2017


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.

```
#!/usr/bin/perl

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 at 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

-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
mobile: +49 (1520) 1976 148
landline: +49 (4354) 8390 139

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Digitale_PGP_Signatur
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20170114/afdf2610/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20170114/afdf2610/attachment-0001.sig>


More information about the pkg-perl-maintainers mailing list