PDNS4 Backend¶
PDNS4 Configuration¶
The version PowerDNS in Ubuntu Xenial is pdns4. This has a different DB schema, and is incompatible with the legacy PowerDNS driver. In PDNS 4 the API was marked stable, and this is what we will use.
You will need to configure PowerDNS, and its database before perfoming these steps.
You will need to use a database backend for PowerDNS’s API to function.
See PowerDNS Docs for details.
- Enable the API in the
pdns.conf
file.
webserver=yes
api=yes
api-key=changeme
- Configure the PowerDNS Backend using this sample target snippet
targets:
- type: pdns4
description: PowerDNS4 DNS Server
# List out the designate-mdns servers from which PowerDNS servers should
# request zone transfers (AXFRs) from.
masters:
- host: 192.0.2.1
port: 5354
# PowerDNS Configuration options
options:
host: 192.0.2.1
port: 53
api_endpoint: http://127.0.0.1:8081
api_token: changeme
- Then update the pools in designate
$ designate-manage pool update
See designate-manage pool for further details on the designate-manage pool
command, and Pools for information about the yaml file syntax