<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div><br></div><div>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.<br></div><div><br></div><div>Thanks,<br></div><div>- Jake Howard<br></div><div><br></div><div>On Sat, 28 Mar 2020, at 17:59, Simon Kelley wrote:<br></div><blockquote type="cite" id="qt"><div>On 19/03/2020 21:47, Jake Howard wrote:<br></div><div>> Hello!<br></div><div>> <br></div><div>> Is `localise-queries` meant to work against entries added via <br></div><div>> `addn-hosts`? Querying a record returns both IPs, but always in the same <br></div><div>> order. The order is correctly fixed when the records are put in <br></div><div>> `/etc/hosts` directly.<br></div><div><br></div><div><br></div><div>Yes, localise-queries  works with entries added via addn-hosts, but it<br></div><div>doesn't have anything to do with the order that records appear, so that<br></div><div>doesn't address your problem. What are you trying to achieve?<br></div><div><br></div><div><br></div><div>Simon.<br></div><div><br></div><div><br></div><div>> <br></div><div>> Config:<br></div><div>> <br></div><div>> ```<br></div><div>> localise-queries<br></div><div>> no-resolv<br></div><div>> cache-size=10000<br></div><div>> log-queries<br></div><div>> log-facility=/var/log/pihole.log<br></div><div>> local-ttl=2<br></div><div>> log-async<br></div><div>> server=8.8.8.8<br></div><div>> server=8.8.4.4<br></div><div>> server=1.1.1.1<br></div><div>> server=1.0.0.1<br></div><div>> interface=eth0<br></div><div>> server=/use-application-dns.net/<br></div><div>> <br></div><div>> addn-hosts=/etc/vpn-hosts.conf<br></div><div>> localise-queries<br></div><div>> <br></div><div>> ```<br></div><div>> <br></div><div>> This is from pihole, but AFAIK that shouldn't make a difference if I'm <br></div><div>> modifying the config directly.<br></div><div>> <br></div><div>> Would appreciate some input, or being told i'm wrong!<br></div><div>> <br></div><div>> Thanks,<br></div><div>> <br></div><div>> - Jake Howard<br></div><div>> <br></div><div>> <br></div><div>> <br></div><div>> <br></div><div>> _______________________________________________<br></div><div>> Dnsmasq-discuss mailing list<br></div><div>> Dnsmasq-discuss@lists.thekelleys.org.uk<br></div><div>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss<br></div><div>> <br></div><div><br></div><div><br></div><div>_______________________________________________<br></div><div>Dnsmasq-discuss mailing list<br></div><div>Dnsmasq-discuss@lists.thekelleys.org.uk<br></div><div>http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss<br></div><div><br></div></blockquote><div><br></div></body></html>