Include a file from dhcpd.conf in ISC DHCPD

Santi Saez santi at usansolo.net
Thu Nov 30 11:07:45 UTC 2006


El 29/11/2006, a las 11:53, Glenn Satchell escribió:

> dhcp-2.0 is *very old* - about 5-6 years. It does not support the
> include statement. Suggest you upgrade to dhcp-3.0.5 (the latest
> stable) where include works very nicely.

Thanks, I have upgrade to 3.0.1-2 and "include" directive works fine :-)

It's possible to use globbing characters, like "*", "?", etc.. ? I  
get this error when using for example "include "/etc/dhcp3.d/*.conf";"

Nov 30 11:58:35 pxe dhcpd: Can't open /etc/dhcp3.d/*.conf: No such  
file or directory

Regards,

--
Santi SaezFrom glenn at uniq.com.au  Thu Nov 30 11:43:05 2006
Received: with ECARTIS (v1.0.0; list dhcp-users); Thu, 30 Nov 2006 11:43:05 +0000 (UTC)
Return-Path: <glenn at uniq.com.au>
X-Original-To: dhcp-users at webster.isc.org
Delivered-To: dhcp-users at webster.isc.org
Received: from mx.isc.org (mx.isc.org [IPv6:2001:4f8:0:2::1c])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mx.isc.org", Issuer "ISC CA" (verified OK))
	by webster.isc.org (Postfix) with ESMTP id C870310E47E
	for <dhcp-users at webster.isc.org>; Thu, 30 Nov 2006 11:43:05 +0000 (UTC)
	(envelope-from glenn at uniq.com.au)
Received: from ipmail02.adl2.internode.on.net (ipmail02.adl2.internode.on.net [203.16.214.141])
	by mx.isc.org (Postfix) with ESMTP id C1C9E11402D
	for <dhcp-users at isc.org>; Thu, 30 Nov 2006 11:43:04 +0000 (UTC)
	(envelope-from glenn at uniq.com.au)
Received: from ppp201-202.static.internode.on.net (HELO gin.uniq.com.au) ([150.101.201.202])
  by ipmail02.adl2.internode.on.net with ESMTP; 30 Nov 2006 22:13:02 +1030
X-IronPort-AV: i="4.09,478,1157293800"; 
   d="scan'208"; a="53640419:sNHT21805280"
Received: (from smtpd at localhost) by gin.uniq.com.au id WAA15835
  (8.8.5/IDA-1.6 for <dhcp-users at isc.org>); Thu, 30 Nov 2006 22:42:56 +1100 (EST)
Received: from tonic.uniq.com.au(172.16.1.2), claiming to be "lager.uniq.com.au"
 via SMTP by gin.uniq.com.au, id smtpdAAATGa46E; Thu Nov 30 22:42:52 2006
Received: from drill.uniq.com.au (drill.uniq.com.au [192.168.14.28]) by lager.uniq.com.au with SMTP id WAA20827
  (8.8.7/IDA-1.6 for <dhcp-users at isc.org>); Thu, 30 Nov 2006 22:42:50 +1100 (EST)
Message-ID: <200611301142.WAA20827 at lager.uniq.com.au>
Date: Thu, 30 Nov 2006 22:42:50 +1100 (EST)
From: Glenn Satchell <Glenn.Satchell at uniq.com.au>
Subject: Re: Include a file from dhcpd.conf in ISC DHCPD
To: dhcp-users at isc.org
MIME-Version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-MD5: UAYkiMIi5CLMzsgiS7HN2w==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.6 SunOS 5.10 sun4u sparc 
X-archive-position: 2371
X-ecartis-version: Ecartis v1.0.0
Sender: dhcp-users-bounce at isc.org
Errors-to: dhcp-users-bounce at isc.org
X-original-sender: Glenn.Satchell at uniq.com.au
Precedence: bulk
Reply-to: dhcp-users at isc.org
List-help: <mailto:ecartis at isc.org?Subject=help>
List-unsubscribe: <mailto:dhcp-users-request at isc.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: <dhcp-users.isc.org>
X-List-ID: <dhcp-users.isc.org>
List-subscribe: <mailto:dhcp-users-request at isc.org?Subject=subscribe>
List-owner: <mailto:listmaster at isc.org>
List-post: <mailto:dhcp-users at isc.org>
X-list: dhcp-users


>From: Santi Saez <santi at usansolo.net>
>Subject: Re: Include a file from dhcpd.conf in ISC DHCPD
>Date: Thu, 30 Nov 2006 12:07:45 +0100
>To: dhcp-users at isc.org
>
>El 29/11/2006, a las 11:53, Glenn Satchell escribió:
>
>> dhcp-2.0 is *very old* - about 5-6 years. It does not support the
>> include statement. Suggest you upgrade to dhcp-3.0.5 (the latest
>> stable) where include works very nicely.
>
>Thanks, I have upgrade to 3.0.1-2 and "include" directive works fine :-)
>
>It's possible to use globbing characters, like "*", "?", etc.. ? I  
>get this error when using for example "include "/etc/dhcp3.d/*.conf";"
>
>Nov 30 11:58:35 pxe dhcpd: Can't open /etc/dhcp3.d/*.conf: No such  
>file or directory

Globbing is not supported, so you'll need to include each file separately.

Note that 3.0.1 is still about 3 years old and there are a lot of bug
fixes in later releases. Not sure what the latest dhcpd port for debian
is, but there are a few Debian people on the list so one of them may be
able to answer.

regards,
-glenn


More information about the dhcp-users mailing list