I'm having an issue in which my /etc/resolv.conf points to localhost. Ideally, I'd like to be able to change my DNS settings through my distros settings UI, and have the DNS servers updated directly in /etc/resolv.conf.

In 16.04, I did this by modifying /etc/NetworkManager/NetworkManager.conf and removing dns=dnsmasq. After doing this, the namesevers in resolv.conf would reflect my network settings changed through the GUI.

This isn't working in 18.04. Removing dns=dnsmasq does nothing and my resolv.conf file gets overwritten. Has there been a change in the way this works from 16.04 to 18.04?

My only option right now is to make my resolv.conf file immutable and hard code my DNS servers of choice, but this isn't very convenient so I'd like to avoid doing that at all costs.

  • 1
    I do not believe that NetworkManager is the default software for managing networks in Ubuntu 18.04. You should look into doing what you want with Netplan or find the configuration to Netplan that lets you use NetworkManager again. – GracefulRestart Sep 26 at 20:11
  • Yeah you're right about that - although can't really test anything now though as I re-installed 16.04 due to some other issues I was having. Will have to give it an attempt in the future after I do a clean install at some point. – Top Cat Sep 26 at 23:57

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.