https://github.com/ClouDesire/docker-powerdns
6.2K
4.3.1: PowerDNS Version 4.3.14.0: PowerDNS Version 4.0.x, latest image build4: PowerDNS Version 4.x.x, latest image build# Start a MySQL Container
$ docker run -d \
--name pdns-mysql \
-e MYSQL_ROOT_PASSWORD=supersecret \
-v $PWD/mysql-data:/var/lib/mysql \
mariadb:10.1
$ docker run --name pdns \
--link pdns-mysql:mysql \
-p 53:53 \
-p 53:53/udp \
-e AUTOCONF=mysql
-e MYSQL_USER=root \
-e MYSQL_PASS=supersecret \
-e MYSQL_PORT=3306 \
psitrax/powerdns \
--cache-ttl=120 \
--allow-axfr-ips=127.0.0.1,123.1.2.3
# Start a Postgres Container
$ docker run -d \
--name pdns-postgres \
-e POSTGRES_PASSWORD=supersecret \
-v $PWD/postgres-data:/var/lib/postgresql \
postgres:9.6
$ docker run --name pdns \
--link pdns-postgres:postgres \
-p 53:53 \
-p 53:53/udp \
-e AUTOCONF=postgres \
-e PGSQL_USER=postgres \
-e PGSQL_PASS=supersecret \
psitrax/powerdns \
--cache-ttl=120 \
--allow-axfr-ips=127.0.0.1,123.1.2.3
$ docker run --name pdns \
-p 53:53 \
-p 53:53/udp \
-e AUTOCONF=sqlite \
psitrax/powerdns \
--cache-ttl=120 \
--allow-axfr-ips=127.0.0.1,123.1.2.3
Environment Configuration:
MYSQL_HOST=mysqlMYSQL_USER=rootMYSQL_PASS=rootMYSQL_DB=pdnsMYSQL_DNSSEC=noPGSQL_HOST=mysqlPGSQL_USER=rootPGSQL_PASS=rootPGSQL_DB=pdnsSQLITE_DB=/pdns.sqlite3MYSQL_DNSSEC=yesAUTOCONF=falsePDNS_$pdns-config-variable=$config-value, like PDNS_WEBSERVER=yes/etc/pdns/conf.d or simply overwrite /etc/pdns/pdns.confTRACE=true to debug the pdns config directivesPowerDNS Configuration:
Append the PowerDNS setting to the command as shown in the example above.
See docker run --rm psitrax/powerdns --help
GNU General Public License v2.0 applyies to PowerDNS and all files in this repository.
Content type
Image
Digest
Size
29.8 MB
Last updated
almost 6 years ago
docker pull cloudesire/docker-powerdns:multidb-support