Ubuntu seems to change the way it configures the nameservers.
to be able to add nameservers what you need to do is:
edit this file
And add to the list
dns-nameservers 188.8.131.52 184.108.40.206 (spaces between the nameservers)
then if you are using VM for example
you can switch off and switch on your network card by typing
Obviously don’t do it if you are connected using SSH as you will loose connection.
Knows a better way of doing it?
Please leave comments and share and I will shall update this post for everybody benefit.