If you are using ubuntu 14.04, you may find you can not setting dns on your /etc/resolv.conf
This is because ubuntu using resolvconf to manage the dns setting, every times system boot, resolvconf will regenerate resolv.conf file.
But there always have way to do this.
put your nameserver list in
nameserver 188.8.131.52nameserver 184.108.40.206
this command tell resolvconf to regenerate the resolve file