WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Lua Scripting

Re: Lua Scripting

by Peter van Dijk-6 :: Rate this Message:

| View in Thread

Hi,

On Feb 14, 2012, at 17:18 , kamvij wrote:

> I am trying to return an SRV record using Lua, but the pdns-recursor does
> not seem to parse my return list correctly.
>
> I use the following:
>
> ret={}
> ret[1]= {type="SRV", rdata="_http._tcp.<ip address> SRV 0 1 80 <ip
> address.>", ttl=1}
> return 0, ret
>
> Any help is appreciated.

Next time, please include a little more of your code, this makes it easier to reproduce your issues.

As for your problems: type and rdata are not field names used by PowerDNS and I do not see them in the docs at all. If you use 'qtype' and 'content' as field names, your code should mostly work.

I doubt the use of applying SRV to IP addresses, though.

Kind regards,
Peter van Dijk
_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

 « Return to Thread: Lua Scripting