Configuring PowerDNS

The PowerDNS connector script connects directly to the MySQL backend, enabling zone management in PowerDNS. Native mode and Primary/Secondary mode are supported in the authoritative PowerDNS.

On Linux, include the --generic-dns-controller parameter when running the installer.

This will install the Generic DNS Agent, but you’ll need to make a couple of adjustments:

  1. Create a working directory and a configuration for the connector script:

mkdir /var/mmsuite/dns_server_controller

Set the correct ownership for this directory.

  1. In the mmsuite directory, create a preferences.cfg file and configure the connector script using an XML-tag as described in the instructions for Generic DNS Agent.

For example, on Linux add the following line to preferences.cfg:

<GenericDNSScript value="python /your/script/directory/genericDNSPowerDNS.py" />

Download the script from GitHub.

  1. Modify the systemd/init script for the agent. Using an editor, such as vi, open the mmremote init script located at /etc/init.d/mmremote.

  2. Search for the line containing PARAMS="....".

  3. At the beginning of the parameter list, add your created agent working directory with the -d parameter:

PARAMS="-d /var/mmsuite/dns_server_controller  ...rest of the params"