[Dnsmasq-discuss] weird dnsmasq behaviour

Simon Kelley simon at thekelleys.org.uk
Mon Oct 14 18:38:03 BST 2013


Could you share with me (off-list) the actual domain that showing this 
behaviour, so I can try and reproduce it?

Cheers,

Simon.



  On 14/10/13 18: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