<div dir="ltr"><div>Hi Jason,<br></div><div><br></div><div>AFAIK only configuration data can be stored in separate records. You might be able to use the Lua2 backend as an additional backend to achieve what you want, but your question lacks details. Please also see: <a href="https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open">https://blog.powerdns.com/2016/01/18/open-source-support-out-in-the-open</a></div><div><br></div><div>With that being said, a feature has just been implemented in the development branch that allows you to globally include Lua scripts: <a href="https://github.com/PowerDNS/pdns/issues/11676">https://github.com/PowerDNS/pdns/issues/11676</a> . With some patience it will trickle down to a stable release and of course you can already try it out. <br></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font color="#000000" style="font-size:12.8px"><span style="font-size:12.8px">With kind regards,</span><br style="font-size:12.8px"><span style="font-size:12.8px">Michel Otte</span></font><br style="font-size:12.8px;color:rgb(136,136,136)"></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op ma 29 jul 2024 om 20:04 schreef Jason Tremblett via Pdns-users <<a href="mailto:pdns-users@mailman.powerdns.com">pdns-users@mailman.powerdns.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg2028726109046814890">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_2028726109046814890WordSection1">
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We are testing some ideas around lua records.  We will have a large number of zones that all need to share the same library code.  While we could duplicate the code in each zone individually, it will mean reloading every zone to update
 the code if we ever need to change it.  I tried (unsuccessfully) to create a library zone and load the code from there (e.g. “include (‘<a href="http://code.other.domain.com" target="_blank">code.other.domain.com</a>’) myFunction(…)”) as well as creating a shared lua context and then trying to call the global functions
 from a different zone or record in the same zone without the include on a later request, but neither seemed to work for me the way I tried them.  It would be great if we could just always load our lua library along with the built in functions if that would
 work (this seems like it might require a feature request).  I am able to use the functions successfully from a record in the same zone, but only if I load them on every record.  Is what I am trying to do currently possible?  Can you point me to an example
 of how this might work if it is?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Jason Tremblett<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
Pdns-users mailing list<br>
<a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank">Pdns-users@mailman.powerdns.com</a><br>
<a href="https://mailman.powerdns.com/mailman/listinfo/pdns-users" rel="noreferrer" target="_blank">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
</div></blockquote></div>