ruby-dns / net-dns

Net::DNS is a DNS library written in Ruby.
http://net-dns.rubyforge.org
Other
165 stars 42 forks source link

Don't try to create an IPV6 socket when unecessary #58

Closed rosscooperman closed 10 years ago

rosscooperman commented 10 years ago

Specifically, if there are no IPV6 nameservers in the configured nameserver list, there's no reason to open an IPV6 socket.

rosscooperman commented 10 years ago

For some context, we're using this gem on EngineYard where there is no IPv6 support. Trying to create an IPv6 socket fails in this situation.

ghost commented 10 years ago

I have forked this repository (after attempting and failing to contact author) here: https://github.com/mordocai/net-dns. If you wish to resubmit your pull request there I will review/merge it in. It will shortly be the gem net-dns2 on rubygems.org.