Ubuntu Name Server

Under /etc, there is a file named “resolv.conf”

The Primary nameserver should be configured as well as another host to double check things. Simply edit /etc/resolv.conf and add the following:


And if you put the line:


After you do:

networking restart


sudo ifdown eth0 && sudo ifup eth0 (especially when you stop network remotely, use this)

the name server will goto /etc/resolv.conf it self.it will looks like the folowing:



About zephyr9000

Happy sailer
This entry was posted in Ubuntu Configuration and tagged , . Bookmark the permalink.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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