Re: [Pdns-users] Recursor and subdomain forward

2020-03-23 Thread Giovanni Vecchi via Pdns-users
Got it Brian. Thanks a lot. On Mon, 23 Mar 2020 at 14:38, Brian Candler wrote: > On 23/03/2020 13:28, Giovanni Vecchi via Pdns-users wrote: > > > *sudo rec_control get-parameter forward-zones forward-zones=""* > > From rec logs: > > > *Mar 23 13:21:05 server pdns_recursor[9349]: Reading zone fo

Re: [Pdns-users] Recursor and subdomain forward

2020-03-23 Thread Brian Candler via Pdns-users
On 23/03/2020 13:28, Giovanni Vecchi via Pdns-users wrote: /sudo rec_control get-parameter forward-zones forward-zones=""/ From rec logs: /Mar 23 13:21:05 server pdns_recursor[9349]: Reading zone forwarding information from '/etc/powerdns/recursor.d/zones.conf' Mar 23 13:21:05 server pdns_recu

Re: [Pdns-users] Recursor and subdomain forward

2020-03-23 Thread Giovanni Vecchi via Pdns-users
Hi Brian, thanks for your tip: forward-zone-file is great. I only noticed that configuring forward-zone-file will broke the get-parameter command for rec_control: *sudo rec_control get-parameter forward-zonesforward-zones=""* >From rec logs: *Mar 23 13:21:05 server pdns_recursor[9349]: Readin

Re: [Pdns-users] Recursor and subdomain forward

2020-03-20 Thread Brian Candler via Pdns-users
On 20/03/2020 17:18, Giovanni Vecchi via Pdns-users wrote: I think the problem was that following zone forwarding need to be configured with "forwarding-zone*+*=" directive, but if I didn't find any feedback in the documentation (https://doc.powerdns.com/recursor/settings.html#forward-zones): m

Re: [Pdns-users] Recursor and subdomain forward

2020-03-20 Thread Kevin P. Fleming via Pdns-users
'forward-zone' can only be specified one time in the configuration file. It accepts a list of domain/address pairs, though, so you can setup multiple domains for forwarding. On Fri, Mar 20, 2020 at 1:18 PM Giovanni Vecchi via Pdns-users < pdns-users@mailman.powerdns.com> wrote: > Hi Brian, > > I

Re: [Pdns-users] Recursor and subdomain forward

2020-03-20 Thread Giovanni Vecchi via Pdns-users
Hi Brian, I missed that in configuration file multiple "forwarding-zone=" entries were present for different zone: I only wrote you the first of them that queries were failing, I'm sorry. I think the problem was that following zone forwarding need to be configured with "forwarding-zone*+*=" direct

Re: [Pdns-users] Recursor and subdomain forward

2020-03-20 Thread Brian Candler via Pdns-users
Works for me, with 4.3.0-1pdns.bionic Added to recursor.conf: forward-zones=domain.sec=127.0.0.1:5300 Restarted pdns-recursor Test: root@cache1:~# dig @localhost testing.domain.sec a ; <<>> DiG 9.11.3-1ubuntu1.11-Ubuntu <<>> @localhost testing.domain.sec a ; (1 server found) ;; global options

Re: [Pdns-users] Recursor and subdomain forward

2020-03-20 Thread Giovanni Vecchi via Pdns-users
Hi Brian sudo rec_control version *4.3.0* sudo dpkg -l | grep pdns-recursor *ii pdns-recursor 4.3.0-1pdns.bionic amd64PowerDNS Recursor* No queries arrive at all even with negative trust anchor: sudo rec_control get-ntas *Configured Negative Trus

Re: [Pdns-users] Recursor and subdomain forward

2020-03-20 Thread Brian Candler via Pdns-users
On 20/03/2020 10:56, Giovanni Vecchi via Pdns-users wrote: @Brian: my bad, my local domain isn't an ".local" one but ".sec", so please consider domain.sec as root domain The current behaviour is that public root domain are queried for every *.domain.sec from recursor instead the authoritative on

Re: [Pdns-users] Recursor and subdomain forward

2020-03-20 Thread Giovanni Vecchi via Pdns-users
Hi everybody, @Brian: my bad, my local domain isn't an ".local" one but ".sec", so please consider domain.sec as root domain The current behaviour is that public root domain are queried for every *.domain.sec from recursor instead the authoritative one! My conf: config-dir=/etc/powerdns local-add

Re: [Pdns-users] Recursor and subdomain forward

2020-03-20 Thread Brian Candler via Pdns-users
On 20/03/2020 10:38, Giovanni Vecchi via Pdns-users wrote: is there a "smart" way to instruct recursor to forward zone and each own "subdomain" to an authoritative server? Something like this: forward-zone=*.domain.local= The expectation is that queries to every level starting from domain.loc

[Pdns-users] Recursor and subdomain forward

2020-03-20 Thread Giovanni Vecchi via Pdns-users
Hi guys, is there a "smart" way to instruct recursor to forward zone and each own "subdomain" to an authoritative server? Something like this: forward-zone=*.domain.local= The expectation is that queries to every level starting from domain.local (ex: hello.domain.local, good.night.domain.local,