[Dnsmasq-discuss] dump dynamic dns assignments
Buck Horn
buckhorn at weibsvolk.org
Thu Mar 21 07:16:21 UTC 2024
On 21.03.24 04:33, Tim Tassonis wrote:
> What I wonder: Is there a way to find out what hostnames the dhcp
> server has assigned to what ip addresses dynamically? I know that
> dnsmasq registers them just fine, but is there a run-time access to
> that information?
dnsmasq stores its currently active lease information in a file
(dnsmasq.leases), see
https://dnsmasq.org/docs/dnsmasq-man.html#lbAL
An explanation of the field format can be found from the mailing list, see
https://www.mail-archive.com/dnsmasq-discuss@lists.thekelleys.org.uk/msg00771.html
And of course, if you knew either an IP or a hostname of an active(!)
dynamic client, you could query dnsmasq for the other.
Kind regards,
Buck
More information about the Dnsmasq-discuss
mailing list