How to add DNS (name server) in Ubuntu

Okay, I just add name servers into my Ubuntu. Here's how to do it.

Open your terminal, type this :

$ sudo /etc/resolv.conf

Append/ type this into your resolv.conf. This is opendns servers.


If you prefer malaysian name servers, you can check it here.

Save and close the file. Test your dns configuration by typing the following commands:

$ host
$ nslookup
$ ping