How to change DNS in Linux Ubuntu

How to change DNS in Linux Ubuntu 16.04

Follow these simple steps to change DNS in Linux Ubuntu:

Step #1: Select the Network icon from the top left corner on your screen
How to Change DNS in Linux 01

Step #2: Then select either "wifi" or "wired" connection which you are using and click on "edit" again or you can also select edit Connections.
How to Change DNS in Linux 02

Step #3: Open the connection that you wish to modify, e. g. Wired Connection.
How to Change DNS in Linux 03

Step #4: Select the IPv4 tab and set IPv4 method to Automatic (DHCP).
How to Change DNS in Linux 04

Step #5: Select "Additional DNS Servers" and enter the DNS servers separated by a comma for e.g. Can-wnp.serverroutes.com and "Apply" afterwards and you are done.
How to Change DNS in Linux 05

Congratulations you are done.