From a51b6c84ac61b1d69eded44b3b80db7e954f8184 Mon Sep 17 00:00:00 2001 From: "rf@worldstream.nl" Date: Mon, 21 Oct 2019 10:02:41 +0200 Subject: [PATCH 1/4] Set gmysql-dnssec parameter (DNSSEC support) --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 40f5184..9381d2f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,12 +10,16 @@ if $MYSQL_AUTOCONF ; then if [ -z "$MYSQL_PORT" ]; then MYSQL_PORT=3306 fi + if [ -z "$MYSQL_DNSSEC" ]; then + MYSQL_DNSSEC='no' + fi # Set MySQL Credentials in pdns.conf sed -r -i "s/^[# ]*gmysql-host=.*/gmysql-host=${MYSQL_HOST}/g" /etc/pdns/pdns.conf sed -r -i "s/^[# ]*gmysql-port=.*/gmysql-port=${MYSQL_PORT}/g" /etc/pdns/pdns.conf sed -r -i "s/^[# ]*gmysql-user=.*/gmysql-user=${MYSQL_USER}/g" /etc/pdns/pdns.conf sed -r -i "s/^[# ]*gmysql-password=.*/gmysql-password=${MYSQL_PASS}/g" /etc/pdns/pdns.conf sed -r -i "s/^[# ]*gmysql-dbname=.*/gmysql-dbname=${MYSQL_DB}/g" /etc/pdns/pdns.conf + sed -r -i "s/^[# ]*gmysql-dnssec=.*/gmysql-dnssec=${MYSQL_DNSSEC}/g" /etc/pdns/pdns.conf MYSQLCMD="mysql --host=${MYSQL_HOST} --user=${MYSQL_USER} --password=${MYSQL_PASS} --port=${MYSQL_PORT} -r -N" From 83b60b63d89e1b4704e8e13a718e5b56e029ea1b Mon Sep 17 00:00:00 2001 From: "rf@worldstream.nl" Date: Mon, 21 Oct 2019 11:29:21 +0200 Subject: [PATCH 2/4] MYSQL_DNSSEC tag added in README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 485c718..8992c63 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ * Small Alpine based Image * MySQL (default), Postgres, SQLite and Bind backend included +* DNSSEC support optional * Automatic MySQL database initialization * Latest PowerDNS version (if not pls file an issue) * Guardian process enabled @@ -48,7 +49,9 @@ $ docker run --name pdns \ * `MYSQL_USER=root` * `MYSQL_PASS=root` * `MYSQL_DB=pdns` + * `MYSQL_DNSSEC=yes` * Want to disable mysql initialization? Use `MYSQL_AUTOCONF=false` +* DNSSEC is disabled by default * Want to use own config files? Mount a Volume to `/etc/pdns/conf.d` or simply overwrite `/etc/pdns/pdns.conf` **PowerDNS Configuration:** From 938115881669cbc437857182371c8077ea1e5c46 Mon Sep 17 00:00:00 2001 From: "rf@worldstream.nl" Date: Mon, 21 Oct 2019 11:45:35 +0200 Subject: [PATCH 3/4] Text changes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8992c63..d681aa5 100644 --- a/README.md +++ b/README.md @@ -49,9 +49,9 @@ $ docker run --name pdns \ * `MYSQL_USER=root` * `MYSQL_PASS=root` * `MYSQL_DB=pdns` - * `MYSQL_DNSSEC=yes` + * `MYSQL_DNSSEC=no` * Want to disable mysql initialization? Use `MYSQL_AUTOCONF=false` -* DNSSEC is disabled by default +* DNSSEC is disabled by default, to enable use 'MYSQL_DNSSEC=yes' * Want to use own config files? Mount a Volume to `/etc/pdns/conf.d` or simply overwrite `/etc/pdns/pdns.conf` **PowerDNS Configuration:** From f8b49ec82523181df98c6f423cac42cbb665bcb4 Mon Sep 17 00:00:00 2001 From: "rf@worldstream.nl" Date: Mon, 21 Oct 2019 11:48:20 +0200 Subject: [PATCH 4/4] Backtick fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d681aa5..5b57a71 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ $ docker run --name pdns \ * `MYSQL_DB=pdns` * `MYSQL_DNSSEC=no` * Want to disable mysql initialization? Use `MYSQL_AUTOCONF=false` -* DNSSEC is disabled by default, to enable use 'MYSQL_DNSSEC=yes' +* DNSSEC is disabled by default, to enable use `MYSQL_DNSSEC=yes` * Want to use own config files? Mount a Volume to `/etc/pdns/conf.d` or simply overwrite `/etc/pdns/pdns.conf` **PowerDNS Configuration:**