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.

nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 202.51.5.52


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 google.com.my
$ nslookup ubuntu.com
$ ping mindaict.blogspot.com