[dnsdist] dnsdist-cache-questions

Tom lists at verreckte-cheib.ch
Tue Sep 22 09:26:51 UTC 2020


Hi
I'm new on dnsdist (1.5.0) and have some questions:

1) I've created a simple cache-configuration (more or less copied from 
the manual) like this:

packetcache = newPacketCache(10000, {maxTTL=86400, minTTL=0, 
temporaryFailureTTL=60, staleTTL=60, dontAge=false})
getPool("bind"):setCache(packetcache)

The backend server is "up" and joined in the pool "bind":
 > showPools()
Name                                    Cache         ServerPolicy Servers
                                                   leastOutstanding
bind                                  6/10000     leastOutstanding 
testserver 192.168.1.10:5353

When I now want to query the cache via console, I always get the 
following error:
 > getPool("bind"):getCache()
Command returned an object we can't print: Trying to cast a lua variable 
from "userdata" to 
"N5boost8optionalINS_7variantISsSt10shared_ptrI15DownstreamStateEP11ClientStateSt13unordered_mapISsdSt4hashISsESt8equal_toISsESaISt4pairIKSsdEEENS_6detail7variant5void_ESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EEEE"


Any hints for this?


My 2nd question:
Assuming the dnsdist-cache is working, has a A-Record-cache-entry for 
"www.example.com" and dnsdist is in front of a resolver and the resolver 
(backend) stops working. dnsdist has the record "www.example.com" still 
in his cache, because only the backend server stops working. Why does 
dnsdist not answer the query for "www.example.com" from the cache, when 
the backend server is "down"? Is there a configuration option for this?

Many thanks.
Kind regards,
Tom



More information about the dnsdist mailing list