Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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."
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..
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.
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?
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
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.
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?
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
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 ..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.