<p dir="ltr"><br>
On 1 Jul 2015 13:32, "Albert ARIBAUD" <<a href="mailto:albert.aribaud@free.fr">albert.aribaud@free.fr</a>> wrote:<br>
><br>
> Hi Prashanth,<br>
><br>
> Le Wed, 1 Jul 2015 12:49:45 +0530, "Prashanth P.Nair"<br>
> <<a href="mailto:prashanthppp@gmail.com">prashanthppp@gmail.com</a>> a écrit :<br>
><br>
> > Hi DNSMASQ experts.<br>
> ><br>
> > Am new to DNSMasq.I have configured DNSmasq on a monitoring machine ,which<br>
> > is running fine.<br>
> ><br>
> > But in the logs i observed once query is happened ,it tells that its<br>
> > stored in cache, but after few minutes again query goes to namserver<br>
> > instead of local server.<br>
><br>
> I assume your question is 'why does it not stay in cache?' :)</p>
<p dir="ltr">Yes.that's my question.<br>
><br>
> > here is the logs<br>
> ><br>
> > Jul 1 09:55:48 dnsmasq[45007]: forwardedxx60 <<a href="http://xx60.xx.net/">http://xx60.xx.net/</a>>.<a href="http://xx.net">xx.net</a><br>
> > <<a href="http://xx60.xx.net/">http://xx60.xx.net/</a>> to x.x.0.1<br>
><br>
> (hmm, weird, what does a WEb URL do in a DNS query log? Never mind.)</p>
<p dir="ltr">Its not web url<br>
.looks like email formatting issue.<br>
><br>
> > Jul 1 09:55:48 dnsmasq[45007]: <a href="http://replyxx60.xx.net">replyxx60.xx.net</a> is xx.xx.215.133<br>
> ><br>
> > Jul 1 09:55:48 dnsmasq[45007]: query[A]<a href="http://xx60.xx.net">xx60.xx.net</a> from 127.0.0.1<br>
> > Jul 1 09:55:48 dnsmasq[45007]: <a href="http://cachedxx60.xx.net">cachedxx60.xx.net</a> is xx.xx.215.133<br>
> > Jul 1 09:55:48 dnsmasq[45007]: query[AAAA]<a href="http://xx60.xx.net">xx60.xx.net</a> from 127.0.0.1<br>
> ><br>
> > Jul 1 09:55:48 dnsmasq[45007]: <a href="http://forwardedxx60.xx.net">forwardedxx60.xx.net</a> to x.x.0.1<br>
> > Jul 1 09:55:48 dnsmasq[45007]: <a href="http://replyxx60.xx.net">replyxx60.xx.net</a> is NODATA-IPv6<br>
><br>
> Seems normal to me. First query is for IPv4 resolution, which is<br>
> cached; second query is for IPv6 (judging by the reply), which is<br>
> formwarded since it was not in cache (only IPv4 was).<br>
><br>
> Additionally, check the TTL of the name you're resolving. The cache<br>
> will hold an entry only as long as its TTL has not expired.</p>
<p dir="ltr">So you mean to say that ipv6 is not in cache so its forwarding if yes the fine.</p>
<p dir="ltr">How can I see how long the cache is stored?where can I see this? How can I increase.?</p>
<p dir="ltr">Also where is dnsmasq cache stores? I could see for nscd ,its in var/db/.what about dnsmasq.</p>
<p dir="ltr">><br>
> Amicalement,<br>
> --<br>
> Albert.<br>
</p>