You are not logged in.
I've been having an issue since a few weeks with my DNS settings.
I first noticed some very long name resolutions so I investigated a bit and found that in /etc/resolv.conf I end up with a mix of DNS addresses, one from my home router, and two from my company DNS server.
Let's say I start my computer when I'm home. In that case I have the following resolv.conf:
# Generated by NetworkManager
search home
nameserver 192.168.1.1
But then I take my laptop to work, connect to the wired and/or wifi networks and get:
# Generated by NetworkManager
search home company.com
nameserver 192.168.1.1
nameserver 193.64.105.163
nameserver 193.64.105.150
Which leads to very slow name resolutions as the DNS client probably hangs on the first address until it times out and then try the second, correct, one and get its result.
I can fix resolv.conf either manually or by restarting the NetworkManager service but it is a bit annoying so I would like to know if there is a way so that NetworkManager drops the a connection's DNS settings when that connection goes down.
I have no manual DNS settings in the connections I use, everything is on automatic.
Offline
You are not alone: https://bbs.archlinux.org/viewtopic.php?id=275236
Is the content of the file
/run/NetworkManager/resolv.conf
identical?
Last edited by -thc (2022-05-10 12:28:40)
Offline
There's meanwhile also https://gitlab.freedesktop.org/NetworkM … issues/995
Offline
You are not alone: https://bbs.archlinux.org/viewtopic.php?id=275236
Is the content of the file
/run/NetworkManager/resolv.conf
identical?
Yes but I'll have to switch from my work to home network to see if it's still the case after that
Offline
There's meanwhile also https://gitlab.freedesktop.org/NetworkM … issues/995
Nice the see the issue being tracked. I guess I'll have to be patient
Offline
I confirm that
/etc/resolv.conf
and
/run/NetworkManager/resolv.conf
are identical, and still broken, after switching networks
Offline
Does networkmanager do the right thing when you set it up to use systemd-resolved?
Last edited by progandy (2022-05-11 19:48:33)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I just enabled it but I have to wait to get back home to see if it solved the problem.
Offline
It didn't change anything, I still get the DNS mixed up
Offline
https://bbs.archlinux.org/viewtopic.php … 9#p2029019
You could try to build NM w/ that commit reverted and see whether that helps and post your findings at the bug linked earlier.
Offline