[Pdns-users] Some more exampels or informations about LUA?
akunz at wishmedia.de
Sun Mar 31 12:17:19 UTC 2013
sorry again. But i have still two questions which are not clear to me.
First of all, what are the difference between --enable-lua and the
module / backend lua setting. Is it right to set both options during
I try to use redis.lua in my pdns.lua file. But i get this error. I
think its not really pdns related - do i miss some path informations
Google says somthing about LDPATH, but i am not sure where to set this
path, because lua looks at the right path, but search this undefined symbol.
TCP server is unable to launch backends - will try again when questions
[LUABackend 1] Error running the file '/usr/local/etc/pdns/pdns.lua' :
error loading module 'socket.core'
from file '/usr/local/lib/lua/5.1/socket/core.so':
#012#011/usr/local/lib/lua/5.1/socket/core.so: undefined symbol:
Thanks for any hints.
Am 29.03.2013 18:24, schrieb Alexander Kunz:
> Hello fredrik,
> thanks for your answer. Im not sure why, but my mail goes out of the
> mailinglist. But i think my answer is not really interesting for
> everyone. Thanks for yor link, i missed the surce because the "with-lua"
> switch, i looked not into the modules, i thought it is a core feature.
> The new Lua backend looks awsome, i will try to build it and try to
> write my lua code, if it works, i write some lines to the list. Thats so
> great, nginx can also use lua... So, it will be easy writing custom
> logic to such essential (core)services like DNS with one powerful
> language. Hope you keep on developing this module.
> Thanks so much,
> Alexander Kunz
> Am 29.03.2013 11:50, schrieb fredrik danerklint:
>> You are talking about the Luabackend which I wrote?
>> You can find a more updated version here:
>> This version has the prefix function which will help you to build your
>> geo informations to the backend.
>> 2013-03-29 07:16, Alexander Kunz skrev:
>>> Hello PDNS users,
>>> are there some more examples or informations about embedded LUA
>>> I try to use some geo informations about the requester IP address,
>>> and redis use age. I only found the small example in the backends
>>> manual. Perhaps anyone know a more complex example?
>>> Any hints are welcome.
>>> Thanks, and have a nice day...
>>> Kind regards,
>>> Alexander Kunz
>>> Pdns-users mailing list
>>> Pdns-users at mailman.powerdns.com
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
More information about the Pdns-users