$ sudo gedit /etc/resolv.conf
Then make sure there is an entry for each nameserver in the format below
nameserver <ip address of nameserver 1>
nameserver <ip address of nameserver 2>