<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 10, 2021, at 10:00 PM, E <<a href="mailto:encoding@riseup.net" class="">encoding@riseup.net</a>> wrote:</div><div class=""><div class=""><br class="">Already posted:<br class=""><a href="https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q4/015810.html" class="">https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q4/015810.html</a><br class=""><br class="">And the make install command copy it to above path. What other thing do<br class="">you need to debug this thing??<br class=""></div></div></blockquote></div><br class=""><div class="">The posted console output linked identifies the following things:</div><div class=""><br class=""></div><div class="">The <font face="Courier New" class="">dnsmasq</font> in your path is in <font face="Courier New" class="">/usr/local/sbin/dnsmasq</font>.</div><div class=""><br class=""></div><div class="">That binary is compiled with a git revision with filter support.</div><div class=""><br class=""></div><div class="">Calling <font face="Courier New" class="">dnsmasq</font> from the path with no command line parameters loads the config located at <font face="Courier New" class="">/etc/dnsmasq.conf</font> rather than <font face="Courier New" class="">/usr/local/etc/dnsmasq.conf</font></div><div class=""><br class=""></div><div class="">Starting <font face="Courier New" class="">dnsmasq</font> from the <font face="Courier New" class="">service</font> command results with an error message about a <b class="">different line number for the exact same config file</b>, 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 <font face="Courier New" class="">sudo mv /usr/sbin/dnsmasq /usr/sbin/dnsmasq-package</font></div><div class=""><br class=""></div><div class="">Relying on the path may be causing some confusion, as well as using configuration files from different versions of dnsmasq.</div><div class=""><br class=""></div><div class="">To show what’s on line 12:</div><div class=""><br class=""></div><div class="">sed '12!d' /etc/dnsmasq.conf</div><div class=""><br class=""></div><div class="">To show what’s on line 24:</div><div class="">sed ‘24!d' /etc/dnsmasq.conf</div><div class=""><br class=""></div><div class="">Hoping this helps the conversation become more productive.</div><div class=""><br class=""></div><div class="">-Daniel</div></body></html>