-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
DNS resolution breaks on NixOS when having static resolv.conf #11004
Comments
Hi, @dasJ, could you please include the command you used to produce the above screenshots or a MWE, so I could learn and try to reproduce the issue for myself? Many thx! |
Yeah would've been an obvious thing to do :D
|
I think the simplest solution is to make a copy of the Alternatively, we could resolve the symlink and add its target to the Yet another alternative is to make NixOS point Note that these options all need to work to support changes to |
Would work in this specific case, but would not work on non-nixos-systems with systemd-resolved: https://wiki.archlinux.org/title/Systemd-resolved#DNS |
DNS via systemd-resolved is already broken on non-NixOS systems since #10456. |
I think this is the easiest fix (resolve the paths in |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-07-31-nix-team-meeting-minutes-166/49972/1 |
Unfortunately I can't reproduce this. On Nix 2.24.0 and NixOS 24.05, I get:
|
Tested on various versions on non-NixOS where
Those that succeed, So this is fixed in newer versions. I believe the fix is #10482. Would be nice if that was backported to the broken versions. |
This breaks on NixOS when having static resolv.conf. Nix now copies the /etc/resolv.conf symlink (pointing to /etc/static) to the sandbox, resulting in a dangling symlink and breaking all DNS resolution inside the sandbox.
2.19.4:
2.19.5:
Originally posted by @dasJ in #10456 (comment)
The text was updated successfully, but these errors were encountered: