[Pdns-users] Lua errors finding global objects in recent version

Remi Gacogne remi.gacogne at powerdns.com
Mon Apr 16 07:45:07 UTC 2018


Hi,

On 04/16/2018 01:41 AM, MRob wrote:
> 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?

You are using lua-config-file instead of lua-dns-script to load your file.

Best regards,
-- 
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20180416/5c1fcea7/attachment.sig>


More information about the Pdns-users mailing list