How to configure nameservers on Ubuntu 14.xx

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 (spaces between the nameservers)

then if you are using VM for example

you can switch off and switch on your network card by typing

#ifdown eth0

#ifup eth0

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.

Many thanks!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s