Hi, My intention is to have 1 dnsmasq instance, accessible over 2 interfaces (listening on all), and have the response to a query differ based on the interface, and therefore its incoming IP. From what i've read, that's exactly what localise-queries is meant to do, but it doesn't appear to be unless I put the entries into /etc/hosts directly.
Thanks, - Jake Howard On Sat, 28 Mar 2020, at 17:59, Simon Kelley wrote: > On 19/03/2020 21:47, Jake Howard wrote: > > Hello! > > > > Is `localise-queries` meant to work against entries added via > > `addn-hosts`? Querying a record returns both IPs, but always in the same > > order. The order is correctly fixed when the records are put in > > `/etc/hosts` directly. > > > Yes, localise-queries works with entries added via addn-hosts, but it > doesn't have anything to do with the order that records appear, so that > doesn't address your problem. What are you trying to achieve? > > > Simon. > > > > > > Config: > > > > ``` > > localise-queries > > no-resolv > > cache-size=10000 > > log-queries > > log-facility=/var/log/pihole.log > > local-ttl=2 > > log-async > > server=8.8.8.8 > > server=8.8.4.4 > > server=1.1.1.1 > > server=1.0.0.1 > > interface=eth0 > > server=/use-application-dns.net/ > > > > addn-hosts=/etc/vpn-hosts.conf > > localise-queries > > > > ``` > > > > This is from pihole, but AFAIK that shouldn't make a difference if I'm > > modifying the config directly. > > > > Would appreciate some input, or being told i'm wrong! > > > > Thanks, > > > > - Jake Howard > > > > > > > > > > _______________________________________________ > > Dnsmasq-discuss mailing list > > Dnsmasq-discuss@lists.thekelleys.org.uk > > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > > > > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >
_______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss