This page will guide you through the setup process on a Linux computer using the built-in terminal, which is available on almost all versions and distributions of Linux.
If you are using Ubuntu and would like to set Google DNS via its Unity desktop environment, kindly refer our instructions here:
- Go to your Terminal and type in sudo bash . This will give you super user privilege.
- Once you have the super user (administrator) access, type in the command below to back up your network configuration file.
cp /etc/resolv.conf /etc/resolv.orig
- Next, type in the command below to remove the resolv.conf file.
- Now, type in the command below one at a time.
echo "nameserver 18.104.22.168" > /etc/resolv.conf
echo "nameserver 22.214.171.124" >> /etc/resolv.conf
- Finally, type in the command below.
If the set up was successful , it will display the Google DNS that you've specified earlier.
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