[Pdns-users] Passing a filename as a variable for an access list

Aki Tuomi cmouse at youzen.ext.b2.fi
Wed Oct 1 06:04:49 UTC 2014


On Tue, Sep 30, 2014 at 01:07:00PM -0700, Eric Wolff wrote:
> The config option allow-recursion= allows for a comma separated listing of
> subnets. I am looking for a way to pass a file to this option so I can keep
> a list with descriptions similar to /etc/mail/access for sendmail.
> 
>  
> 
> Eg:
> 
>  
> 
> Allow-recursion=/etc/pdns/access
> 
>  
> 
> (Contents of file)
> 
> #ISP Subnet 1
> 
> 10.10.10.10/24
> 
> #ISP Subnet 2
> 
> 20.20.20.20/20
> 
> #Some Customer
> 
> 30.30.30.30./32
> 
>  
> 
> I could probably write a script to generate a new config file using the
> contents of an access list but I'd greatly prefer something built in.
> 


You can use include-dir option and
allow-recursion+=host

or just put all the hosts in the include-dir file

allow-recursion=host,host,host...

Aki

> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users





More information about the Pdns-users mailing list