Project

General

Profile

Actions

Backport #2182

closed

Resolv::DNS fails with only IPv6 nameservers enabled

Added by eikebernhardt (Eike Bernhardt) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
[ruby-core:25970]

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

test.rb (247 Bytes) test.rb eikebernhardt (Eike Bernhardt), 10/06/2009 10:38 PM
log.txt (1.39 KB) log.txt eikebernhardt (Eike Bernhardt), 10/06/2009 10:38 PM
Actions #1

Updated by akr (Akira Tanaka) over 14 years ago

=begin
fixed in 1.8 and 1.9 by r25246.
=end

Actions #2

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

Actions

Also available in: Atom PDF

Like0
Like0Like0