In this Tutorial, I will be showing you how to set which dns servers to use. To do this, we will need to set up the resolv file. Depending on if you are ubuntu or debian, the config files location changes slightly. Make sure you get the right one or it wont work and may be overwritten.
If you are on debian, you will need to use
But if you are on Ubuntu, you will need to use
In this file, you will be okay to delete everything. Once empty, you can set your nameservers like below.
nameserver 220.127.116.11 nameserver 18.104.22.168 nameserver 192.168.1.1
If you see a comment which says about it been generated by Network Manager, it is a good idea to follow this tutorial for How to Disable Network Manager from Starting in Debian as what you enter in here will most likely be reset every time you reboot.