Sign inSign up

jerheij/powerdns

By jerheij

Updated over 1 year ago
Archived

Simple powerdns container with SQLite backend

Image
0

1.9K

jerheij/powerdns repository overview

Simple PowerDNS container with SQLite3 DB

Sources

Base image: oraclelinux:8
Software: PowerDNS

Requirements:

Working Docker installation.

Usage
Persistence

This PowerDNS uses an SQLite3 database (which is automatically created if it does not detect /pdns.db) as backend which means you need to make sure this database is persistent and not deleted when you delete the container. The database is located at /pdns.db. Start the container the first time and copy the database with the following command:

docker cp powerdns:/pdns.db ./pdns.db

Àfter this make sure to mount this database file on /pdns.db to keep using it with the following docker parameter:

docker run -v pdns.db:/pdns.db

You can also mount the database by adding the following file to your docker-compose yaml file:

volumes:
  - pdns.db:/pdns.db
Docker-compose example
services:
  pdns:
    image: jerheij/powerdns:latest
    volumes:
      - ./pdns.db:/pdns.db
Configuration

All the DNS records are saved in the SQLite3 database and can be added on the run by using the following command:

docker exec -ti powerdns pdnsutil

Read the pdnsutil documentation for more information about how to use the command.

Author

Jerheij

Tag summary

Content type

Image

Digest

sha256:d6e7a1b2e

Size

118.6 MB

Last updated

over 2 years ago

docker pull jerheij/powerdns