[Dnsmasq-discuss] Notification when a system gets a lease

richardvoigt at gmail.com richardvoigt at gmail.com
Tue Dec 7 21:34:45 GMT 2010


You should get a "renew" notification to the script whenever a client
boots (assuming that the client is configured to renew a lease at
boot, most are but it isn't strictly necessary if there's still time
left on the last lease).

On Tue, Dec 7, 2010 at 9:40 AM, Paul Smith <psmith at gnu.org> wrote:
> Hi all; I wonder if you have some thoughts about this.  I would like to
> get a foolproof indication on the DHCP server that each of my DHCP
> clients has booted.  For my systems, there's a 1-1 correspondence
> between a DHCP request/ack sequence and a boot (my leases are infinitely
> long and my clients run only once, to get the lease, then exit).  I'd
> like to notify a 3rd application when this reboot happens.
>
> The --dhcp-script capability of dnsmasq seems like it's going in that
> direction, but I think it's not going to work.
>
> First, the script gets an "old" request for every lease when it starts,
> which isn't really what I want.
>
> Second, reading the man pages it appears to me that if my clients reboot
> but they come up with the same mac and hostname that they had before,
> the script won't be run at all.
>
>
> Am I reading this correctly?  If so does anyone have any thoughts about
> how I could get where I need to go?
>
> Thanks!
>
> --
> -------------------------------------------------------------------------------
>  Paul D. Smith <psmith at gnu.org>          Find some GNU make tips at:
>  http://www.gnu.org                      http://make.mad-scientist.net
>  "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>



More information about the Dnsmasq-discuss mailing list