# >> Persistent$ sudo nano /etc/network/interfaces#Below iface eth0 inet static add the following line:dns-nameservers 10.10.10.12 8.8.8.8 #This will use Google's DNS servers.# Note: as chaos says, you can also edit /etc/resolv.conf # but these changes will be overwritten on reobot.# >> Temprary$ vi /etc/resolv.confnameserver 8.8.4.4# Restart your network$ sudo /etc/init.d/networking restart