Update your DNS server on Linux

There’s a lot of different Linux distributions so you’re solution might vary. * Updating DNS in Ubuntu * Updating DNS by editing “/etc/resolv.conf” * Updating DNS by editing “/etc/systemd/resolved.conf”

Updating DNS in Ubuntu

On the top right of your desktop, open the drop down and select either Wired Settings or WiFi Settings.

ubuntu wired settings

Next press the gear icon next to the connection.

ubuntu gear icon

A window should pop up, nagivate to the IPv4 tab, disable Automatic in the DNS row and put, in the text field.

ubuntu dns settings

Updating DNS by editing “/etc/resolv.conf”

Linux uses the file /etc/resolv.conf to define the DNS servers it uses. However, this file is often managed by another program on the computer.

View the contents of /etc/resolv.conf by running cat /etc/resolv.conf. If you see a warning similar to

linux resolv conf warning

do not edit the file. Instead follow Updating DNS by editing “/etc/systemd/resolved.conf”

If you do not see this warning, change the file contents to


Updating DNS by editing “/etc/systemd/resolved.conf”

Systemd is a program on many linux distributions that help manage the operating system. To update the DNS we’ll edit /etc/systemd/resolved.conf. Find A part in the file that looks like




Change lines DNS=... and FallbackDNS=... to be


Save the file and run service systemd-resolved restart.