Set DNS

OS: Ubuntu 14.10

1. /etc/resolv.conf

append the following:

nameserver 61.139.2.69
nameserver 218.6.200.139

2. /etc/network/interfaces

if a static IP is set, the DNS can be set as the bold text:

iface em1 inet static
    address 192.168.1.150
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 61.139.2.69

3. restart estart network or reboot

sudo /etc/init.d/networking restart