[dnsdist] ERROR RUNNING ZVELODB c-api-tool LOOKUP COMMAND INSIDE LUA's preresolve()

frank+pdns at tembo.be frank+pdns at tembo.be
Thu Jan 14 08:08:03 UTC 2021

Hi Pius,

Have you checked the permissions on the database and the path? 


> On 14 Jan 2021, at 05:07, Pius Nganga via dnsdist <dnsdist at mailman.powerdns.com <mailto:dnsdist at mailman.powerdns.com>> wrote:
> We are using zvelodb to do an url lookup inside pdns recursor's preresolve function. We are executing a terminal command using  io.popen as follows;
> f = io.popen("c-api-tool -l "..dq.qname:toString()) -- runs command
>    l = f:read("*a") -- read output of command
>    f:close()
>    print(l)
> Running the above command outside of the preresolve function prints the expected outcome which is 'domainname category'.
> When the command is inside the preresolve function it prints 'url_init: unable to open database'
> Has anyone encountered this before and how do we solve this?
> _______________________________________________
> dnsdist mailing list
> dnsdist at mailman.powerdns.com <mailto:dnsdist at mailman.powerdns.com>
> https://mailman.powerdns.com/mailman/listinfo/dnsdist

Frank Louwers
PowerDNS Certified Consultant @ Kiwazo.be

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210114/5656c849/attachment.htm>

More information about the dnsdist mailing list