Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6103

Networking and servers • Re: Get DHCP Lease clients start time

$
0
0
Possibly look in /var/lib/misc/dnsmasq.leases for details.

DNSMASQ could run a program when lease records change last time I dug into this - look in the config file for an option for dhcp-script (or scripts) - it gets called when a new record is added, ends or deleted IIRC This would be my preferred way just in case the file structure changes.

More details may be in the man file or at https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

Remember that lots of systems now mask MAC details by generating random addresses at connect time or every day or so - this may make your data pointless or baffling.

Note I have zero idea how to do this under Network Manager :cry:

Statistics: Posted by MiscBits — Wed Mar 20, 2024 4:46 pm



Viewing all articles
Browse latest Browse all 6103

Trending Articles