[Pdns-users] PDNS Recursor and forward-zones-file

Brian Candler b.candler at pobox.com
Thu Mar 17 17:00:20 UTC 2022


On 17/03/2022 15:50, Pepe Charli wrote:
> But the idea is to have in the future a file forward-zones-file of the 
> type
> test1.com <http://test1.com>=192.168.1.1
> test2.com <http://test2.com>=192.168.1.2
> .=192.168.68.63, 192.168.68.64

I think dnsdist is better for that application - it's what it's designed 
for. For example, it actively tests the backends with a query every 
second, so failover is faster.

# sample configuration

setACL({'192.168.0.0/16','10.0.0.0/8'})

newServer({address='192.168.68.63', pool='default'})
newServer({address='192.168.68.64', pool='default'})
newServer({address='192.168.1.1', pool='test1'})
newServer({address='192.168.1.2', pool='test2'})

addAction({'test1.com.'}, PoolAction('test1'))
addAction({'test1.com.'}, PoolAction('test2'))
addAction(AllRule(), PoolAction('default'))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20220317/bed189cd/attachment.htm>


More information about the Pdns-users mailing list