LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2005, 06:52 PM   #1
liquidrave
LQ Newbie
 
Registered: Apr 2005
Location: Colorado
Distribution: Suse 9.2 (For now)
Posts: 29

Rep: Reputation: 15
Nameservers keep reverting to defaults


The /etc/resolv.conf file has the wrong nameserver set, but whenever I edit the nameserver, the changes don't take effect and the file reverts to the default nameserver. I'm running SUSE Linux 9.2, and I'm also behind a router. I changed the router nameservers, and the changes took effect, but the ones in the /etc/resolv.conf file won't change. In addition, everytime I open the file, there's a strange paragraph that reads, "This is a temporary resolv.conf created by service dhcpcd. The previous file has been saved and will be restored later."

Any ideas? Any and all help will be appreciated.
 
Old 04-26-2005, 07:30 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: Nameservers keep reverting to defaults

Quote:
Originally posted by liquidrave
The /etc/resolv.conf file has the wrong nameserver set, but whenever I edit the nameserver, the changes don't take effect and the file reverts to the default nameserver. I'm running SUSE Linux 9.2, and I'm also behind a router. I changed the router nameservers, and the changes took effect, but the ones in the /etc/resolv.conf file won't change. In addition, everytime I open the file, there's a strange paragraph that reads, "This is a temporary resolv.conf created by service dhcpcd. The previous file has been saved and will be restored later."

Any ideas? Any and all help will be appreciated.
Your DHCP server will update your resolv.conf with its own DNS settings, if you changed its settings and its still updating with the old ones, could be something wrong with your router, don't know cause I don't know what type of router your using. If this is a Linksys router of some sort, might be better off setting your machine up with a static IP and settings..
 
Old 04-27-2005, 02:02 AM   #3
liquidrave
LQ Newbie
 
Registered: Apr 2005
Location: Colorado
Distribution: Suse 9.2 (For now)
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks for the reply trickykid. My router is a D-link, but I updated the router with the new nameservers and they remain, so I'm a bit doubtful that it's being caused by the router (However, I'm still relatively new to Linux so I could easily be wrong.) I think it might have something to do with the fact that the resolv.conf file claims it's a temporary file, and that that might be the reason it keeps reverting. Apparently, there are ways to access the sysconfig files to change the permissions the service dhcp has, but like I said I'm too new to know what I'm doing.

Any and all replies are greatly appreciated.
 
Old 04-27-2005, 03:06 PM   #4
liquidrave
LQ Newbie
 
Registered: Apr 2005
Location: Colorado
Distribution: Suse 9.2 (For now)
Posts: 29

Original Poster
Rep: Reputation: 15
Re: Re: Nameservers keep reverting to defaults

Quote:
Originally posted by trickykid
Your DHCP server will update your resolv.conf with its own DNS settings, if you changed its settings and its still updating with the old ones, could be something wrong with your router, don't know cause I don't know what type of router your using. If this is a Linksys router of some sort, might be better off setting your machine up with a static IP and settings..
I reread your post and realized I missed your first point. That might very well be the problem, but how would I go about changing the DHCP servers DNS settings?
 
Old 04-27-2005, 03:36 PM   #5
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
typically your dns server is 2 sided monster .. it gets dns settings from the wan side (where it is a client) ..and it gives them out on the lan side to it's clients.
you most likely can't change that .. and surely you have no reason to change them ..unless you want to really have fun ..
you should login into your dhcp server and see what it has in the setting for wan side .. most of them show it.
 
Old 04-27-2005, 04:45 PM   #6
liquidrave
LQ Newbie
 
Registered: Apr 2005
Location: Colorado
Distribution: Suse 9.2 (For now)
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks for your reply, winsnomore. However, I'm unsure how to login into my DHCP Server. Is it a configuration file, or similar to my router settings, or what?
 
Old 04-27-2005, 06:23 PM   #7
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
Is it a home network ? typically the routers all have a html based setup .. they end up using the "first address" so for your 192.168.x.x home network ..
the router will (should) have a page at 192.168.x.1 ..
(you can check by pinging this addresses .. if some one responds to it, chances are pretty good you can log into it.)
just open a browser window and type that address in browser window and see what happens.

Most will let you see things however if you might have to login to the router and for that you will need a login name and password.
typically each router has a default and you can check the manufacturer web site for a manual and read it thru .. there are no standards in this ..
 
  


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
Nameservers and registering them Q mpower Linux - Networking 2 03-30-2005 07:13 PM
Nameservers -- must I use my ISP's? Apollo77 Linux - Networking 5 03-09-2004 12:45 PM
Reverting the resolution suwandy_chandra Linux - Newbie 4 03-06-2004 05:00 AM
Registering nameservers Polaris2203 Linux - Networking 7 09-15-2003 08:13 PM
nameservers.... Config Linux - Networking 2 01-19-2003 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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