<div dir="ltr"><div>Hi </div><div><br></div><div>Thanks, I will do further testing and will check back if I still see the issue.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 31, 2020 at 4:06 AM <<a href="mailto:dnsmasq-discuss-request@lists.thekelleys.org.uk">dnsmasq-discuss-request@lists.thekelleys.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send Dnsmasq-discuss mailing list submissions to<br>
        <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:dnsmasq-discuss-request@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss-request@lists.thekelleys.org.uk</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:dnsmasq-discuss-owner@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss-owner@lists.thekelleys.org.uk</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Dnsmasq-discuss digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: : Dns lookup failures if one of the upstream servers are<br>
      down (P Elaborate) (<a href="mailto:wkitty42@gmail.com" target="_blank">wkitty42@gmail.com</a>)<br>
   2. Re: Fwd: dnsmasq localise-queries + addn-hosts (Simon Kelley)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 30 Mar 2020 15:34:06 -0400<br>
From: <a href="mailto:wkitty42@gmail.com" target="_blank">wkitty42@gmail.com</a><br>
To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
Subject: Re: [Dnsmasq-discuss] : Dns lookup failures if one of the<br>
        upstream servers are down (P Elaborate)<br>
Message-ID: <<a href="mailto:d04ba494-ecbb-9da2-e763-537cb0524631@gmail.com" target="_blank">d04ba494-ecbb-9da2-e763-537cb0524631@gmail.com</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
<br>
<br>
please quote relevant text and respond inline...<br>
<br>
please also trim irrelevant text... especially when replying to digests ;)<br>
<br>
<br>
-- <br>
  NOTE: No off-list assistance is given without prior approval.<br>
        *Please keep mailing list traffic on the list unless*<br>
        *a signed and pre-paid contract is in effect with us.*<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 30 Mar 2020 20:42:25 +0100<br>
From: Simon Kelley <<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a>><br>
To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
Subject: Re: [Dnsmasq-discuss] Fwd: dnsmasq localise-queries +<br>
        addn-hosts<br>
Message-ID: <<a href="mailto:84b5c3db-55c4-4d06-a8da-a2774de1c699@thekelleys.org.uk" target="_blank">84b5c3db-55c4-4d06-a8da-a2774de1c699@thekelleys.org.uk</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
On 28/03/2020 20:38, Jake Howard wrote:<br>
> Hi,<br>
> <br>
> My intention is to have 1 dnsmasq instance, accessible over 2 interfaces<br>
> (listening on all), and have the response to a query differ based on the<br>
> interface, and therefore its incoming IP. From what i've read, that's<br>
> exactly what localise-queries is meant to do, but it doesn't appear to<br>
> be unless I put the entries into /etc/hosts directly.<br>
<br>
<br>
OK, what you're expecting to happen and what I'm expecting to happen are<br>
the same. That's good.<br>
<br>
I just did a quick test, and it seems to work fine for me. The<br>
<a href="http://example.com" rel="noreferrer" target="_blank">example.com</a> addresses are in /tmp/hosts.<br>
<br>
<br>
srk@holly:~/dnsmasq/dnsmasq$ src/dnsmasq -d --log-queries<br>
--localise-queries -p 10000 --addn-hosts=/tmp/hosts<br>
dnsmasq: started, version 2.81rc4-5-gd162bee cachesize 150<br>
dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n<br>
no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth no-DNSSEC<br>
loop-detect inotify dumpfile<br>
dnsmasq: reading /etc/resolv.conf<br>
dnsmasq: using nameserver 127.0.1.1#53<br>
dnsmasq: read /etc/hosts - 9 addresses<br>
dnsmasq: read /tmp/hosts - 2 addresses<br>
dnsmasq: query[A] <a href="http://example.com" rel="noreferrer" target="_blank">example.com</a> from 127.0.0.1<br>
dnsmasq: /tmp/hosts <a href="http://example.com" rel="noreferrer" target="_blank">example.com</a> is 192.168.151.43<br>
dnsmasq: /tmp/hosts <a href="http://example.com" rel="noreferrer" target="_blank">example.com</a> is 192.168.150.43<br>
dnsmasq: query[A] <a href="http://example.com" rel="noreferrer" target="_blank">example.com</a> from 192.168.150.49<br>
dnsmasq: /tmp/hosts <a href="http://example.com" rel="noreferrer" target="_blank">example.com</a> is 192.168.150.43<br>
<br>
<br>
If it's not working for you, that's a bug, but we need to find what it<br>
is about your setup that tickles the bug.<br>
<br>
Can you boil it down to the simplest configuration that displays the<br>
problem, and also specify which version of dnsmasq you're using?<br>
<br>
<br>
cheers,<br>
<br>
Simon.<br>
<br>
<br>
> <br>
> Thanks,<br>
> - Jake Howard<br>
> <br>
> On Sat, 28 Mar 2020, at 17:59, Simon Kelley wrote:<br>
>> On 19/03/2020 21:47, Jake Howard wrote:<br>
>> > Hello!<br>
>> >?<br>
>> > Is `localise-queries` meant to work against entries added via?<br>
>> > `addn-hosts`? Querying a record returns both IPs, but always in the<br>
>> same?<br>
>> > order. The order is correctly fixed when the records are put in?<br>
>> > `/etc/hosts` directly.<br>
>><br>
>><br>
>> Yes, localise-queries? works with entries added via addn-hosts, but it<br>
>> doesn't have anything to do with the order that records appear, so that<br>
>> doesn't address your problem. What are you trying to achieve?<br>
>><br>
>><br>
>> Simon.<br>
>><br>
>><br>
>> >?<br>
>> > Config:<br>
>> >?<br>
>> > ```<br>
>> > localise-queries<br>
>> > no-resolv<br>
>> > cache-size=10000<br>
>> > log-queries<br>
>> > log-facility=/var/log/pihole.log<br>
>> > local-ttl=2<br>
>> > log-async<br>
>> > server=8.8.8.8<br>
>> > server=8.8.4.4<br>
>> > server=1.1.1.1<br>
>> > server=1.0.0.1<br>
>> > interface=eth0<br>
>> > server=/<a href="http://use-application-dns.net/" rel="noreferrer" target="_blank">use-application-dns.net/</a><br>
>> >?<br>
>> > addn-hosts=/etc/vpn-hosts.conf<br>
>> > localise-queries<br>
>> >?<br>
>> > ```<br>
>> >?<br>
>> > This is from pihole, but AFAIK that shouldn't make a difference if I'm?<br>
>> > modifying the config directly.<br>
>> >?<br>
>> > Would appreciate some input, or being told i'm wrong!<br>
>> >?<br>
>> > Thanks,<br>
>> >?<br>
>> > - Jake Howard<br>
>> >?<br>
>> >?<br>
>> >?<br>
>> >?<br>
>> > _______________________________________________<br>
>> > Dnsmasq-discuss mailing list<br>
>> > <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
>> > <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
>> >?<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Dnsmasq-discuss mailing list<br>
>> <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
>> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
>><br>
> <br>
> <br>
> _______________________________________________<br>
> Dnsmasq-discuss mailing list<br>
> <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
> <br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Dnsmasq-discuss Digest, Vol 178, Issue 35<br>
************************************************<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">abhishek </div></div>