[Pdns-users] returning a TXT record consisting only of digits from lua backend

Peter van Dijk peter.van.dijk at powerdns.com
Fri Jul 30 13:48:40 UTC 2021


Hello Christof,

On Wed, 2021-07-28 at 22:49 +0200, Christof Meerwald via Pdns-users
wrote:
> it seems to be impossible to return a "TXT" record that only contains
> digits from the lua backend (something like "1234").
> 
> Any attempt results in "boost::bad_get: failed value get using
> boost::get".
> 
> I guess this is a side-effect of how lua_isnumber is specified:
> "Returns 1 if the value at the given index is a number or a string
> convertible to a number, and 0 otherwise."

what version of the auth, and what backend? We dropped the luabackend
some time ago, a few versions after we gained the lua2backend.

Better yet, can you show some config and code?

Kind regards,
-- 
Peter van Dijk
PowerDNS.COM BV - https://www.powerdns.com/



More information about the Pdns-users mailing list