Date: Fri, 03 Dec 2004 14:38:41 -0800 From: "Andrew D. Clark" <andrew.clark@ucsb.edu> To: freebsd-questions@freebsd.org Subject: isc-dhcp3-server chroot behavior Message-ID: <B7AB4681FBF8712BF64EAA02@localhost.localdomain>
next in thread | raw e-mail | index | archive | help
Hello, I'm using the chrooted isc-dhcp3-server and I'd like the startup script to do a few extra things which it does not. In order for name resolution to work for a chrooted dhcp server, the following files must be in /etc in the chroot: host.conf hosts localtime resolv.conf The startup script doesn't handle copying those into the chroot, though I think it should. Name resolution is handy if one wants to do something like: host somehost { hardware ethernet blahblah; fixed-address somehost.somedomain; } instead of using an IP address as the parameter for the fixed-address argument. I'd also like to add a feature to the rc script whereby one can define a directory containing configs to be included in the dhcpd.conf to also be copied to the chroot. A large configuration file is often easier to handle if it is broken up into smaller files which are included into the dhcpd.conf. If these included files lived only in the chroot, they'd have to be edited there, which would be confusing compared to the behavior of the dhcpd.conf in the chroot, which is copied from /usr/local/etc/dhcpd.conf at startup. I'm running isc-dhcp3-server-3.0.1.r14_6 I'll happily submit a patch against the current rc script which implements these features if desired. -- Andrew Clark Campus Network Programmer Office of Information Technology University of California, Santa Barbara andrew.clark@ucsb.edu (805) 893-5311
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B7AB4681FBF8712BF64EAA02>