ansible-public-dns/roles/hidden_primary/templates/pdns.conf.j2

39 lines
1.3 KiB
Text
Raw Normal View History

2024-02-05 09:04:32 +01:00
launch=gpgsql
local-address={{ hostvars[inventory_hostname].public_ipv6 }}
2024-01-22 16:22:08 +01:00
local-port=36419
2024-01-18 17:20:58 +01:00
2024-02-05 09:04:32 +01:00
gpgsql-host=/var/run/postgresql
gpgsql-dbname={{ pdns_pgsql_database }}
gpgsql-user={{ pdns_pgsql_user }}
gpgsql-password={{ pdns_pgsql_password }}
gpgsql-dnssec=yes
# gpgsql-get-order-first-query=select ordername from records where domain_id = $1 and disabled = false and ordername is not null order by 1 asc limit 1
# gpgsql-get-order-before-query=select ordername, name from records where ordername <= $1 and domain_id = $2 and disabled = false and ordername is not null order by 1 desc limit 1
# gpgsql-get-order-after-query=select ordername from records where ordername > $1 and domain_id = $2 and disabled = false and ordername is not null order by 1 asc limit 1
# gpgsql-get-order-last-query=select ordername, name from records where ordername != '' and domain_id = $1 and disabled = false and ordername is not null order by 1 desc limit 1
primary=yes
api=yes
api-key={{ pdns_web_apikey }}
webserver=False
webserver-port=8080
webserver-address=::1
webserver-allow-from=127.0.0.1
webserver-password={{ pdns_web_apikey }}
allow-axfr-ips={{ axfr_ipv6 | join(",") }}
disable-axfr=no
only-notify=
also-notify={{ axfr_ipv6 | join(",") }}
2024-01-18 17:20:58 +01:00
2024-01-22 16:22:08 +01:00
secondary=no
2024-01-18 17:20:58 +01:00
autosecondary=no
log-dns-details=yes
log-dns-queries=yes
log-timestamp=yes
2024-02-05 09:04:32 +01:00
loglevel=6