-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
hostname --fqdn broken when enableIPv6 = false #196934
Comments
I also seem to have hit this, but do not run Have a feeling it may be a fragile section when changes in |
I can reproduce this on nixos-unstable (without disabling IPv6), but also managed to get it working when stopping nscd. Footnotes
|
I've also encountered this issue, with the same reproduction and issues as @e1mo. Any idea how to resolve this? I particularly need to be able to set |
FWIW, setting cc @flokli |
Hmm, this doesn't make too much sense - I'd assume We do have Let's figure out this regression first, and not draw too early conclusions about this being a "IPv6 is disabled issue". |
So, there's definitely something wrong with the current nsncd implementation. Dumping the Nscd socket, we can see that nsncd is lacking some getai entries. Entries that are probably used by hostname to get the FQDN:
Let's track and fix this issue on the Nsncd repo. |
Describe the bug
In NixOS 22.05, the domain name is not set correctly when
networking.enableIPv6
is set tofalse
.Steps To Reproduce
Expected behavior
Obviously, it should work in both cases.
Additional context
The issue seems to be related to
nscd
:systemctl stop nscd
also fixes the problem.Similar issues seem to have been discussed in #1248, #10183 and #87633, but it's still broken.
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: