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 fails to restart during nixos-rebuild switch #20863
Comments
This just took down my site. After installing dnsmasq (I also did a couple other changes but none of them should be related to networking), my server stopped pinging and I had to reboot it via my hoster's (Hetzner) admin panel. After reboot, I saw in
I confirmed via the server's VGA port that the rest of NixOS was running fine, it apparently just had no IP address any more until the reboot. Possibly related: #25455 |
For anybody finding this, I've been using the following workaround for quite some time:
which will delay the dnsmasq start enough to succeed. This is if you are using systemd-networkd for managing the network configuration. |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
I am not sure if this is related but every time I try to switch my configuration it get the following warning/error.
Edit: I am also using systemd-networkd and I am on nixos-unstable fully updated. |
Issue description
When
nixos-rebuild switch
causes the network interfaces to be reconfigured it makes dnsmasq fail to restart. From the nixos-rebuild output:Some journal entries from around the time:
My dnsmasq configuration is
I think the issue stems from my use of
bind-interfaces
and the from the apparent fact that wlp1s0 is given its IP address after dnsmasq is started. From the dnsmasq FAQ:So presumably it fails hard when no IP addresses are assigned to an interface.
I think a solution (beside me not using bind-interfaces) is to get dnsmasq to start slightly later, when all IP addresses have been assigned.
Steps to reproduce
I imagine this would be experienced by anybody having dnsmasq configured using
bind-interfaces
.Technical details
The text was updated successfully, but these errors were encountered: