[Dnsmasq-discuss] Setting multiple tags
kvaps
kvapss at gmail.com
Tue Aug 4 17:46:39 BST 2020
Hi Dominik,
You can try my docker image for the purity of the experiment:
# Working (lease issued)
docker run --net=host -ti --rm --entrypoint=dnsmasq
docker.io/kvaps/dnsmasq-controller:v0.5.1 --no-daemon --no-hosts
--port=0 --dhcp-broadcast --dhcp-authoritative
--dhcp-range=172.16.0.1,static,infinite
--dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,172.16.0.17,hostnamy,infinite
# Error (bad command line options: bad DHCP host name)
docker run --net=host -ti --rm --entrypoint=dnsmasq
docker.io/kvaps/dnsmasq-controller:v0.5.1 --no-daemon --no-hosts
--port=0 --dhcp-broadcast --dhcp-authoritative
--dhcp-range=172.16.0.1,static,infinite
--dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,172.16.0.17,hostnamy,infinite
# No lease: (dnsmasq reports: no address available)
docker run --net=host -ti --rm --entrypoint=dnsmasq
docker.io/kvaps/dnsmasq-controller:v0.5.1 --no-daemon --no-hosts
--port=0 --dhcp-broadcast --dhcp-authoritative
--dhcp-range=172.16.0.1,static,infinite
--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.17,hostnamy,infinite
I use standard dnsmasq 2.80 from the alpine repository, Dockerfile source:
https://github.com/kvaps/dnsmasq-controller/blob/v0.5.1/Dockerfile#L21-L22
Best Regards,
Andrei Kvapil
On Tue, Aug 4, 2020 at 6:12 PM Dominik <dl6er at dl6er.de> wrote:
>
> 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
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
More information about the Dnsmasq-discuss
mailing list