-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add the startup flag --no-dns-resolution to fix issue #4600. #6587
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
Conversation
|
I can confirm it works! Thank you. I'll look at the code, figure out what this is all about and what should be the default behavior, and merge this into next and v2.4.x this weekend. |
|
It looks like the practice of calling Also, I'll mention issue 4600 here -> #4600 <- so that it has a backlink to this PR. I'm probably going to add a tweak to make the testing system pass this flag, because I've been annoyed in the past by invocations of |
|
It looks like we do a few things in
After that returns we: Here's what I think we should do instead:
So, what would be different? Only the case when the user passes certain IP addresses for us to bind to. Instead of using getaddrinfo and getifaddrs to get interface IP's, then filtering them, and then binding to the IP addresses the user supplied anyway (and checking the error anyway, as we do), we'll just bind to the addresses straight away. |
|
Just noticed this from commit 3d2e9ae: The |
|
It turns out my plan above has one flaw: We still use I don't see any intelligent design behind using DNS resolution to find our network addresses, so I'm going to remove it and solely use getifaddrs instead. So my plan is now: To remove the |
|
Oh, I should add: Because |
|
These changes have been merged with #6588. Note that I dropped the |
Description
This pull request adds a startup flag to tell rethinkdb to skip resolving hostnames via the dns server. This is being submitted as a possible fix to Issue 4600 where a misconfigured DNS server causes a startup delay for the database.