Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 10-09-2012, 06:42 PM   #1
Registered: Oct 2003
Location: Canada
Distribution: Ubuntu Server LTS 14.04.1
Posts: 550

Rep: Reputation: 36
Ubuntu Server manually set DNS

Hey LQ,

Quick question here. I have a ubuntu server up and running with a static IP address, no issues there. The problem I'm having is that whenever I reboot the machine it seems to lose it's DNS settings. I can set the DNS settings manually by doing a sudo nano /etc/resolv.conf and manually adding in "nameserver" and then DNS begins to work, but for some reason I lose this configuration upon reboot.

How do I get around this?
Old 10-10-2012, 11:44 AM   #2
Senior Member
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
What have you got in your /etc/network/interfaces file?

Any DNS info in there?
Old 10-10-2012, 02:41 PM   #3
Registered: Oct 2003
Location: Canada
Distribution: Ubuntu Server LTS 14.04.1
Posts: 550

Original Poster
Rep: Reputation: 36
Hey thanks for chiming in. I've actually managed to get the DNS settings to stick. Turns out you don't set the dns server manually in /etc/resolv.conf anymore (at least not in Ubuntu Server). You set it in the /etc/network/interfaces script. So it's all working now


dns, manually, server, set, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I manually add names to my DNS server? jbruyet Linux - Software 1 08-16-2012 06:47 PM
How to Update the ubuntu server manually thoufiq Linux - Server 1 04-12-2011 03:20 AM
[Ubuntu] Set up dns server - Need Help athar48 Linux - Server 1 03-30-2011 08:34 AM
Manually set DNS. Unr3a164 Ubuntu 9 06-05-2009 08:02 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration