[Dnsmasq-discuss] First question(s)

Simon Kelley simon at thekelleys.org.uk
Fri Mar 12 21:10:03 UTC 2021


On 12/03/2021 15:47, Ken Gillett via Dnsmasq-discuss wrote:
> Only just discovered dnsmasq and planning to use it on my LAN, but have a couple of initial questions I hope can be answered here:-
> 
> I want to allocate all IP addresses from specified range, but provide DNS names for some hosts identified by hardware/MAC address. I cannot see how to set this up.
> 
> I can set up the range of DHCP addresses and I can set up a list of ’static’ addresses for certain specified (by MAC) hosts, but as far as I can see the latter has to also specify the IP address which I don’t want to do. I really want all addresses to be allocated from the DHCP range, but some of those to be linked to a DNS name. I want to avoid having to specify individual IP addresses for those that I want to name.
> 
> Seems simple but cannot figure how to set that up so would appreciate any pointers as to how I can do that.
> 
>

Just specify the MAC address and the hostname and no IP address and it
will do exactly what you want.

dhcp-host=11:22:33:44:55:66,myhost


Simon.



More information about the Dnsmasq-discuss mailing list