[Pdns-users] about pdns_recursor's qps questinons.

Peter van Dijk peter.van.dijk at powerdns.com
Sat Mar 4 22:52:10 UTC 2017


Hello,

On 2 Mar 2017, at 4:51, 韩凯 wrote:

>    I used "vector<std::string>" to storage those variables . and  
> using it in pdns_recursor.cc:doprocessUDPQuestion() .
>    Master , could you give me some suggestions?

If you patched your filtering into pdns_recursor.cc, then implementing 
reload is also up to you. I’d recommend doing your filtering in Lua 
instead - documentation at 
https://doc.powerdns.com/md/recursor/scripting/ , example at 
https://github.com/PowerDNS/pdns/blob/master/pdns/powerdns-example-script.lua

Also note that your patch will not filter TCP queries, if you just 
changed doprocessUDPQuestion.

Kind regards,
-- 
Peter van Dijk
PowerDNS.COM BV - https://www.powerdns.com/


More information about the Pdns-users mailing list