Re: [Pdns-users] Multiple masters

2018-12-14 Thread Brian Candler
On 15/12/2018 06:29, Don Stokes wrote: I'm looking to deploy PowerDNS in a slave configuration that has multiple (BIND) masters. In a test rig I'm finding that if I have dual masters configured on a PDNS slave, and one of the two masters is unavailable, the slave is querying the absent master a

[Pdns-users] Multiple masters

2018-12-14 Thread Don Stokes
Hi all, I'm looking to deploy PowerDNS in a slave configuration that has multiple (BIND) masters. In a test rig I'm finding that if I have dual masters configured on a PDNS slave, and one of the two masters is unavailable, the slave is querying the absent master and not failing over to the ot

Re: [Pdns-users] Spoof MX records

2018-12-14 Thread Aleksandr Rogozin via Pdns-users
Hi Michael, You should be able to load the file *(if the list of zones is large enough and warrants a file)* or initialize array of subzones *(if there are few zones you want to test)* once, when the process starts and loads the Lua script. Loading the file on every request would definitely become

Re: [Pdns-users] Spoof MX records

2018-12-14 Thread Bit World Computing - Michael Mertel
Hi Aleksandr, ja Lua was the way I’m planning to go. But just wasn’t sure to use dnsdist or recursor, but probably does not matter in that case. Does the file gets loaded for every request with io.open and could this become a performance issue in your opinion? All DNS requests from a fairly goo

[Pdns-users] Weird behavior with non-terminals

2018-12-14 Thread azurit
Hi, recently, i noticed that slave PowerDNS servers are adding NULL records into database after AXFR. I found the explanation here (non-terminals): https://doc.powerdns.com/authoritative/backends/generic-sql.html#rules-for-filling-out-dnssec-fields Also, i noticed one quite a big problem wi

Re: [Pdns-users] Spoof MX records

2018-12-14 Thread Aleksandr Rogozin via Pdns-users
Hi Michael, I recommend using Lua to intercept the DNS queries. Both dnsdist and recursor should be able to support it. In Lua you can check for query type to be MX and load a list of domains from a file using ‘io.open’. Provide necessary DNS response if the query matches your list of zones. Addit