<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 06/06/2022 11:34, Djerk Geurts
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BFD0C1C8-603D-4434-92B3-B1BD3B00AE23@maizymoo.com">
<div class="">Maybe if I add some examples:</div>
<div class=""><br class="">
</div>
<div class="">1.2.3.4.5.6.e164.arpa. NAPTR “some text with sip
call routing info: AAA”</div>
<div class="">*.4.5.6.e164.arpa. NAPTR “some different sip call
routing info: BBB”</div>
<div class=""><br class="">
</div>
<div class="">A query for 9.9.9.4.5.6.e164.arpa. will result in
BBB</div>
<div class="">A query for <span style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0);" class="">1.2.3.4.5.6.e164.arpa. yields
AAA</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0);" class="">A query for 3</span><span
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"
class="">.3.3.4.5.6.e164.arpa. yields NXDOMAIN</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0);" class=""><br class="">
</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0);" class="">The above is all according to RFC and
expected PowerDNS behaviour.</span></div>
</blockquote>
<p>Yep. Depending on your use case and how many domains you have, it
might be possible to implement<br>
</p>
<p>*.e164.arpa. LUA NAPTR "// some LUA code here"</p>
<p>The query name, including the part matched by the wildcard,
should be available in a <a moz-do-not-send="true"
href="https://doc.powerdns.com/authoritative/lua-records/functions.html#query-variables">query
variable</a>.</p>
<p>Or there is the <a moz-do-not-send="true"
href="https://doc.powerdns.com/authoritative/backends/lua2.html">Lua2
backend</a> (in the Ubuntu packages it's in a separate package
"pdns-backend-lua2"), or other <a moz-do-not-send="true"
href="https://doc.powerdns.com/authoritative/backends/index.html">backends</a>
like pipe and remote.<br>
</p>
<p> </p>
</body>
</html>