[Dnsmasq-discuss] filter-AAAA is breaking dnsmasq

Mufasa dgutierr at pride-rock.com
Mon Oct 11 05:09:40 UTC 2021

> On Oct 10, 2021, at 10:00 PM, E <encoding at riseup.net> wrote:
> Already posted:
> https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q4/015810.html
> And the make install command copy it to above path. What other thing do
> you need to debug this thing??

The posted console output linked identifies the following things:

The dnsmasq in your path is in /usr/local/sbin/dnsmasq.

That binary is compiled with a git revision with filter support.

Calling dnsmasq from the path with no command line parameters loads the config located at /etc/dnsmasq.conf rather than /usr/local/etc/dnsmasq.conf

Starting dnsmasq from the service command results with an error message about a different line number for the exact same config file, likely because the service script is running a different binary (the one from the package that installed the service script).  The service script may break (to prove its running the wrong binary) if you sudo mv /usr/sbin/dnsmasq /usr/sbin/dnsmasq-package

Relying on the path may be causing some confusion, as well as using configuration files from different versions of dnsmasq.

To show what’s on line 12:

sed '12!d' /etc/dnsmasq.conf

To show what’s on line 24:
sed ‘24!d' /etc/dnsmasq.conf

Hoping this helps the conversation become more productive.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20211010/21d6f06f/attachment-0001.htm>

More information about the Dnsmasq-discuss mailing list