There is a complex fight to get control over the resolv.conf file, it is an old fight. Contenders that try to write a resolv.conf are resolvconf, dhcp, interfaces, network manager and recently systemd-resolved. Other programs also may use resolv.conf, like dnsmasq. Thus, a simple solution doesn't work in all cases.

I like Ubuntu's NetworkManager -- it does a great job keeping track of all my WiFi parameters and passwords. However, when I actually plug in an Ethernet cable, the frustration begins. When hooked up to my work LAN, I'd like to force a particular domain search path. But I can't just edit resolv.conf, since NetworkManager will always overwrite it. Configure a Private Amazon EC2 Instance with a Static DNS Jan 23, 2020 Ubuntu – Package Download Selection -- resolvconf_1 If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website. You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

How can I set a search domain (and other resolv.conf

Jul 24, 2020

Using host DNS in Docker container with Ubuntu 18 - Louis

Jul 24, 2020 [Bug 1887364] Re: update-resolv-conf script needs update Thanks Lucas and Simon. Good to know there's already a way to make this work. I do believe there's some user experience to be improved here. The openvpn packages currently ships with a script version that doesn't work out-of-the-box, even though there is an optional script available that does work. WSL2: resolv.conf being reset despite generateResolvConf That worked, except now even after replacing resolv.conf it seems I'm not getting any name resolution whatsoever. I tried "nameserver 8.8.8.8" and "nameserver 1.1.1.1" and neither work. resolv.conf is owned by root:root and has permissions 644. I can ping both of those addresses just fine. How to Run PiHole in Docker on Ubuntu, w/ and w/o Reverse