[Pdns-users] Lua errors finding global objects in recent version
I have strange errors in LUA script like this: Unable to load Lua script from '/etc/pdns-recursor/luaScript.lua': STL Exception: [string "chunk"]:2: attempt to call global 'pdnslog' (a nil value) Unable to load Lua script from '/etc/pdns-recursor/luaScript.lua': STL Exception: [string "chunk"]:6: attempt to call global 'newNMG' (a nil value) Strange because I get pdns-recursor from pdns repo. Version 4.1.2 so why is this errors? Thank you. ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com https://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] Lua control of config settings?
On 2018-04-15 21:08, MRob wrote: I read about how recursor can be used to block queries for tracking domains: https://blog.powerdns.com/2016/01/19/efficient-optional-filtering-of-domains-in-recursor-4-0-0/ But I also read it chokes recursor if the list is many thousands domains: https://git.mauras.ch/Various/powerdns_recursor_ads_blocking So using forward-zones-file is a good solution but I want to use the optional solution provided in the PDNS Blog where some client IP address are filtered some are not. Can I turn "forward-zones-file" on/off in Lua preresolve function? Maybe another option to use "etc-hosts-file" but same questions can it be turn on/off and does it handle say 500.000 domains? Also I found response policy zones, maybe this is a best solution. Does RPZ stand up to example 500.000 domains in a local RPZ file? ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com https://mailman.powerdns.com/mailman/listinfo/pdns-users
[Pdns-users] Lua control of config settings?
I read about how recursor can be used to block queries for tracking domains: https://blog.powerdns.com/2016/01/19/efficient-optional-filtering-of-domains-in-recursor-4-0-0/ But I also read it chokes recursor if the list is many thousands domains: https://git.mauras.ch/Various/powerdns_recursor_ads_blocking So using forward-zones-file is a good solution but I want to use the optional solution provided in the PDNS Blog where some client IP address are filtered some are not. Can I turn "forward-zones-file" on/off in Lua preresolve function? ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com https://mailman.powerdns.com/mailman/listinfo/pdns-users