[Pdns-users] How to fragment LUA record over 255 bytes properly?

Malte Schmidt m at maltris.org
Wed Mar 1 19:44:56 UTC 2023


Regarding the use of the LUA record type, the current documentation at https://doc.powerdns.com/authoritative/lua-records/ states:

>Warning
>When using AXFR to transfer long LUA records, ensure that the record content is split into segments no longer than 255 bytes. Otherwise, due to the nature of the transfer method (as TXT content), the content will be split into 255 byte chunks. This can lead to the code being split in the wrong places on the secondary.However, there is no explanation if this means that the LUA record type has a maximum supported length of 255 byte or if there is a way to fragment this similar to TXT records or if the fragmentation happens automatically (and correctly, which the message indicates is not the case).

If it is possible, how would I properly fragment the LUA answer over 255 bytes in length so that a downstream PowerDNS instance would reassemble it correctly (keeping the order of the fragments?).

Thanks in advance and best regards,

M. Schmidt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20230301/ae983872/attachment.htm>


More information about the Pdns-users mailing list