Welcome Guest.   Make a donation to an author on the site September 17, 2014, 08:36:28 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Any way to make ubuntu server dns changes permanent?  (Read 3044 times)
nite_monkey
Member
**
Posts: 692


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: July 05, 2012, 12:02:04 AM »

I have a computer setup running ubuntu server 12.04, with a static ip, and every time I reboot it, it loses it's ability to do dns lookups. The only way I can fix this is by changing the etc/resolv.conf file and adding custom dns servers to it. Though as stated earlier, upon reboot, this file reverts to default, and my server can no longer do dns lookups. I've googled, and found one fix that said to do some chattr command, but that just gives me the error "chattr: Operation not supported while reading flags on resolv.conf". There was also another fix that said to add the dns servers to a file in the folder etc/dhcp3. The problem with that fix is, that folder doesn't even exist. Is there some place else that I can add custom dns servers that will persist between reboots.

Exact commands would be very helpful, because I am still a linux newb, and am still learning the terminal.
Logged

[Insert really cool signature here]
ewemoa
Honorary Member
**
Posts: 2,419



View Profile Give some DonationCredits to this forum member
« Reply #1 on: July 05, 2012, 12:20:07 AM »

Perhaps the following might work for you:

  http://askubuntu.com/ques...automatically/46134#46134
Logged
nite_monkey
Member
**
Posts: 692


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: July 05, 2012, 01:57:26 AM »

I actually found a different fix that works. I needed to add the dns servers to the etc/network/interfaces file, and that seems to update the resolv.conf file everytime I reboot the server.
Logged

[Insert really cool signature here]
ewemoa
Honorary Member
**
Posts: 2,419



View Profile Give some DonationCredits to this forum member
« Reply #3 on: July 05, 2012, 02:31:14 AM »

Cool that you have a fix that doesn't require another package smiley
Logged
nite_monkey
Member
**
Posts: 692


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: July 05, 2012, 04:32:43 AM »

Cool that you have a fix that doesn't require another package smiley
kind of a good thing too, because I can't find that package on my server. (trying to type apt-get install says it can't find it, and it isn't installed either.)
Logged

[Insert really cool signature here]
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.027s | Server load: 0.28 ]