ruby / resolv

A thread-aware DNS resolver library written in Ruby
Other
38 stars 29 forks source link

Catch EPROTONOSUPPORT as a sign of no IPv6 as well #41

Closed KJTsanaktsidis closed 10 months ago

KJTsanaktsidis commented 11 months ago

If IPv6 is disabled inside a freebsd jail, it seems this returns EPROTONOSUPPORT and not EAFNOSUPPORT. In both cases, we should simply try some other listed DNS servers.

Fixes #19928 (https://bugs.ruby-lang.org/issues/19928)