[Dnsmasq-discuss] localise-queries not working correctly

Simon Kelley simon at thekelleys.org.uk
Tue Feb 28 20:44:05 GMT 2012


On 28/02/12 20:28, Lorenzo Milesi wrote:
> noone has idea, really? :(
> 
> ----- Original Message -----
>> From: "Lorenzo Milesi" <maxxer at ufficyo.com>
>> To: dnsmasq-discuss at lists.thekelleys.org.uk
>> Sent: Mercoledì, 22 febbraio 2012 10:54:54
>> Subject: localise-queries not working correctly
>>
>> Hi.
>>
>> I've set up my dnsmasq server to use the localise-queries parameter.
>>
>> That is, in /etc/hosts
>>
>> 172.16.12.1     a.domain.com a b b.domain.com
>> 10.11.11.99     a.domain.com a b b.domain.com
>>
>>
>> then I connect to the interface A and get an ip 172.16.12.2.
>> if I try to resolve a:
>>
>> # host a.domain.com
>> a.domain.com has address 10.11.11.99
>> a.domain.com has address 172.16.12.1
>>
>>
>> on dnsmasq logs:
>> dnsmasq[2019]: query[A] a.domain.com from 172.16.12.2
>> dnsmasq[2019]: /etc/hosts a.domain.com is 172.16.12.1
>> dnsmasq[2019]: /etc/hosts a.domain.com is 10.11.11.99
>>
>>
>> Why? shoudln't it return just 172.16.12.1??
>>
>> I'm sure there's nothing else on port 53
>> dnsmasq   2945  0.0  0.1   3284   780 ?        S    10:53   0:00
>> /usr/sbin/dnsmasq -u dnsmasq --localise-queries
>>
>> # lsof -i -P -n |grep :53
>> dnsmasq    2945  dnsmasq    4u  IPv4 610286       UDP *:53
>> dnsmasq    2945  dnsmasq    5u  IPv4 610287       TCP *:53 (LISTEN)
>> dnsmasq    2945  dnsmasq    6u  IPv6 610288       UDP *:53
>> dnsmasq    2945  dnsmasq    7u  IPv6 610289       TCP *:53 (LISTEN)
>>
>>
>> thanks
>> maxxer
> --


The important information is the address that the query was sent _to_,
it's that which is used to do the filtering, not the address it was sent
from. We don't have that information in your post.

Just to be sure, check that the netmasks are right on the two interfaces
on networks 172.16.0.0/16 and 10.0.0.0/8


HTH


Simon.





More information about the Dnsmasq-discuss mailing list