Repository navigation
dnsmasq: stability improvements + greater debuggability - #5015
Merged
Merged
Conversation
Signed-off-by: Alex Suraci <[email protected]>
...so that it still writes to the pidfile Signed-off-by: Alex Suraci <[email protected]>
this wasn't really atomic before: it would _rename_ the live file, and then start writing to it. if dnsmasq itself tried to read the host file, it could either see that the file doesn't exist, or see a partially written file. now we'll write to a new path and then rename it over the live one, which is atomic. Signed-off-by: Alex Suraci <[email protected]>
* create addnhosts file if not exists * set up upstream resolv.conf before starting dnsmasq Signed-off-by: Alex Suraci <[email protected]>
no idea why this was needed; it dates back to dnsname's initial commit. it seems to be causing dnsmasq to periodically stop listening and start listening again: #15 73.50 dnsmasq-debug[49]: stopped listening on dagger-dev0(#3): 10.88.0.1 port 53 #15 73.50 dnsmasq-debug[49]: listening on dagger-dev0(#3): 10.88.0.1 port 53 Signed-off-by: Alex Suraci <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a couple of issues:
connection refusederrors, caused by configuringbind-dynamicaddnhostsfileIt also changes
dnsmasqto just run in the foreground and send its logs to the engine logs, rather than daemonizing.