Re: [Pdns-users] LUA script for primary server

2022-06-09 Thread Djerk Geurts via Pdns-users
> -- nxdomain runs after no result is found. > function nxdomain(dq) > dquery = newDN(dq.qname:toString()) > pdnslog("nxdomain called for: "..dquery:toString()) > if dq.qtype == pdns.NAPTR then > pdnslog("Search parent wildcard record") > if dquery:countLabels() == 12 then > dqu

Re: [Pdns-users] LUA script for primary server

2022-06-09 Thread Djerk Geurts via Pdns-users
> What I still need to test is if this script actually works and what will > happen if the followupFunction also returns NXDOMAIN, if it hit the Lua > script again then nothing else is needed, else I’ll need to add more logic to > keep going with a chopOff() until the zone’s ‘root' wildcard reco

Re: [Pdns-users] LUA script for primary server

2022-06-06 Thread Djerk Geurts via Pdns-users
> On 6 Jun 2022, at 12:44, Brian Candler wrote: > > On 06/06/2022 11:34, Djerk Geurts wrote: >> Maybe if I add some examples: >> >> 1.2.3.4.5.6.e164.arpa. NAPTR “some text with sip call routing info: AAA” >> *.4.5.6.e164.arpa. NAPTR “some different sip call routing info: BBB” >> >> A query for

Re: [Pdns-users] LUA script for primary server

2022-06-06 Thread Brian Candler via Pdns-users
On 06/06/2022 11:34, Djerk Geurts wrote: Maybe if I add some examples: 1.2.3.4.5.6.e164.arpa. NAPTR “some text with sip call routing info: AAA” *.4.5.6.e164.arpa. NAPTR “some different sip call routing info: BBB” A query for 9.9.9.4.5.6.e164.arpa. will result in BBB A query for 1.2.3.4.5.6.e164

Re: [Pdns-users] LUA script for primary server

2022-06-06 Thread Djerk Geurts via Pdns-users
On 6 Jun 2022, at 11:17, Brian Candler wrote: > > On 06/06/2022 10:52, Djerk Geurts via Pdns-users wrote: >> Jun 06 11:28:29 host.example.com >> pdns_server[3559402]: Fatal error: Trying to set unknown setting >> 'lua-dns-script’ > "lua-dns-script" is not a valid sett

Re: [Pdns-users] LUA script for primary server

2022-06-06 Thread Brian Candler via Pdns-users
On 06/06/2022 10:52, Djerk Geurts via Pdns-users wrote: Jun 06 11:28:29 host.example.com pdns_server[3559402]: Fatal error: Trying to set unknown setting 'lua-dns-script’ "lua-dns-script" is not a valid setting for pdns authoritative server. See: https://doc.powerdns

[Pdns-users] LUA script for primary server

2022-06-06 Thread Djerk Geurts via Pdns-users
I’ve got a set of authoritative servers, all with the same MySQL backend. And am looking to catch nxdomain replies. All LUA suggestions I’ve found so far are for recursors, Is there no way to use the same LUA script on an authoritative server? Jun 06 11:28:29 host.example.com pdns_server[355940