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

Allow empty dns #1

Merged
merged 4 commits into from
Mar 29, 2018
Merged

Allow empty dns #1

merged 4 commits into from
Mar 29, 2018

Conversation

Kyos
Copy link
Contributor

@Kyos Kyos commented Mar 29, 2018

Hey,

Thank you for your amazing library.

This PR aims to allow caravan to use system DNS (inherited from /etc/resolv.conf) by modifying the behavior on nameservers, if we detect an empty array, we don't send any opts to inet_res.lookup.

This is very useful in our situation (we are running in docker containers where DNS aren't directly accessible from containers).

@uberbrodt Thanks by advance for your review :)

@uberbrodt
Copy link
Owner

Thanks for the contribution! Looks good, but I'd like to not have the formatting mixed in with this pull request, so if you can drop those commits and re-push I'll merge.

Signed-off-by: Olivier LANIESSE <[email protected]>
Signed-off-by: Olivier LANIESSE <[email protected]>
Signed-off-by: Olivier LANIESSE <[email protected]>
@Kyos
Copy link
Contributor Author

Kyos commented Mar 29, 2018

@uberbrodt Done & rebased, thank you :)

@uberbrodt uberbrodt merged commit 941ef15 into uberbrodt:master Mar 29, 2018
@Kyos Kyos deleted the fix-dns branch March 30, 2018 07:12
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

Successfully merging this pull request may close these issues.

2 participants