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 about 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

Also available in: Atom PDF

Like0
Like0Like0