Bug#765327: lintian fails if the machine has a link-local IPv6 nameserver configured

Edward Betts edward at 4angle.com
Wed Oct 29 11:17:19 UTC 2014


Control: tags -1 patch

Here is a fix.

diff --git a/lib/Net/DNS/Resolver/Base.pm b/lib/Net/DNS/Resolver/Base.pm
index 4c963f8..8f82b62 100644
--- a/lib/Net/DNS/Resolver/Base.pm
+++ b/lib/Net/DNS/Resolver/Base.pm
@@ -249,7 +249,7 @@ sub read_config_file {
 
                /^nameserver/ && do {
                        my ( $keyword, @ip ) = grep defined, split;
-                       push @ns, map $_ eq '0' ? '0.0.0.0' : $_, @ip;
+                       push @ns, map $_ eq '0' ? '0.0.0.0' : $_, grep !/%/, @ip;
                        next;
                };



More information about the pkg-perl-maintainers mailing list