[Dnsmasq-discuss] Setting multiple tags, syntax & limit

Geert Stappers stappers at stappers.nl
Tue Aug 4 16:08:54 BST 2020


On Tue, Aug 04, 2020 at 04:41:45PM +0200, kvaps wrote:
> On Tue, Aug 4, 2020 at 4:09 PM kvaps <kvapss at gmail.com> wrote:
> > On Tue, Aug 4, 2020 at 1:36 PM Geert Stappers <stappers at stappers.nl> wrote:
> > > Please try
> > > }     --dhcp-host="02:00:ac:10:00:0a,id:*,set:foo:bar:baz,172.16.0.10,node1,infinite
> > > and report back.
> > >
> >
> > No, this format is not working, I also found:
> >
> > | The set:<tag> construct sets the tag whenever this --dhcp-host
> > | directive is in use. This can be used to selectively send DHCP
> > | options just for this host. More than one tag can be set in a
> > | --dhcp-host directive (but not in other places where "set:<tag>"
> > | is allowed).
> >
> > Unfortunately this is not working for me :-/
> >
> 
> Ok I found out that only 5 options are allowed before hostname
> specified (no more), it can be any option: hwaddr, id:client_id,
> set:tag or ipaddr but only the total amount of options should not
> exceed 5 (or 6 if hostname non-specified)
> 
> examples:
> 
> 5 options
> ---------
> no hostname (works):
>     --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,172.16.0.10,infinite
> 
> with hostname (works):
>     --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,172.16.0.10,node1,infinite
> 
> 
> 6 options
> ---------
> no hostname (works)
>     --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,172.16.0.10,infinite
> 
> with hostname (error: bad DHCP host name)
>     --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,172.16.0.10,node1,infinite
> 
> 7 options
> ---------
> no hostname (option ignored)
>     --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,set:mee,172.16.0.10,infinite
> 
> with hostname (option ignored)
>     --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,set:mee,172.16.0.10,node1,infinite
> 

Thanks for the feedback.



Regards
Geert Stappers
CC to myself as reminder on patch of manual page
-- 
Silence is hard to parse



More information about the Dnsmasq-discuss mailing list