Subject: | [PATCH] resolve infinite recursion problem on Cygwin |
Trying to update Net-DNS from 0.75 to 0.76 today, the tests relating to Net::DNS::Resolver appeared to 'hang'
Investigation found that Net::DNS::Resolver->new() was locked in a recursive loop.
The following patch resolved (ha!) the issue for me:
diff --git a/lib/Net/DNS/Resolver/cygwin.pm b/lib/Net/DNS/Resolver/cygwin.pm
index f6711f7..9169364 100644
--- a/lib/Net/DNS/Resolver/cygwin.pm
+++ b/lib/Net/DNS/Resolver/cygwin.pm
@@ -103,7 +103,7 @@ sub init {
|| ''
unless !$ip || ( $ip =~ /0\.0\.0\.0/ );
- push @nameservers, $ns if $ns;
+ push @nameservers, split $ns if $ns;
}
}
}
Many thanks.