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

DNS resolution should fall back to TCP on Errno::EACCES in UDP bind #2469

Open
a13m opened this issue Jan 16, 2015 · 0 comments
Open

DNS resolution should fall back to TCP on Errno::EACCES in UDP bind #2469

a13m opened this issue Jan 16, 2015 · 0 comments

Comments

@a13m
Copy link

@a13m a13m commented Jan 16, 2015

On some platforms, users may be restricted from global binding to a UDP port, which is necessary for UDP-based DNS lookups. This error should be caught, and the resolver should fall back to TCP, as it does in other cases where this is necessary.

Ideally, it would also be nice to be able to specify tcp by default when initializing a DNS object on such platforms, to avoid repeated bind attempts which are known to fail, but I am not sure of the best way to introduce such an option.

(NOTE: this has also been filed as https://bugs.ruby-lang.org/issues/10747 )

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

No branches or pull requests

1 participant