Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the RUBY_GAI environment variable to alter default DNS lookups #636

Closed
wants to merge 1 commit into from

Conversation

sodabrew
Copy link

This is a suggested implementation of https://bugs.ruby-lang.org/issues/9925
I am wide-open to other ideas, this was the first approach I thought through.

…s for Socket and its subclasses, including Net::HTTP.
@drbrain
Copy link
Member

drbrain commented Jun 10, 2014

For completeness, do you have examples of other libraries configuring address family preferences the same way?

@sodabrew
Copy link
Author

Well, of course there is gai.conf - which doesn't much work. Node.JS currently does something like Ruby does with LOOKUP_ORDER_HACK_INET. (By the way, what if that became an environment variable instead of a compile time change?)

Another approach I would like very much would be a module variable in Socket that I could toggle globally or per-instance.

@k0kubun
Copy link
Member

k0kubun commented Aug 17, 2019

It seems to have a conflict now. Could you rebase this against master?

@sodabrew
Copy link
Author

Resolved by GH-1052 thank you!

@sodabrew sodabrew closed this Aug 17, 2019
@sodabrew
Copy link
Author

Please close https://bugs.ruby-lang.org/issues/9925 on the Ruby bug tracker now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants