[Dnsmasq-discuss] 'dnsmasq_client_id' not always present on dhcp-scripts
Taylor Fox
taylor at foxt.dev
Thu Sep 8 21:49:41 UTC 2022
Hi Simon,
Thanks for your response, I must have missed the extra arguments, but
using those did the trick. Thanks for your help.
ps: I am sorry if this comes in under the wrong thread, emails from your
servers don't seem to be making it to Google's servers when sending emails
to my address.
Thanks
Taylor Fox
On Tue, 6 Sept 2022 at 17:23, Taylor Fox <taylor at foxt.dev> wrote:
> 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/20220908/8f5f4088/attachment.htm>
More information about the Dnsmasq-discuss
mailing list