Hi all,

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:

dnsmasq -k --all-servers --cache-size=10000 --log-facility=-
--server=/cluster.local/ --server=/in-addr.arpa/ --server=/in6.arpa/ --dns-forward-max=2048
--log-queries --no-negcache

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 ( and that it would cache the response for the
duration of the TTL that the nameserver specifies.

The behavior I'm obsering is that when requests are made for a
cluster.local domain, they are always forwarded to the

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.

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?

Thanks very much,
Dnsmasq-discuss mailing list

Reply via email to