Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Sorry if this sounds a bit pissy but im a bit frustrated with this problem and its something I just cannot understand why it has never been fixed. Back some time ago I used to love this program called dhcpcd it would find my hosts setup my network and not touch my resolv.conf file if I passed it the -R option. Then something happened the guys who develop the program decided that users setting up there resolv.conf was just crazytalk and took out the option. They however had the hindsight to add in a -C option to not touch resolv.conf.
But alas not all was well in the village for dhcpcd would ignore this and clobber the file anyway. I understand that for most people having this file created every time is not a problem, then again everyone normally has name resolvers working properly. Many others after searching around are also frustrated with this problem and yet no one can seam to get dhcpcd to behave. If I could ask the devs one question it would be why did they remove the option and second when they added the new one make sure it works before writing this off as not a problem.
Anyone out there got a solution that actually works without me having to edit this file every time dhcpcd is started?
This is a slightly sideways answer, but yet relevant to the big picture.....Use WICD. You put settings into each connection option and the system handles the rest. I haven't typed "dhcpcd" for quite some time.
WICD is a connection manager tho so it still is going to have to do something behind the scenes with other programs. Does it use dhcpcd or does it have a built in for this? I have heard of this program before and it has spiked my interest even if its a gui tool and I like to keep stuff with my network console based.
Take a look at "man dhclient.conf" and the supersede and prepend options. I don't use them any more, so I can't remember which it is. On my system, I use the "send host-name" line to tell dhcp what my host name will be when configured. And yes, it took me forever to find this stuff though it's right there in the manual.
WICD is a connection manager tho so it still is going to have to do something behind the scenes with other programs. Does it use dhcpcd or does it have a built in for this? I have heard of this program before and it has spiked my interest even if its a gui tool and I like to keep stuff with my network console based.
I like to use the tool that make things the easiest---sometimes that's GUI--sometimes CLI. Networking--I use CLI mainly for torubleshooting.
They explained that they went to a system that uses scripts and that I was using the -C command incorrectly. They said that if you cannot get it to work by just using resolv.conf then try putting int he whole path to the script and that worked. This may have something to do with it being on a LFS system I dunno.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.