[Dnsmasq-discuss] Setting multiple tags

Dominik dl6er at dl6er.de
Tue Aug 4 16:42:10 BST 2020


Hey Andrei,

On 04.08.20 16:41, kvaps wrote:
> 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)
>
> 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
>
> Is it a bug or expected behavior?

Could you elaborate what you mean by "option ignored"? How do you
observe a misbehavior or option ignoring?

I do NOT observe any odd behavior when testing with the following line
(taken from you, extended even further):

dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,set:mee,set:more1,set:more2,set:more3,set:more4,set:more5,172.16.0.10,hostnamy,infinite

The hostname "hostnamy" is correctly applied as well as all tags are
apparently set just as expected. I don't see any reason for a factor 6
in here.
Maybe check if your editor/terminal causes an issue with a too long
string to eliminate the issue is outside dnsmasq.

Best,
Dominik





More information about the Dnsmasq-discuss mailing list