LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2013, 01:33 PM   #1
vignesh_murali2003
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Rep: Reputation: Disabled
resolv.conf


For some users when I add new internal nameserver address in resolv.conf after some time it disappears. Any suggestions??
 
Old 06-12-2013, 01:53 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Edited out in favor of Firerat's soution, thanks Firerat for pointing this one out, I always use static IP adresses on my LAN's, so the phenomenon of a changing resolv.conf never happened to me...

I learned something here! Thanks dude

Thor

Last edited by ButterflyMelissa; 06-12-2013 at 03:16 PM.
 
Old 06-12-2013, 01:55 PM   #3
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
resolv.conf is usually replaced when the network 'comes up' often by those offered by the DHCP server

Solutions vary
Probably the simplest is to force a static DNS in your network manager's settings

you could also look in /etc/resolvconf/resolv.conf.d/ ( assuming it exists )
 
1 members found this post helpful.
Old 06-12-2013, 03:38 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
'resolv.conf's should push and pop in an orderly fashion, so if you are saying that you make a change and then it permanently disappears, then something odd is happening. On the other hand, if, when some application such as NetworkManager or Wicd takes control of networking, you temporarily see something unconnected to what you originally set, then that is expected behaviour. But along with this expected behaviour, you should see some note along the lines of "### altered by network manager...do not edit" and probably a date/time that this last happened.

While NM/wicd are in control, any settings available from DHCP/mDNS might turn up in the file, although you can probably reconfigure them to only take selected parts of the information.

If, of course, you did edit the file while it had the "do not edit" comment present, you should expect things to go wrong, even if you don't know quite how soon this should happen.
 
  


Reply



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
/etc/resolv.conf lordra Red Hat 1 05-05-2006 06:54 AM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
resolv.conf Snump Mandriva 54 10-31-2004 04:16 PM
resolv.conf jmdlcar Slackware 9 05-15-2004 11:44 AM
Resolv.conf tristan_vdv Linux - Networking 2 11-20-2001 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 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