PDA

View Full Version : Editing dhcpd.conf to enable apt-get access



gordonbp
08-06-2005, 11:04 AM
I need to edit the dhcpd.conf file to set up my ISP dns server in order to get resolv.conf to accept it otherwise resolv.conf gets overwritten on every boot-up by DHCP. (I can't use a static IP address as my router is supplied ready-cinfigured by my Wife's company and can't be accessd. They also supply AND pay for my Broadband access! <VBG>)
I did this successfully in Ubuntu which is also a Debian-based distro, but the config file there was totally different!
What lines in dhcpd.conf do I have to change?

Thanks

UnderScore
08-06-2005, 05:08 PM
I think you might be looking in the wrong file. dhcpd.conf is used to configure the dhcp service (http://www.8ung.at/spblinux/doc/dhcpd.conf.html). The only time you need to edit that file is when you want to start a DHCP server for your LAN. Perhaps you need to edit the /etc/network/interfaces (http://www.annodex.net/cgi-bin/man/man2html?interfaces+5) file.

gordonbp
08-06-2005, 05:11 PM
I think you might be looking in the wrong file. dhcpd.conf is used to configure the dhcp service (http://www.8ung.at/spblinux/doc/dhcpd.conf.html). The only time you need to edit that file is when you want to start a DHCP server for your LAN. Perhaps you need to edit the /etc/network/interfaces (http://www.annodex.net/cgi-bin/man/man2html?interfaces+5) file.

No it's not that - I need to be able to add my ISP dns to resolv.conf - if I do that manually, it is overwritten on each startup by the DHCP server on the router.

UnderScore
08-06-2005, 05:15 PM
OK. Are you running Knoppix from the CD or has it been installed to the HD? If it has been installed to the HD, then what type of HD install (http://www.knoppix.net/wiki/Hd_Install_HowTo#Types_of_installation) did you use?

gordonbp
08-06-2005, 06:09 PM
OK. Are you running Knoppix from the CD or has it been installed to the HD? If it has been installed to the HD, then what type of HD install (http://www.knoppix.net/wiki/Hd_Install_HowTo#Types_of_installation) did you use?

HDD install - I /think/ I did the Debian install but it might have been the beginner as I wanted multiple uers. Sorry I can't remember more clearly!