Skip to content

olofvndrhr/docker-pdns

Repository files navigation

powerdns docker images for amd64 & arm64

github source

features

  • amd64 & arm64 builds
  • s6 supervisor
  • cron
  • common unix tools installed (tar, curl, rsync etc.)
  • non-root image
  • UID/GID freely changeable

infos for all images

UID/GID + time-zone

the default UID/GID is set to 4444. if you want to change it, set the ENV variables PGID and PUID. same for the time-zone, set via ENV variable TZ.

docker run \
    -e TZ=Europe/Zurich \
    -e PGID=1001 \
    -e PUID=1001 \
    -v ./auth.conf:/etc/powerdns/pdns.d/auth.conf \
    olofvndrhr/pdns-recursor
# compose.yml
recursor:
  image: olofvndrhr/pdns-recursor:latest
  volumes:
    - ./recursor.conf/:/etc/powerdns/recursor.d/recursor.conf:ro
  environment:
    - TZ=Europe/Zurich
    - PUID=1001
    - PGID=1001

cron

this image also has cron installed. custom crontabs should be places in /etc/cron.d/.

# compose.yml
recursor:
  image: olofvndrhr/pdns-recursor:latest
  volumes:
    - ./recursor.conf/:/etc/powerdns/recursor.d/recursor.conf:ro
    - ./custom-crontab:/etc/cron.d/custom-crontab:ro

examples

see compose.example.yml

more examples in config-examples


docker hub

image name: olofvndrhr/pdns-recursor

to use custom configs either override the default /etc/powerdns/pdns.conf or mount the folder /etc/powerdns/pdns.d/ to supply your own config files.

docker run \
    -v ./auth.conf:/etc/powerdns/pdns.d/auth.conf \
    olofvndrhr/pdns-recursor

default /etc/powerdns/pdns.conf

local-address=0.0.0.0,::
include-dir=/etc/powerdns/pdns.d
launch=

docker hub

image name: olofvndrhr/pdns-auth

to use custom configs either override the default /etc/powerdns/recursor.conf or mount the folder /etc/powerdns/recursor.d/ to supply your own config files.

docker run \
    -v ./recursor.conf/:/etc/powerdns/recursor.d/recursor.conf \
    olofvndrhr/pdns-auth

default /etc/powerdns/recursor.conf

local-address=0.0.0.0,::
include-dir=/etc/powerdns/recursor.d

docker hub

image name: olofvndrhr/pdns-lightningstream

to use your config, mount it at /lightningstream.yml.

no default config in this image

docker run \
    -v ./lightningstream.yml:/lightningstream.yml \
    olofvndrhr/pdns-lightningstream

About

PowerDNS docker images for amd64 & arm64

Resources

License

Stars

Watchers

Forks

Packages

No packages published