[Dnsmasq-discuss] dnsmasq forwarding all queries to name server
albert.aribaud at free.fr
Wed Jul 1 09:02:56 BST 2015
Le Wed, 1 Jul 2015 12:49:45 +0530, "Prashanth P.Nair"
<prashanthppp at gmail.com> a écrit :
> Hi DNSMASQ experts.
> Am new to DNSMasq.I have configured DNSmasq on a monitoring machine ,which
> is running fine.
> But in the logs i observed once query is happened ,it tells that its
> stored in cache, but after few minutes again query goes to namserver
> instead of local server.
I assume your question is 'why does it not stay in cache?' :)
> here is the logs
> Jul 1 09:55:48 dnsmasq: forwardedxx60 <http://xx60.xx.net/>.xx.net
> <http://xx60.xx.net/> to x.x.0.1
(hmm, weird, what does a WEb URL do in a DNS query log? Never mind.)
> Jul 1 09:55:48 dnsmasq: replyxx60.xx.net is xx.xx.215.133
> Jul 1 09:55:48 dnsmasq: query[A]xx60.xx.net from 127.0.0.1
> Jul 1 09:55:48 dnsmasq: cachedxx60.xx.net is xx.xx.215.133
> Jul 1 09:55:48 dnsmasq: query[AAAA]xx60.xx.net from 127.0.0.1
> Jul 1 09:55:48 dnsmasq: forwardedxx60.xx.net to x.x.0.1
> Jul 1 09:55:48 dnsmasq: replyxx60.xx.net is NODATA-IPv6
Seems normal to me. First query is for IPv4 resolution, which is
cached; second query is for IPv6 (judging by the reply), which is
formwarded since it was not in cache (only IPv4 was).
Additionally, check the TTL of the name you're resolving. The cache
will hold an entry only as long as its TTL has not expired.
More information about the Dnsmasq-discuss