[Dnsmasq-discuss] my config

Wink Saville wink at saville.com
Mon Sep 25 23:53:19 UTC 2023


On Mon, Sep 25, 2023 at 12:33 PM Geert Stappers <stappers at stappers.nl> wrote:
>
>
>
> Previous-Subject: Re: [Dnsmasq-discuss] wip: Add tag: usage in dhcp-option
> In-Reply-To: <CAKk8isqv5U60LW1Gc5YcJughZuOexfYi6VmB372u8-pFDVcmWA at mail.gmail.com>
>
> On Fri, Sep 22, 2023 at 05:27:28PM -0700, Wink Saville wrote:
> > On Fri, Sep 22, 2023 at 1:06 PM Geert Stappers wrote:
> > > On Thu, Sep 21, 2023 at 11:00:59PM -0700, Wink Saville wrote:
> > > >
> > > > Sorry, I have not seen multiple dhcp-options with the same tag documented
> > > > anywhere, can you provide some guidance on where it is?
> > >
> > > Sorry, not in the manual page but in configuration example:
> > > https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=blob;f=dnsmasq.conf.example#l389
> > >
> >
> > Also, I wonder if maybe there should be multiple dnsmasq.conf
> > examples. Having one huge example seems overwhelming to the reader
> > and also difficult for the maintainers.  Breaking the single large
> > example into a set of simpler and more targeted examples might be
> > better, thoughts?
>
> So true. Simon did also express that idea.
>
> This my config
>
>
> alpaca:/etc
> # grep -v ^\# /etc/dnsmasq.conf | grep -v ^$
> no-resolv
> server=127.0.0.1#35353
> domain=gpm.stappers.nl
> dhcp-range=172.24.0.40,172.24.0.47,15m
> dhcp-option=option:router,172.24.0.1
> dhcp-option=6,172.24.0.10
> dhcp-option=option:ntp-server,172.24.0.9
> dhcp-option=option:domain-search,gpm.stappers.nl,stappers.nl
> enable-tftp
> srv-host=_http._tcp.deb.debian.org,juli.gpm.stappers.nl,3142
> log-queries
> log-dhcp
> conf-dir=/etc/dnsmasq.d/,*.conf
> alpaca:/etc
> #
>
>
> Do note that I have no need for "tag".
>
>
>
> Groeten
> Geert Stappers
> --

I agree they aren't used often, but they are a feature in the code that I'm
using a certain way and I've provided some documentation for that use case.

But, maybe my use case is improper and shouldn't be documented. If
that is the case then I suggest the code should be changed to detect
"multiple dhcp-options with the same tag" as an error. I'll volunteer to
try to do that, if that is the consensus.

-- Wink



More information about the Dnsmasq-discuss mailing list