[Dnsmasq-discuss] RHEL 6.2: dnsmasq way-back machine
Paul Smith
paul at mad-scientist.net
Fri Mar 16 21:37:47 GMT 2012
Hi all. I have Red Hat EL 6.2 installed which provides dnsmasq 2.48
(plus some patches). Updating this to a newer version is problematic
(for non-technical reasons: of course compiling it is no problem).
I'm trying to use the dhcp-script=/some/file option in my dnsmasq config
file, where /some/file is just a simple shell script that dumps its
arguments and environment to a file in /tmp.
I'm seeing issues in that not all the DHCP client leases are being
logged. I have a system with two different network interfaces, both of
which are attached to the same LAN and hence get IP addresses from
(different subnets serviced by) the same dnsmasq instance. However, I
consistently see only one of these logged. I really have to have a 100%
reliable method of determining whenever a new lease is handed out.
I notice that the documentation of dhcp-script in the man page of the
release I'm using is not as definitive as the current latest man page
with respect to what happens if a lease is handed out while the script
is still running from a previous lease. The current man page says
specifically that all leases will eventually have the script invoked;
the current one doesn't say so quite so clearly.
Is this a difference in functionality, where dnsmasq circa 2.48 might
miss some invocations of dhcp-script if leases are handed out all at the
same time? Or is this supposed to work even with this older version?
Just trying to see if I should keep banging on this thing trying to get
it to work, or stop and find another way :-)
Cheers!
More information about the Dnsmasq-discuss
mailing list