<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word">Hello,<div><br></div><div>I’m trying to direct queries based on the response from the “default” server. Basically what I’m trying to accomplish is if this server doesn’t know about this domain, try a second one. By default that would be checking for dnsdist.REFUSED since it would be trying to recurse, and the NSs are configured not to recurse. I have one default server with leastOutstanding, and one server in a pool which would be used as the second one.</div><div><br></div><div>I assumed something simple as:</div><div>addAction(RCodeRule(dnsdist.REFUSED), PoolAction("ph”))</div><div><br></div><div>and it didn’t complain:</div><div><div>> showRules()</div><div># Matches Rule Action</div><div>0 0 rcode==Query Refused to pool ph</div><div>></div></div><div><br></div><div>would redirect the query to pool “ph”, but all I see is queries are executed on the main NS (counter keeps increasing), and I get a REFUSED back which would also mean it never contacted server in pool “ph” since it knows about the domain.</div><div><br></div><div>Am I asking too much from dnsdist, or have wrong expectations with addAction?</div><div><br></div><div>Thanks!</div><div>Nemanja</div></body></html>