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.
Hello everybody,
Long long ago, when sun was shining bright and life was good, I had FC 1. I was running a caching-only name server (named) on my PC to milk a few micro seconds in surfing. I had made the first line of /etc/resolv.conf as "nameserver 127.0.0.1". Next two entries were temporarily put by my ISP whenever I was dialling to it. And the first entry (...127.0.0.1) was available and doing my work whenever I was connected to the internet.
But Now !
Now the sky is overcast and the life is not good and I have an FC 4.
The first line of resolv.conf no longer remains there when I dial out to my ISP - the two temporary entries are there. When I disconnect, and check the file, I find the 127.0.0.0-entry is very much there. I don't know where does the hand-made entry goes when I dialout to ISP.
How can I make this hand-made entry the permanent entry in the /etc/resolv.conf. I would not want to change the attributes of the file for obvious reasons.
normally you can wop an additional line into your ifcfg-eth0 file, but fedora seems to want to be wrapping it a lot more these days. check the manpage for dhclient-script for details on how to make dhclient behave differently from the standard actiosn like overwriting resolv.conf
hmm.. get's messier... then seems to get clearer...
seems that you would use /etc/dhclient.conf and looking at the example file (/usr/share/doc/dhclient-3.0.2/dhclient.conf.sample on my fc4 box) you would want to just put a line in it that says "prepend domain-name-servers 127.0.0.1;" presumably this means that dhclient should add 127.0.0.1 to the start of the list of name servers, so it'll be at the top of the new resolv.cof files too.
Hello acid_kewpie,
Thanks for taking time to help.
The tip given by you about putting a file dhclient.conf in the /etc directory with the line "prepend domain-name-servers 127.0.0.1" has not been able to produce the desired result.
Hello everybody
I have delved into the documentation and come up with following:
it is pppd which asks the peer for DNS addresses. These addresses are saved in environementatl varaibles DNS1 and DNS2.
Simultaneously pppd saves the old resolv.conf file under the name of resolv.conf.save, and creates a new resolv.conf with the DNS1 and DNS2 entries.
So what to do next.
-Prabhat Soni
Last edited by prabhatsoni; 01-28-2006 at 06:22 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.