[dnsdist] Fwd: dnsdist cache looks empty

Remi Gacogne remi.gacogne at powerdns.com
Tue Nov 29 09:59:35 UTC 2016

On 11/29/2016 10:48 AM, Federico Olivieri wrote:
> This is the config I am running . I assigned a server a pool name
> "private" and use that name for the cache policy. What I am doing wrong?
> root at UKLNDLABPI:~# cat /etc/dnsdist/dnsdist.conf 
> newServer({address="", name="DMZ", order=10, pool=private})
> newServer({address="", name="GOOGLE", order=255, pool=public})

You probably want to use quotes around private and public, otherwise
they are interpreted as variables, and as they are not defined they
equal to nil.

However please understand that if you place DMZ in the "private" pool
and GOOGLE in the "public" pool, you won't have any server in the
default pool, which receives all queries that have not been explicitly
routed to another pool with addPoolRule(), PoolAction(),
QPSPoolAction(), setDNSSECPool()..
Therefore you might want to leave your servers in the default pool and
also add them to another one by doing something like this:

newServer({address="", name="DMZ", order=10, pool={"",
"private"} })
newServer({address="", name="GOOGLE", order=255, pool={"",
"public"} })

Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20161129/90eb58f4/attachment.sig>

More information about the dnsdist mailing list