[Pdns-users] Recursor LUA - trigger additional lookups

2018-02-12 Thread Radoslaw Kamil Ejsmont
Hi! I have a question regarding recursor LUA scripting. I would like to block replies for hosts that also have A records. Is that possible with current LUA framework? My idea was to write a postresolve hook that would check if `dq.qtype == pdns.` and the perform an A lookup. If A

Re: [Pdns-users] Recursor LUA - trigger additional lookups

2018-02-12 Thread Brian Candler
On 12/02/2018 10:32, Radoslaw Kamil Ejsmont wrote: My goal is to successfully resolve only for hosts that are IPv6 only and serve A only to dual-stack hosts. I can't answer your question about doing this inside PDNS, but just wanted to mention that you can configure individual hosts to

Re: [Pdns-users] Recursor LUA - trigger additional lookups

2018-02-12 Thread David
On 2018-02-12 9:31 AM, Radosław Ejsmont wrote: Yeah, know that you can set it for each client (Linux/Windows/macOS). My problem is many mobile clients (iOS) where setting this up is impossible. And Netflix / Amazon / whatever becomes an issue... so network-wide solution would be cool! What

Re: [Pdns-users] Recursor LUA - trigger additional lookups

2018-02-12 Thread Pieter Lexis
Hi Radoslaw, On Mon, 12 Feb 2018 11:32:11 +0100 Radoslaw Kamil Ejsmont wrote: > I have a question regarding recursor LUA scripting. I would like to block > replies for hosts that also have A records. Is that possible with > current LUA framework? > > My idea was to

Re: [Pdns-users] Recursor LUA - trigger additional lookups

2018-02-12 Thread Pieter Lexis
Hi Radosław, Pushing this back to the mailing-list, please send further replies there as well. On Mon, 12 Feb 2018 18:00:43 +0100 Radosław Ejsmont wrote: > > On 12 Feb 2018, at 17:43, Pieter Lexis wrote: > > > > On Mon, 12 Feb 2018 11:32:11

Re: [Pdns-users] Recursor LUA - trigger additional lookups

2018-02-12 Thread Radoslaw Kamil Ejsmont
Dear Pieter, Thanks a lot! You were super helpful! Best, Radek -- Radoslaw Kamil Ejsmont, Ph.D. http://radoslaw.ejsmont.net > On 12 Feb 2018, at 18:23, Pieter Lexis wrote: > > Hi Radosław, > > Pushing this back to the

Re: [Pdns-users] Recursor LUA - trigger additional lookups

2018-02-12 Thread Radosław Ejsmont
Yeah, know that you can set it for each client (Linux/Windows/macOS). My problem is many mobile clients (iOS) where setting this up is impossible. And Netflix / Amazon / whatever becomes an issue... so network-wide solution would be cool! Sent from my iPhone > On 12 Feb 2018, at 11:48, Brian

Re: [Pdns-users] Recursor LUA - trigger additional lookups

2018-02-12 Thread Brian Candler
On 12/02/2018 17:23, Pieter Lexis wrote: If you known the (sub) domains that need this special processing, you could simplify your life by adding them to a DNSSuffixMatchGroup[1] and if the domain name in the query is not matched in this group, send a NODATA response to let the client retry

Re: [Pdns-users] Recursor LUA - trigger additional lookups

2018-02-12 Thread Radoslaw Kamil Ejsmont
Hi Brian yep, reverse of DNS64 is more or less what I am trying to achieve. And I found a way - a minimal DNS lookup library for LUA that has no dependencies and runs very quickly: https://github.com/spc476/SPCDNS It works really nicely with powerdns lua scripts. Beware though of circular