[dnsdist] Fwd: dnsdist cache looks empty
Federico Olivieri
lvrfrc87 at gmail.com
Tue Nov 29 09:48:48 UTC 2016
Hi Remi,
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})
setServerPolicy(leastOutstanding)
addDelay(MaxQPSIPRule(30, 32, 128), 100)
addAction(MaxQPSIPRule(50), DropAction())
setServerPolicy(firstAvailable)
addAnyTCRule()
pc = newPacketCache(10000, 86400, 0, 60, 60)
getPool("private"):setCache(pc)
webserver("192.168.1.3:8083", "supersecret")
setACL("192.168.0.0/16")
addACL("127.0.0.1")
2016-11-29 8:40 GMT+00:00 Remi Gacogne <remi.gacogne at powerdns.com>:
> Hi,
>
> On 11/28/2016 10:19 PM, Federico Olivieri wrote:
> >> showRules()
> > # Matches Rule Action
> > 0 0 IP (/32, /128) match for QPS over 30 delay
> > by 100 msec
> > 1 0 IP (/32, /64) match for QPS over 50 drop
> > 2 0 (qtype==ANY) && (UDP) tc=1
> answer
>
> Hmm, you have no rules routing traffic to the "private" pool, so it
> won't get any query.
>
> >> showPools()
> > Name Cache Servers
> > DMZ 192.168.99.10:53
> > <http://192.168.99.10:53>, GOOGLE 8.8.8.8:53 <http://8.8.8.8:53>
> > private 0/10000
>
> You also have no server in the "private" pool, so you need to fix that
> before routing queries to that pool, otherwise they will get dropped.
>
> --
> 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/6456f40c/attachment-0001.html>
More information about the dnsdist
mailing list