-
Notifications
You must be signed in to change notification settings - Fork 131
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
dnsmasq fix #208
dnsmasq fix #208
Conversation
Kudos, SonarCloud Quality Gate passed! |
Please, keep us updated with the results from your prolonged test! Nice catch, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am pre-emptively approving this, because indeed the docs show --no-daemon
being a DEBUG flag not suited for production. Still interested in seeing results from prolonged tests. @agonbar
@gchamon testing with about 30 daily users, all using subspace for dns. Went from requiring an hourly restart to not having restarted for two weeks. Glad to post any diagnostic logs since we’re also capturing those. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine seems to solve the Problem
@jfrede good to know! thanks for the feedback |
Sorry for the long silence, I was a bit busy with life. This looks awesome! I've suffered from this bug too. And the documentation also seems to back the change. I'm merging it. Many thanks @maduggan |
@all-contributors please add @maduggan for code |
I've put up a pull request to add @maduggan! 🎉 |
We need to restart our Wireguard server from time to time to fix DNS issues. So thanks for this PR! Hopefully this will fix our issue as wel 🤞 Would it be possible to create a new release that includes this PR? v1.5.0...master |
…e/dnsmasq/run until new release
to: @subspacecommunity/subspace-maintainers
related to:
resolves: #199
Background
Clients were reporting DNS timeouts every few hours with subspace, with the only resolution being to either restart the container or turn off DNS. Upon investigating, it seems subspace is using the wrong flag for dnsmasq, passing a debug flag instead of the approved production flag. This switches that. See: https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
Debug mode: don't fork to the background, don't write a pid file, don't change user id, generate a complete cache dump on receipt on SIGUSR1, log to stderr as well as syslog, don't fork new processes to handle TCP queries. Note that this option is for use in debugging only, to stop dnsmasq daemonising in production, use --keep-in-foreground.
Changes
Testing
Currently running a prolonged test with a few dozen users and so far everything looks good