-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
DNSStubListener=no should update a dynamic resolv.conf automatically #14700
Comments
Same issue here. I would have expected that setting
But it still point to the stub resolver.
|
Same issue here too. Setting the |
Same issue here, |
Just ran into this problem myself on a brand new Ubuntu install and was confused because according to this issue the problem was fixed almost two years ago now. Apparently Ubuntu 20 LTS is still using systemd v245 though, and this fix was included in v246. So... yeah. Kinda crazy how long it takes for bug fixes to make it into downstream distros. For now, you can fix it by running |
Thanks @Ajedi32 that fixed the issue in my case |
The systemd-resolved.service man page suggests to symlink /etc/resolv.conf to /run/systemd/resolve/stub-resolv.conf.
That is of my preferred course of action because systemd-resolved will handle a lot more than single DNS servers listed in /run/systemd/resolve/resolv.conf, like LLMNR or other internal configurations.
But if I set DNSStubListener=no for whatever reason, the whole name resolution stops working (unless another recursive DNS server is running in the local machine).
I (maybe stupidly) expected that, as /run/systemd/resolve/stub-resolv.conf is said to be kept up to date, its content would mirror /run/systemd/resolve/resolv.conf if the option DNSStubListener=no is set.
Otherwise, the admin has to change the /etc/resolv.conf symlink every time I change the DNSStubListener option.
Am I saying something so strange?
The text was updated successfully, but these errors were encountered: