Changing DNS nameservers manually

linux-penguinGetting to grips with the command line in Linux will mean that you'll always be able to manage practically any Linux distribution (and there are literally hundreds) without having to learn a new interface. Command line instructions are often quicker to implement as well.

Edit /etc/resolv.conf

Log in to your Linux server using your username and password, and enter the following command...

sudo vi /etc/resolv.conf


Now edit the file as below...

search myserver.mydomain.local


Note that your machine will try first and then


Thanks for visiting.