Backport #2182
closedResolv::DNS fails with only IPv6 nameservers enabled
Description
=begin
When trying to resolve something (in my case MX records) while only IPv6 nameservers are specified in /etc/resolv.conf, the call to getresources fails with:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:685:in `send': Invalid argument - sendto(2) (Errno::EINVAL)
Adding a IPv4 nameserver to /etc/resolv.conf (in addition to the IPv6 nameservers) enables the query to complete.
System: Mac OS X Snow Leopard
Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
Attached: Log with Backtrace and sample code which triggers the error
How to repeat: only have IPv6 Nameservers defined in /etc/resolv.conf
=end
Files
Updated by akr (Akira Tanaka) over 14 years ago
=begin
fixed in 1.8 and 1.9 by r25246.
=end
Updated by shyouhei (Shyouhei Urabe) over 14 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r25873.
Eike, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end