On 7/18/25 23:01, Jay Guerette wrote:
I have some house guests who brought devices that randomize their macs and don't provide host names. Due to their usage patterns they quickly exhausted my small DHCP pool.

Is there a way that I can tag hosts that don't provide a name so that I can provide a custom/shorter lease time?



You could approach this from the opposite direction and set the default lease time short, but extend it for your machines.


You can set the lease time for individual hosts in --dhcp=host:

dhcp-host=<MAC Addr>,24h

Or just make your hosts "known" with

dhcp-host=<Mac Addr>

and define dhcp ranges with different lease times based on the "known" tag

dhcp-range=tag:known,192.168.0.2,192.168.0.254,24h
dhcp-range=tag:!known,192.168.0.2,192.168.0.254,2h

Simon.
_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to