To use an other DNS server, open:
$ sudo nano /etc/resolv.conf
And write (for Google DNS):
nameserver 8.8.8.8