From owner-freebsd-questions@FreeBSD.ORG Fri Dec 3 22:38:44 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 923C116A4CE for ; Fri, 3 Dec 2004 22:38:44 +0000 (GMT) Received: from smtp.ucsb.edu (ucsb.edu [128.111.24.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B33D43D5C for ; Fri, 3 Dec 2004 22:38:42 +0000 (GMT) (envelope-from andrew.clark@ucsb.edu) Received: from modulus.oit.ucsb.edu ([128.111.12.24]) by smtp.ucsb.edu with asmtp TLSv1:AES256-SHA:256 id 1CaM4Y-000BKH-39 for freebsd-questions@freebsd.org; Fri, 03 Dec 2004 14:38:42 -0800 Date: Fri, 03 Dec 2004 14:38:41 -0800 From: "Andrew D. Clark" To: freebsd-questions@freebsd.org Message-ID: X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: isc-dhcp3-server chroot behavior X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 22:38:44 -0000 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