<div dir="ltr"><div>Hi all,</div><div><br></div><div>I want to ask whether queries for A records matching a --server argument are expected to be cached. I'm running an instance of dnsmasq with the following arguments:</div><div><br></div><div>dnsmasq -k --all-servers --cache-size=10000 --log-facility=- --server=/cluster.local/<a href="http://127.0.0.1#10053">127.0.0.1#10053</a> --server=/in-addr.arpa/<a href="http://127.0.0.1#10053">127.0.0.1#10053</a> --server=/in6.arpa/<a href="http://127.0.0.1#10053">127.0.0.1#10053</a> --dns-forward-max=2048 --log-queries --no-negcache</div><div><br></div><div>I would expect when it receives a query for a domain name matching .cluster.local, that dnsmasq would forward the request to the specified nameserver (127.0.0.1#10053) and that it would cache the response for the duration of the TTL that the 127.0.0.1#10053 nameserver specifies. </div><div><br></div><div>The behavior I'm obsering is that when requests are made for a cluster.local domain, they are always forwarded to the 127.0.0.1#10053 nameserver. </div><div><br></div><div>Cache insertion metrics lead me to believe that response records are being inserted into the cache, however, subsequent requests for the same cluster.local address aren't actually served from the cache.</div><div><br></div><div>So my question is, am I misunderstanding the behavior of the --server arugment as it relates to populating the cache? Or is it possible that dnsmasq is forwarding the query prior to checking whether the requested value already exists in the cache?</div><div><br></div><div>Thanks very much,</div><div>-Michael</div></div>