LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-09-2012, 06:42 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
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 192.168.1.254" 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
etech3
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
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
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
 
  


Reply

Tags
dns, manually, server, set, ubuntu



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:14 PM.

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