[Dnsmasq-discuss] 'dnsmasq_client_id' not always present on dhcp-scripts

Taylor Fox taylor at foxt.dev
Tue Sep 6 16:23:33 UTC 2022


Hello,
     I am trying to write a script for logging & notification whenever a
new DHCP lease is issued, and I currently have a script that uses the
`dnsmasq_client_id` environment variable to get the MAC address of the
device that the lease was issued, but I have had an issue where on some
device that variable is not present and causes the script to fail. Could
anyone shed a light on why this is not working? Otherwise, any better way
of finding the MAC address other than diffing /etc/dhcp.leases.


Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20220906/f5fe1194/attachment.htm>


More information about the Dnsmasq-discuss mailing list