Sign inSign up

xpyctee/pdns-sqlite

By xpyctee

Updated 4 months ago

PowerDNS server with sqlite backend Multi-Arch rebuild of pschiffe/docker-pdns images

Image
Networking
0

1.9K

xpyctee/pdns-sqlite repository overview

PowerDNS Auth-Server with SQLite3 backend

pdns-sqlite

Docker Image Size (tag) Docker Image Size (tag) Docker Pulls

https://hub.docker.com/r/xpyctee/pdns-sqlite/

Docker image with PowerDNS 4.x server and sqlite backend. Env vars for sqlite configuration:

(name=default value)

PDNS_gsqlite3_database=/var/lib/powerdns/pdns.sqlite3

The PowerDNS server is configurable via env vars. Every variable starting with PDNS_ will be inserted into /etc/pdns/pdns.conf conf file in the following way: prefix PDNS_ will be stripped away and every _ will be replaced with -. For example, from the above sqlite config, PDNS_gsqlite3_database=/var/lib/powerdns/pdns.sqlite3 will became gsqlite3-database=/var/lib/powerdns/pdns.sqlite3 in /etc/pdns/pdns.conf file. This way, you can configure PowerDNS server in any way you need within a docker run command.

The SUPERMASTER_IPS env var is also supported, which can be used to configure supermasters for a slave DNS server. Docs. Multiple IP addresses separated by spaces should work.

You can find all the available settings here.

Examples

Example of a master server with the API enabled and one slave server configured:

docker run -d -p 53:53 -p 53:53/udp --name pdns-master \
  --hostname ns1.example.com \
  -e PDNS_primary=yes \
  -e PDNS_api=yes \
  -e PDNS_api_key=secret \
  -e PDNS_webserver=yes \
  -e PDNS_webserver_address=0.0.0.0 \
  -e PDNS_webserver_password=secret2 \
  -e PDNS_version_string=anonymous \
  -e PDNS_default_ttl=1500 \
  -e PDNS_allow_axfr_ips=172.5.0.21 \
  -e PDNS_only_notify=172.5.0.21 \
  xpyctee/pdns-sqlite

Example of a slave server with a supermaster:

docker run -d -p 53:53 -p 53:53/udp --name pdns-slave \
  --hostname ns2.example.com \
  -e PDNS_gsqlite3_database=/var/lib/powerdns/pdnsslave.sqlite3 \
  -e PDNS_secondary=yes \
  -e PDNS_autosecondary=yes \
  -e PDNS_version_string=anonymous \
  -e PDNS_disable_axfr=yes \
  -e PDNS_allow_notify_from=172.5.0.20 \
  -e SUPERMASTER_IPS=172.5.0.20 \
  xpyctee/pdns-sqlite

Tag summary

Content type

Image

Digest

sha256:047117555

Size

20.6 MB

Last updated

4 months ago

docker pull xpyctee/pdns-sqlite