From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 19:55:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1864C106564A for ; Tue, 30 Dec 2008 19:55:07 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id DF2C98FC12 for ; Tue, 30 Dec 2008 19:55:06 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 13D721FF299; Tue, 30 Dec 2008 14:55:06 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 30 Dec 2008 14:55:06 -0500 X-Sasl-enc: fC0k9nKFZ7343+X7B8ThNE82nLPW9xDjcaCv+g/gtlfI 1230666905 Received: from hagrid.ewd.goldmark.org (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTPSA id A00FE510C; Tue, 30 Dec 2008 14:55:05 -0500 (EST) Message-Id: <871E23EC-C811-4432-95F8-C3347D256C6D@goldmark.org> From: Jeffrey Goldberg To: Pieter Donche In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 30 Dec 2008 13:55:03 -0600 References: X-Mailer: Apple Mail (2.930.3) Cc: "mail.list freebsd-questions" Subject: Re: editing dhcpd.conf file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 19:55:07 -0000 On Dec 30, 2008, at 11:53 AM, Pieter Donche wrote: > Now, when someone already registered his laptop, and buys a new > latop to replace the old (a different MAC address), can then omshell > be used to record the change in the /usr/local/etc/dhcpd.conf file? > Does omshell edit the /usr/local/etc/dhcpd.conf? > > Or is the only way to make changes to that file, to use an plain text > editor, make the change manually and do a /usr/local/etc/rc.d/isc- > dhcpd restart afterwards ? I hadn't heard about omshell or OMAPI until seeing your post. So my answer is based on no experience other than just reading its man pages. It appears that OMAPI does not edit the dhcpd.conf file. However, changes made through OMAPI will be reflected in dhcpd.leases with the line dynamic; indicating that the lease was created via OMAPI. Thus, in principle one could write a daemon that would watch dhcpd.leases for new dynamic leases and then call something that would edit dhcpd.conf. I don't know if anyone has put that together, but it would make sense to ask in places where OMAPI is discussed. Best of luck with this, Cheers, -j