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/
_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users