[Dnsmasq-discuss] dnsmasq forwarding all queries to name server

Prashanth P.Nair prashanthppp at gmail.com
Wed Jul 1 09:11:56 BST 2015


On 1 Jul 2015 13:32, "Albert ARIBAUD" <albert.aribaud at free.fr> wrote:
>
> Hi Prashanth,
>
> 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?' :)

Yes.that's my question.
>
> > here is the logs
> >
> > Jul  1 09:55:48 dnsmasq[45007]: 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.)

Its not web url
.looks like email formatting issue.
>
> > Jul  1 09:55:48 dnsmasq[45007]: replyxx60.xx.net is xx.xx.215.133
> >
> > Jul  1 09:55:48 dnsmasq[45007]: query[A]xx60.xx.net from 127.0.0.1
> > Jul  1 09:55:48 dnsmasq[45007]: cachedxx60.xx.net is xx.xx.215.133
> > Jul  1 09:55:48 dnsmasq[45007]: query[AAAA]xx60.xx.net from 127.0.0.1
> >
> > Jul  1 09:55:48 dnsmasq[45007]: forwardedxx60.xx.net to x.x.0.1
> > Jul  1 09:55:48 dnsmasq[45007]: 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.

So you mean to say that ipv6 is not in cache so its forwarding if yes the
fine.

How can I see how long the cache is stored?where can I see this? How can I
increase.?

Also where is dnsmasq cache stores? I could see for nscd ,its in
var/db/.what about dnsmasq.

>
> Amicalement,
> --
> Albert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150701/27154adc/attachment.html>


More information about the Dnsmasq-discuss mailing list