<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-07-01 9:19 GMT+02:00 Prashanth P.Nair <span dir="ltr"><<a href="mailto:prashanthppp@gmail.com" target="_blank">prashanthppp@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"><br>
Hi DNSMASQ experts.<br></p>
<p dir="ltr">Am new to DNSMasq.I have configured DNSmasq on a monitoring machine ,which is running fine.</p>
<p dir="ltr">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.</p>
<p dir="ltr"> </p>
<p dir="ltr">here is the logs<br></p>
<p dir="ltr">Jul  1 09:55:48 dnsmasq[45007]: forwarded<a href="http://xx60.xx.net/" target="_blank">xx60</a><a href="http://xx60.xx.net/" target="_blank">.xx.net</a> to x.x.0.1<br>
Jul  1 09:55:48 dnsmasq[45007]: reply<a href="http://xx60.xx.net/" target="_blank">xx60.xx.net</a> is xx.xx.215.133</p>
<p dir="ltr"> </p>
<p dir="ltr">Jul  1 09:55:48 dnsmasq[45007]: query[A]<a href="http://xx60.xx.net/" target="_blank">xx60.xx.net</a> from 127.0.0.1<br>
Jul  1 09:55:48 dnsmasq[45007]: cached<a href="http://xx60.xx.net/" target="_blank">xx60.xx.net</a> is xx.xx.215.133<br>
Jul  1 09:55:48 dnsmasq[45007]: query[AAAA]<a href="http://xx60.xx.net/" target="_blank">xx60.xx.net</a> from 127.0.0.1</p>
<p dir="ltr"> </p>
<p dir="ltr">Jul  1 09:55:48 dnsmasq[45007]: forwarded<a href="http://xx60.xx.net/" target="_blank">xx60.xx.net</a> to x.x.0.1<br>
Jul  1 09:55:48 dnsmasq[45007]: reply<a href="http://xx60.xx.net/" target="_blank">xx60.xx.net</a> is NODATA-IPv6<br><br></p>
<p dir="ltr">Here is the dnsMasq config :<br></p>
<p dir="ltr">all-servers<br>
cache-size=5000<br>
dns-forward-max=5000<br>
listen-address=127.0.0.1<br>
log-async<br>
log-facility=/var/log/dnsmasq.log<br>
log-queries<br>
strict-order</p>
<p dir="ltr"> <br>
resolve.conf</p>
<p dir="ltr">nameserver 127.0.0.1<br>
nameserver x.x.0.1<br>
nameserver x.x.0.2<br>
nameserver x.x.0.3</p></blockquote><div>I am not an expert but a quick guess: what is the TTL of those records? Maybe 1 minute?</div><div>another guess: how many queries are caching? maybe limit 5000 isn't enough and records get rotated?</div><div><br></div><div>Michal </div></div></div></div>