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.
Hey all.. I want to change my dhcpd.conf file dynamically using C program.. The values of the parameters in the dhcpd.conf file will be provided by an application which will take inputs from the admin and accordingly, pass the values which I need to change in my dhcpd.conf file.. Please suggest some way to do it..
I thought of rewriting the .conf file each time when the values are given by the admin but will it be feasible??
As a tip to doing this, you have a couple of options, one is to do as you suggest re-writing the conf file each time. Alternatively if you know the keywords in the file that need to be edited for each admin entry then you could read the file and search for the keyword(s) then re-write just that line.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.