How To Set Google DNS On Your Linux Computer (Ubuntu)

Share This!

Linux (Ubuntu)

This page will guide you through the setup process on a Linux computer. While this instructions are based on Ubuntu 16.04 LTS with Unity desktop environment, the principal should be similar to most Linux distributions.

If you would like to set Google DNS using the built-in terminal, kindly refer our instructions here:


  1. Click on the internet connection icon on the right side of the top menu bar.

    On the menu, click on Edit Connections… and the Network Connections window will appear.

    linux-edit-wifi-selection.png

    Note: If you are connecting via Ethernet, the icon will look as below.

    Taskbar%20Ethernet.png

  2. Select your active internet connection (Wi-Fi if wireless, or Ethernet if you’re computer is hardwired) and then click the Edit button. 

    List%20WiFi.png

  3. Click on the IPv4 Settings tab, and in the text field next to Additional DNS servers: , enter the Google DNS addresses below:

    8.8.8.8
    8.8.4.4

    Please separate each address with a comma. As an example, when entering the Google DNS address, please enter them as: 8.8.8.8, 8.8.4.4

    Editing%20WiFi.png

  4. Once you’ve entered the DNS information, click on the Save button to save the settings.

  5. You will need to reconnect your network for the settings to take affect. Alternatively, you can also reboot your computer.

    To reconnect, click on your internet connection icon on the top menu bar and on the menu, click on Enable Networking to uncheck it.

    linux-disable-networking.png

    You will see the following message on your screen which indicates that you’ve disconnected from your network.

    linux-wifi-logo-disconnected.png

    Next, click on the internet connection icon and click on Enable Networking once again to reconnect.

    linux-enable-networking.png

    You will see the following message on your screen which indicates that you’ve connected to your network.

    linux-wifi-logo-connected.png




If you wish to set a custom DNS on a different device or system, please refer to our article here:

How to Set Google DNS on your device / system

If you have any problems or need further assistance, please email us at [email protected]. We’ll get back to you as soon as possible and try to help.