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 22.214.171.124 126.96.36.199 (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.