[Pdns-users] why different parameters syntax on forward-zones and forward-zones-file
Victor Hugo dos Santos
listas.vhs at gmail.com
Tue Nov 29 13:45:13 UTC 2022
hello there,
today we have to migrate an old configuration (what was using the
forward-zones-file) to a new server using the ansible recursor
playbook (https://github.com/PowerDNS/pdns_recursor-ansible), but some
internal domains didn't worked well and after some debug we got that
there is a difference using the "+" on the forward-zones and
forward-zones-file.
https://docs.powerdns.com/recursor/settings.html#forward-zones
https://docs.powerdns.com/recursor/settings.html#forward-zones-file
```Zones prefixed with a ‘+’ are treated as with
forward-zones-recurse. Default behaviour without ‘+’ is as with
forward-zones.```
So, why this two parameters need to have different syntax (not only
the +, but the use of ; and , as separator:
```
forward-zones-file = my_file.txt
my_file.txt
+my_domain.com=1.2.3.4,4.3.2.1
+my_other_domain.net=1.2.3.4,4.3.2.1
```
```
forward-zones=my_domain.com=1.2.3.4;4.3.2.1,my_other_domain.net=1.2.3.4;4.3.2.1
```
thanks and advance
--
--
Victor Hugo dos Santos
http://www.vhsantos.net
Linux Counter #224399
More information about the Pdns-users
mailing list