[Dnsmasq-discuss] Different DHCP options offered to different static IP assignments on the same network?
Simon Kelley
simon at thekelleys.org.uk
Fri Jul 4 15:25:39 UTC 2025
If you don't want to supply the hostname via the DHCP client, dnsmasq
can handle that too.
dhcp-host=11:22:33:44:55:66,set:vpnroute,10.10.1.20,myhostname
will allow dnsmasq to recognise a client by MAC address, give it the
special default route, give it a static IP address and put that IP
address and the host's name in (dnsmasq's version of) the DNS.
Since, unless you tell it otherwise, dnsmasq suplies its own address as
the DNS server in DHCP replies, all your DHCP clients should then see
myhostname at 10.10.1.20 in the DNS.
Cheers,
Simon.
On 7/4/25 09:55, Neil Darlow via Dnsmasq-discuss wrote:
> Dnsmasq can hand-out static IP addresses based on the client MAC
> address. Also, the DHCP client should be able to supply the hostname to
> dnsmasq's DHCP server.
>
> That should cover your use case.
> --
> Sent from my Android device with K-9 Mail.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
More information about the Dnsmasq-discuss
mailing list