[Dnsmasq-discuss] weird dnsmasq behaviour

Simon Kelley simon at thekelleys.org.uk
Tue Oct 15 10:21:50 BST 2013


I've just pushed code to the git repo which does a better knob of 
caching the answer in this case.

Cheers,

Simon.

On 14/10/13 18:58, Yves Dorfsman wrote:
>
> Simon repllied off the list.
>
> The CNAME was point to an non-existing domain (typo in DNS).
>
> On 2013-10-14 11:32, Yves Dorfsman wrote:
>>
>> I am having a weird problem with dnsmasq. I'm using version 2.65 that
>> comes
>> with Fedora.
>>
>> I have added a CNAME for www to a domain, in DNS.
>> Several hours later:
>>
>> - dig @8.8.8.8 www.example.com gives me the CNAME as expected
>> - dnsmasq, which uses 8.8.8.8 as it's dns server replies nxdomain
>> - when I re-start dnsmasq:
>> - I get the CNAME as expected in reply to my first query
>> - I get NXDOMAIN to all subsequent queries, until I re-start dnsmasq
>> again
>>
>>
>> dig www.example.com
>> Oct 14 11:21:20 via2833 dnsmasq[24679]: query[A] www.example.com from
>> 127.0.0.1
>> Oct 14 11:21:20 via2833 dnsmasq[24679]: cached www.example.com is
>> NXDOMAIN-IPv4
>> empty answer
>>
>>
>> I re-start dnsmasq:
>> Oct 14 11:21:24 via2833 dnsmasq[24679]: read /etc/hosts - 5 addresses
>>
>> dig www.example.com
>> Oct 14 11:21:26 via2833 dnsmasq[24679]: query[A] www.example.com from
>> 127.0.0.1
>> Oct 14 11:21:26 via2833 dnsmasq[24679]: forwarded www.example.com to
>> 8.8.8.8
>> Oct 14 11:21:26 via2833 dnsmasq[24679]: reply www.example.com is
>> NXDOMAIN-IPv4
>> Even though the log says "reply is NXDOMAN", I actually get the right
>> answer
>> here, the CNAME, as expected.
>>
>>
>> I run the same comman again, right away:
>> Oct 14 11:21:28 via2833 dnsmasq[24679]: query[A] www.example.com from
>> 127.0.0.1
>> Oct 14 11:21:28 via2833 dnsmasq[24679]: cached www.example.com is
>> NXDOMAIN-IPv4
>> and I get empty answers again, I am getting them until I re-start
>> dnsmasq.
>>
>> Note that at any point in time "dig @8.8.8.8 www.example.com" gives me
>> the
>> right answer.
>>
>>
>> I really don't understand what is going here...
>>
>>
>
>




More information about the Dnsmasq-discuss mailing list