[Dnsmasq-discuss] First question(s)

Geert Stappers stappers at stappers.nl
Sat Mar 13 05:38:10 UTC 2021


On Fri, Mar 12, 2021 at 09:10:03PM +0000, Simon Kelley wrote:
> On 12/03/2021 15:47, Ken Gillett wrote:
> >
> > 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
> 

Yes,
if the DHCP client does sent its hostname.



Groeten
Geert Stappers

P.S.
It is completely fine to follow-up with a "got it working"
and/or further questions.
-- 
Silence is hard to parse



More information about the Dnsmasq-discuss mailing list