PowerDNS docker container, based on Debian Buster.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.0 KiB

9 years ago
# docker-powerdns
4 years ago
PowerDNS docker container, based on Debian Buster.
[![Build Status](https://drone.interlegis.leg.br/api/badges/SEIT/docker-powerdns/status.svg)](https://drone.interlegis.leg.br/SEIT/docker-powerdns)
## Requirements
### Docker
To use this image you need docker daemon installed. Run the following commands as root:
```
curl -ssl https://get.docker.com | sh
```
### Docker-compose
Docker-compose is desirable (run as root as well):
```
4 years ago
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
```
## Docker-compose Example
4 years ago
Save the following snippet as docker-compose.yaml in any folder you like, or clone this repository, which contains a sample docker-compose.yml.
```
pdns:
image: interlegis/powerdns:4.6.2
links:
- "mysql:mysql"
ports:
- "53:53"
- "53:53/udp"
- "8088:8081"
environment:
- PDNSCONF_API_KEY=a_strong_api_key
- PDNSCONF_GMYSQL_USER=pdns
- PDNSCONF_GMYSQL_DBNAME=pdns
- PDNSCONF_GMYSQL_PASSWORD=pdnspw
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=mysqlrootpw
- MYSQL_DATABASE=pdns
- MYSQL_USER=pdns
- MYSQL_PASSWORD=pdnspw
```
9 years ago
## Environment Variables Supported
Any setting from https://doc.powerdns.com/authoritative/settings.html is supported. Just add the prefix "PDNSCONF\_" and replace any hyphens (-) with underscore (\_). Example:
9 years ago
``` allow-axfr-ips ===> PDNSCONF_ALLOW_AXFR_IPS ```
9 years ago
### Additional Environment Variables:
- SECALLZONES_CRONJOB: If set to 'yes', a Cron Job every half hour checks if any domain is not DNSSEC enabled. If so, it enables DNSSEC for that zone and fixes any DS records in parent zones hosted in the same server.
## Clustering
You can easily enable PowerDNS native "slaves" with bitnami/mariadb docker image.
See <https://hub.docker.com/r/bitnami/mariadb>
## Running
```
cd <folder where docker-compose.yaml is>
docker-compose up -d
```
## Contributing
Pull requests welcome!