PowerDNS docker container, based on Debian Jessie.
To use this image you need docker daemon installed. Run the following commands as root:
curl -ssl https://get.docker.com | sh
Docker-compose is desirable (run as root as well):
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
Save the following snippet as docker-compose.yaml in any folder you like, or clone this repository, which contains the same file.
pdns:
image: interlegis/powerdns:4.0.1-1
links:
- "mysql:mysql"
ports:
- "53:53"
- "53:53/udp"
- "8088:8081"
environment:
- PDNSCONF_API_KEY=a_strong_api_key
- PDNSCONF_MASTER=yes
- PDNSCONF_DEFAULT_SOA_NAME=dnsserver.domain.com
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=mysqlrootpw
- MYSQL_DATABASE=pdns
- MYSQL_USER=pdns
- MYSQL_PASSWORD=pdnspw
Any setting from https://doc.powerdns.com/3/authoritative/settings/ is supported. Just add the prefix "PDNS_" and replace any hyphens (-) with underscore (_). Example:
allow-axfr-ips ===> PDNS_ALLOW_AXFR_IPS
You can easily enable PowerDNS native "slaves" with bitnami/mariadb docker image. See https://hub.docker.com/r/bitnami/mariadb
cd <folder where docker-compose.yaml is>
docker-compose up -d
Pull requests welcome!
Content type
Image
Digest
Size
93.4 MB
Last updated
almost 10 years ago
docker pull elcweb/powerdns