[dnsdist] Fwd: dnsdist cache looks empty

Federico Olivieri lvrfrc87 at gmail.com
Tue Nov 29 10:44:37 UTC 2016


Hi Remi,

Thanks for that! Now it looks better but still, cache looks empty. I have
run the same queries more times hoping to see the "Hits" counter
incremented as well ass the Entries but still all zeros

> showServers()
#   Name                 Address                       State     Qps
 Qlim Ord Wt    Queries   Drops Drate   Lat Outstanding Pools
0   DMZ                  192.168.99.10:53                 up     0.0
0  10  1         70       0   0.0  11.2           0 private
1   GOOGLE               8.8.8.8:53                       up     0.0
0 255  1          0       0   0.0   0.0           0 public
All                                                              0.0
                 70       0
>
>  getPool("private"):getCache():printStats()
Entries: 0/10000
Hits: 0
Misses: 0
Deferred inserts: 0
Deferred lookups: 0
Lookup Collisions: 0
Insert Collisions: 0
TTL Too Shorts: 0
>

2016-11-29 9:59 GMT+00:00 Remi Gacogne <remi.gacogne at powerdns.com>:

> 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="192.168.99.10", name="DMZ", order=10, pool=private})
> > newServer({address="8.8.8.8", 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="192.168.99.10", name="DMZ", order=10, pool={"",
> "private"} })
> newServer({address="8.8.8.8", name="GOOGLE", order=255, pool={"",
> "public"} })
>
>
> --
> Remi Gacogne
> PowerDNS.COM BV - https://www.powerdns.com/
>
>
> _______________________________________________
> dnsdist mailing list
> dnsdist at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/dnsdist
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20161129/2f73386a/attachment.html>


More information about the dnsdist mailing list