Giter Site home page Giter Site logo

julianxhokaxhiu / docker-powerdns Goto Github PK

View Code? Open in Web Editor NEW
51.0 8.0 26.0 4.99 MB

PowerDNS + Recursor + Admin GUI + Adblock in one single Docker

License: MIT License

Shell 36.24% Go 22.68% Python 8.95% Dockerfile 32.14%
powerdns dns-server docker x86-64 armhf adblock

docker-powerdns's Issues

Failed to establish a new connection: [Errno 111] Connection refused',))

Hello.

Thanks for this project.

Do you intend to keep this project going? It's the only one that I found that places recursive+recursor+admin in a single docker.

By the way, where do I manage the "recursor" part?

Anyway, this image is giving some errors:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/webapps/powerdns-admin/app/models.py", line 1741, in get_statistic
    jdata = utils.fetch_json(urljoin(self.PDNS_STATS_URL, self.API_EXTENDED_URL + '/servers/{0}/statistics'.format(self.server_id)), headers=headers, method='GET')
  File "/usr/share/webapps/powerdns-admin/app/lib/utils.py", line 107, in fetch_json
    accept='application/json; q=1')
  File "/usr/share/webapps/powerdns-admin/app/lib/utils.py", line 94, in fetch_remote
    params=params
  File "/usr/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8081): Max retries exceeded with url: /api/v1/servers/localhost/statistics (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd02319c860>: Failed to establish a new connection: [Errno 111] Connection refused',))

[INFO] 192.168.0.40 - - [09/Aug/2022 22:48:58] "GET /admin/pdns HTTP/1.1" 200 -
[INFO] 192.168.0.40 - - [09/Aug/2022 22:48:59] "GET /admin/history HTTP/1.1" 200 -
[INFO] 192.168.0.40 - - [09/Aug/2022 22:49:00] "GET /templates/list HTTP/1.1" 200 -
crond: wakeup dt=60
crond: file root:
crond:  line run-parts /etc/periodic/15min
crond:  line run-parts /etc/periodic/hourly
crond:  line run-parts /etc/periodic/daily
crond:  line run-parts /etc/periodic/weekly
crond:  line run-parts /etc/periodic/monthly
[INFO] 192.168.0.40 - - [09/Aug/2022 22:49:02] "GET /admin/manageaccount HTTP/1.1" 200 -
[INFO] 192.168.0.40 - - [09/Aug/2022 22:49:02] "GET /admin/manageuser HTTP/1.1" 200 -
[DEBUG] Update domains in foreground
[DEBUG] Starting new HTTP connection (1): 127.0.0.1
[ERROR] Can not update domain table. Error: HTTPConnectionPool(host='127.0.0.1', port=8081): Max retries exceeded with url: /api/v1/servers/localhost/zones (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd023271208>: Failed to establish a new connection: [Errno 111] Connection refused',))
[DEBUG] Starting new HTTP connection (1): 127.0.0.1
[ERROR] Can not get server statistics. DETAIL: HTTPConnectionPool(host='127.0.0.1', port=8081): Max retries exceeded with url: /api/v1/servers/localhost/statistics (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd02318def0>: Failed to establish a new connection: [Errno 111] Connection refused',))
[DEBUG] Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect
    conn = self._new_conn()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fd02318def0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8081): Max retries exceeded with url: /api/v1/servers/localhost/statistics (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd02318def0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/webapps/powerdns-admin/app/models.py", line 1741, in get_statistic
    jdata = utils.fetch_json(urljoin(self.PDNS_STATS_URL, self.API_EXTENDED_URL + '/servers/{0}/statistics'.format(self.server_id)), headers=headers, method='GET')
  File "/usr/share/webapps/powerdns-admin/app/lib/utils.py", line 107, in fetch_json
    accept='application/json; q=1')
  File "/usr/share/webapps/powerdns-admin/app/lib/utils.py", line 94, in fetch_remote
    params=params
  File "/usr/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8081): Max retries exceeded with url: /api/v1/servers/localhost/statistics (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd02318def0>: Failed to establish a new connection: [Errno 111] Connection refused',))

[INFO] 192.168.0.40 - - [09/Aug/2022 22:49:08] "GET /dashboard HTTP/1.1" 200 -
[INFO] 192.168.0.40 - - [09/Aug/2022 22:49:08] "GET /dashboard-domains?draw=1&columns%5B0%5D%5Bdata%5D=0&columns%5B0%5D%5Bname%5D=&columns%5B0%5D%5Bsearchable%5D=true&columns%5B0%5D%5Borderable%5D=true&columns%5B0%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B0%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B1%5D%5Bdata%5D=1&columns%5B1%5D%5Bname%5D=&columns%5B1%5D%5Bsearchable%5D=true&columns%5B1%5D%5Borderable%5D=true&columns%5B1%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B1%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B2%5D%5Bdata%5D=2&columns%5B2%5D%5Bname%5D=&columns%5B2%5D%5Bsearchable%5D=true&columns%5B2%5D%5Borderable%5D=true&columns%5B2%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B2%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B3%5D%5Bdata%5D=3&columns%5B3%5D%5Bname%5D=&columns%5B3%5D%5Bsearchable%5D=true&columns%5B3%5D%5Borderable%5D=true&columns%5B3%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B3%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B4%5D%5Bdata%5D=4&columns%5B4%5D%5Bname%5D=&columns%5B4%5D%5Bsearchable%5D=true&columns%5B4%5D%5Borderable%5D=true&columns%5B4%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B4%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B5%5D%5Bdata%5D=5&columns%5B5%5D%5Bname%5D=&columns%5B5%5D%5Bsearchable%5D=true&columns%5B5%5D%5Borderable%5D=true&columns%5B5%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B5%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B6%5D%5Bdata%5D=6&columns%5B6%5D%5Bname%5D=&columns%5B6%5D%5Bsearchable%5D=true&columns%5B6%5D%5Borderable%5D=false&columns%5B6%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B6%5D%5Bsearch%5D%5Bregex%5D=false&order%5B0%5D%5Bcolumn%5D=0&order%5B0%5D%5Bdir%5D=asc&start=0&length=10&search%5Bvalue%5D=&search%5Bregex%5D=false&_=1660085348917 HTTP/1.1" 200 -

docker build fail. libxmlsec1-dev (missing)


ERROR: unsatisfiable constraints:
  .build-deps-0:
    masked in: cache
    satisfies: world[.build-deps]
  libxmlsec1-dev (missing):
    required by:
The command '/bin/sh -c apk --update add --no-cache --virtual .build-deps     git     gcc     musl-dev     python-dev     mariadb-dev     py-pip     libffi-dev     libxslt-dev     libxmlsec1-dev     openldap-dev' returned a non-zero code: 2

PowerAdmin is not reachable

Can not access PowerAdmin webui. Seems, that the poweradmin is not correctly installed?
Using latest: julianxhokaxhiu/docker-powerdns:latest-armv6 on raspberry pi 3 model b

sed: /usr/share/webapps/powerdns-admin/config.py: Not a directory,
/root/init.sh: line 41: cd: /usr/share/webapps/powerdns-admin: Not a directory,
/root/init.sh: line 43: flask: command not found,
/root/init.sh: line 44: flask: command not found,
/root/init.sh: line 45: flask: command not found,
Error: no such table: setting,
Error: no such table: setting,
2018-10-21 11:49:16,131 CRIT Supervisor running as root (no user in config file),
2018-10-21 11:49:16,131 CRIT Supervisor running as root (no user in config file),
2018-10-21 11:49:16,138 INFO supervisord started with pid 53,
2018-10-21 11:49:16,138 INFO supervisord started with pid 53,
2018-10-21 11:49:17,142 INFO spawnerr: can't find command '/usr/share/webapps/powerdns-admin/run.py',
2018-10-21 11:49:17,142 INFO spawnerr: can't find command '/usr/share/webapps/powerdns-admin/run.py',
2018-10-21 11:49:17,148 INFO spawned: 'pdns_server' with pid 56,
2018-10-21 11:49:17,148 INFO spawned: 'pdns_server' with pid 56,
2018-10-21 11:49:17,157 INFO spawned: 'pdns_recursor' with pid 57,
2018-10-21 11:49:17,157 INFO spawned: 'pdns_recursor' with pid 57,
2018-10-21 11:49:17,165 INFO spawned: 'crond' with pid 58,
2018-10-21 11:49:17,165 INFO spawned: 'crond' with pid 58,
crond: crond (busybox 1.27.2) started, log level 0,
crond: user:root entry:*/15 * * * * run-parts /etc/periodic/15min,
100000000000000100000000000000100000000000000100000000000000,
111111111111111111111111,
11111111111111111111111111111111,�
111111111111,
1111111,
crond: user:root entry:0 * * * * run-parts /etc/periodic/hourly,
100000000000000000000000000000000000000000000000000000000000,
111111111111111111111111,
11111111111111111111111111111111,�
111111111111,
1111111,
crond: user:root entry:0 2 * * * run-parts /etc/periodic/daily,
100000000000000000000000000000000000000000000000000000000000,
001000000000000000000000,
11111111111111111111111111111111,�
111111111111,
1111111,
crond: user:root entry:0 3 * * 6 run-parts /etc/periodic/weekly,
100000000000000000000000000000000000000000000000000000000000,
000100000000000000000000,
11111111111111111111111111111111,�
111111111111,
0000001,
crond: user:root entry:0 5 1 * * run-parts /etc/periodic/monthly,
100000000000000000000000000000000000000000000000000000000000,
000001000000000000000000,
01000000000000000000000000000000,�
111111111111,
1111111,
Oct 21 11:49:17 UDP server bound to 127.0.0.1:5353,
Oct 21 11:49:17 Unable to bind to UDPv6 socket ::1: Address not available,
Oct 21 11:49:17 Fatal error: Unable to bind to UDPv6 socket,
2018-10-21 11:49:17,236 INFO exited: pdns_server (exit status 1; not expected),
2018-10-21 11:49:17,236 INFO exited: pdns_server (exit status 1; not expected),
Oct 21 11:49:17 PowerDNS Recursor 4.0.7 (C) 2001-2017 PowerDNS.COM BV,
Oct 21 11:49:17 Using 32-bits mode. Built using gcc 6.4.0 on Dec 15 2017 14:05:13 by [email protected].,
Oct 21 11:49:17 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.,
Oct 21 11:49:17 Reading random entropy from '/dev/urandom',
Oct 21 11:49:17 If using IPv6, please raise sysctl net.ipv6.route.max_size, currently set to 4096 which is < 16384,
Oct 21 11:49:17 Enabling IPv6 transport for outgoing queries,
Oct 21 11:49:17 Only allowing queries from: 127.0.0.1, ::1/128,
Oct 21 11:49:17 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, ::ffff:0:0/96, 100::/64, 2001:db8::/32, 0.0.0.0, ::,
Oct 21 11:49:17 PowerDNS Recursor itself will distribute queries over threads,
Oct 21 11:49:17 Redirecting queries for zone '.' with recursion to: 127.0.0.1:5353, [::1]:5353, 8.8.8.8:53, 8.8.4.4:53, [2001:4860:4860::8888]:53, [2001:4860:4860::8844]:53,
Oct 21 11:49:17 Inserting forward zone 'localhost' based on hosts file,
Oct 21 11:49:17 Inserting reverse zone '1.0.0.127.in-addr.arpa' based on hosts file,
Oct 21 11:49:17 Inserting forward zone 'fbf227420d7d' based on hosts file,
Oct 21 11:49:17 Inserting reverse zone '9.0.17.172.in-addr.arpa' based on hosts file,
Oct 21 11:49:17 Listening for UDP queries on 0.0.0.0:53,
Oct 21 11:49:17 Listening for UDP queries on [::]:53,
Oct 21 11:49:17 Enabled TCP data-ready filter for (slight) DoS protection,
Oct 21 11:49:17 Listening for TCP queries on 0.0.0.0:53,
Oct 21 11:49:17 Listening for TCP queries on [::]:53,
Oct 21 11:49:17 Set effective group id to 65534,
Oct 21 11:49:17 Set effective user id to 65534,
Oct 21 11:49:17 Launching 3 threads,
Oct 21 11:49:17 Done priming cache with root hints,
Oct 21 11:49:17 Done priming cache with root hints,
Oct 21 11:49:17 Enabled 'epoll' multiplexer,
Oct 21 11:49:17 Done priming cache with root hints,
Oct 21 11:49:17 .: Wants DNSSEC processing in query for NS,
Oct 21 11:49:17 .: No cache hit for '.|NS', trying to find an appropriate NS record,
Oct 21 11:49:17 .: Cache consultations done, have 1 NS to contact,
Oct 21 11:49:17 .: Nameservers: (0.00ms),
Oct 21 11:49:17 .: Domain has hardcoded nameservers,
Oct 21 11:49:17 .: Wants DNSSEC processing in query for NS,
Oct 21 11:49:17 .: Resolved '.' NS (empty) to: 127.0.0.1, ::1, 8.8.8.8, 8.8.4.4, 2001:4860:4860::8888, 2001:4860:4860::8844,
Oct 21 11:49:17 .: No cache hit for '.|NS', trying to find an appropriate NS record,
Oct 21 11:49:17 .: Trying IP 127.0.0.1:5353, asking '.|NS',
Oct 21 11:49:17 .: Cache consultations done, have 1 NS to contact,
Oct 21 11:49:17 .: Nameservers: (0.00ms),
Oct 21 11:49:17 .: Domain has hardcoded nameservers,
Oct 21 11:49:17 .: Resolved '.' NS (empty) to: 127.0.0.1, ::1, 8.8.8.8, 8.8.4.4, 2001:4860:4860::8888, 2001:4860:4860::8844,
Oct 21 11:49:17 .: Trying IP 127.0.0.1:5353, asking '.|NS',
Oct 21 11:49:17 .: error resolving from 127.0.0.1, possible error: Connection refused,
Oct 21 11:49:17 .: Trying IP [::1]:5353, asking '.|NS',
Oct 21 11:49:17 .: error resolving from 127.0.0.1, possible error: Connection refused,
Oct 21 11:49:17 .: error resolving from ::1, possible error: Address not available,
Oct 21 11:49:17 .: Trying IP [::1]:5353, asking '.|NS',
Oct 21 11:49:17 .: Trying IP 8.8.8.8:53, asking '.|NS',
Oct 21 11:49:17 .: error resolving from ::1, possible error: Address not available,
Oct 21 11:49:17 .: Trying IP 8.8.8.8:53, asking '.|NS',
Oct 21 11:49:17 .: Wants DNSSEC processing in query for NS,
Oct 21 11:49:17 .: No cache hit for '.|NS', trying to find an appropriate NS record,
Oct 21 11:49:17 .: Cache consultations done, have 1 NS to contact,
Oct 21 11:49:17 .: Nameservers: (0.00ms),
Oct 21 11:49:17 .: Domain has hardcoded nameservers,
Oct 21 11:49:17 .: Resolved '.' NS (empty) to: 127.0.0.1, ::1, 8.8.8.8, 8.8.4.4, 2001:4860:4860::8888, 2001:4860:4860::8844,
Oct 21 11:49:17 .: Trying IP 127.0.0.1:5353, asking '.|NS',
Oct 21 11:49:17 .: error resolving from 127.0.0.1, possible error: Connection refused,
Oct 21 11:49:17 .: Trying IP [::1]:5353, asking '.|NS',
Oct 21 11:49:17 .: error resolving from ::1, possible error: Address not available,
Oct 21 11:49:17 .: Trying IP 8.8.8.8:53, asking '.|NS',
Oct 21 11:49:17 .: Got 15 answers from (empty) (8.8.8.8), rcode=0 (No Error), aa=0, in 28ms,
Oct 21 11:49:17 .: accept answer '.|NS|m.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|b.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|c.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|d.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|e.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|f.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|g.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|h.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|i.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|a.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|j.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|k.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|l.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|RRSIG|NS 8 0 518400 20181031170000 20181018160000 2134 . r1WdpCddIsge5HOjYdFL1X3yun+BkYpJ4Dbmlj2W4cIqZAZgoeDtuzs+txxcQG46u4u5beia+I/vkFG9h2y7MYlizGDbU7Umv8GRcdtYwHnkpNHIucBqwpi71g/2Q05GK8uKKB51JuWF6LWxeyIH49xzPIyPQ3QJIZFTIk2DqtmJ2l+RccrF8y3/p3ObUMytMm5WHiCYXHpJVWKGwENFK+Bj1TF56Z9am5/KwdhH9ycPS/85G1e1F3ErJG6IS3LV9tTMM1PkSxvca8JrLeRLL4gCryVdgwnQjHYTiH4LAYLSBO/0+4IL3yYncabLfGwUGrxFwcHncPPzmK1EK2BvXA==' from '.' nameservers? 1 RRSIG - separate,
Oct 21 11:49:17 .: OPT answer '.' from '.' nameservers,
Oct 21 11:49:17 .: determining status after receiving this packet,
Oct 21 11:49:17 .: answer is in: resolved to 'm.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'b.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'c.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'd.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'e.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'f.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'g.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'h.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'i.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'a.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'j.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'k.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'l.root-servers.net.|NS',
Oct 21 11:49:17 .: status=got results, this level of recursion done,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: Wants DNSSEC processing in query for TXT,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: Looking for CNAME cache hit of 'recursor-4.0.7.security-status.secpoll.powerdns.com|CNAME',
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: No CNAME cache hit of 'recursor-4.0.7.security-status.secpoll.powerdns.com|CNAME' found,
Oct 21 11:49:17 .: Got 15 answers from (empty) (8.8.8.8), rcode=0 (No Error), aa=0, in 33ms,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: No cache hit for 'recursor-4.0.7.security-status.secpoll.powerdns.com|TXT', trying to find an appropriate NS record,
Oct 21 11:49:17 .: accept answer '.|NS|a.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: Cache consultations done, have 1 NS to contact,
Oct 21 11:49:17 .: accept answer '.|NS|h.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com.: Nameservers: (28.17ms),
Oct 21 11:49:17 .: accept answer '.|NS|j.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: Domain has hardcoded nameservers,
Oct 21 11:49:17 .: accept answer '.|NS|m.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: Resolved '.' NS (empty) to: 127.0.0.1, ::1, 8.8.8.8, 8.8.4.4, 2001:4860:4860::8888, 2001:4860:4860::8844,
Oct 21 11:49:17 .: accept answer '.|NS|k.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: Trying IP 127.0.0.1:5353, asking 'recursor-4.0.7.security-status.secpoll.powerdns.com|TXT',
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: error resolving from 127.0.0.1, possible error: Connection refused,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: Trying IP [::1]:5353, asking 'recursor-4.0.7.security-status.secpoll.powerdns.com|TXT',
Oct 21 11:49:17 .: accept answer '.|NS|l.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|b.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|c.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|d.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|f.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|e.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: error resolving from ::1, possible error: Address not available,
Oct 21 11:49:17 .: accept answer '.|NS|i.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|g.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: Trying IP 8.8.8.8:53, asking 'recursor-4.0.7.security-status.secpoll.powerdns.com|TXT',
Oct 21 11:49:17 .: Got 15 answers from (empty) (8.8.8.8), rcode=0 (No Error), aa=0, in 33ms,
Oct 21 11:49:17 .: accept answer '.|NS|c.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|h.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|j.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|g.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|e.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|d.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|b.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|l.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|f.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|m.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|a.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|k.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|NS|i.root-servers.net.' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 .: accept answer '.|RRSIG|NS 8 0 518400 20181102050000 20181020040000 2134 . fHIwQyUlExxizZnpjdRVCWoLPjCPu/AV7BkYdxXzE3psvN1COGFMkoiCQUqSRjc0WaCsNmDEXvXMeiz8Qv0TSF0EF2xXZG6I3Eocrp3PqKy1RLcLYQBSB+3FgOyM6YV094eZo3ECgUKg+tkvvF+WOCm0ZKzIZqdA0eLPyisnxuFWMsP8+GeQ6tWPn5JP6eISZc48URz8vVgBYibe/cJYodaMO5L/WmGc/GCT+IVxhJ1eidcwNBEL1lT6ANumwLisHg+VyskpoX2juTLDD5lxzLMWlW6n33u5ZszM1qfjtm/DCJ5MP132d1g/4XKnBwJCr6srhOQ9bQhvbuz9Ox7X5Q==' from '.' nameservers? 1 RRSIG - separate,
Oct 21 11:49:17 .: OPT answer '.' from '.' nameservers,
Oct 21 11:49:17 .: determining status after receiving this packet,
Oct 21 11:49:17 .: answer is in: resolved to 'a.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'h.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'j.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'm.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'k.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'l.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'b.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'c.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'd.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'f.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'e.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'i.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'g.root-servers.net.|NS',
Oct 21 11:49:17 .: status=got results, this level of recursion done,
Oct 21 11:49:17 .: accept answer '.|RRSIG|NS 8 0 518400 20181102050000 20181020040000 2134 . fHIwQyUlExxizZnpjdRVCWoLPjCPu/AV7BkYdxXzE3psvN1COGFMkoiCQUqSRjc0WaCsNmDEXvXMeiz8Qv0TSF0EF2xXZG6I3Eocrp3PqKy1RLcLYQBSB+3FgOyM6YV094eZo3ECgUKg+tkvvF+WOCm0ZKzIZqdA0eLPyisnxuFWMsP8+GeQ6tWPn5JP6eISZc48URz8vVgBYibe/cJYodaMO5L/WmGc/GCT+IVxhJ1eidcwNBEL1lT6ANumwLisHg+VyskpoX2juTLDD5lxzLMWlW6n33u5ZszM1qfjtm/DCJ5MP132d1g/4XKnBwJCr6srhOQ9bQhvbuz9Ox7X5Q==' from '.' nameservers? 1 RRSIG - separate,
Oct 21 11:49:17 .: OPT answer '.' from '.' nameservers,
Oct 21 11:49:17 .: determining status after receiving this packet,
Oct 21 11:49:17 .: answer is in: resolved to 'c.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'h.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'j.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'g.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'e.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'd.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'b.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'l.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'f.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'm.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'a.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'k.root-servers.net.|NS',
Oct 21 11:49:17 .: answer is in: resolved to 'i.root-servers.net.|NS',
Oct 21 11:49:17 .: status=got results, this level of recursion done,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: Got 3 answers from (empty) (8.8.8.8), rcode=0 (No Error), aa=0, in 46ms,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: accept answer 'recursor-4.0.7.security-status.secpoll.powerdns.com|TXT|"3 Upgrade now, see https://doc.powerdns.com/recursor/security-advisories/powerdns-advisory-2017-08.html"' from '.' nameservers? 1 YES! - This answer was received from a server we forward to.,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: accept answer 'recursor-4.0.7.security-status.secpoll.powerdns.com|RRSIG|TXT 13 7 60 20181101000000 20181011000000 30186 secpoll.powerdns.com. xywLH3ly9jQ3dMH3Tf/8qVdFb/QnkXnF6G6mAiwU/+vump6PYnFfveWGYMCy2MbgllPPptgO1T73bb6BSJ8T5A==' from '.' nameservers? 1 RRSIG - separate,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: OPT answer '.' from '.' nameservers,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: determining status after receiving this packet,
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: answer is in: resolved to '"3 Upgrade now, see https://doc.powerdns.com/recursor/security-advisories/powerdns-advisory-2017-08.html"|TXT',
Oct 21 11:49:17 recursor-4.0.7.security-status.secpoll.powerdns.com: status=got results, this level of recursion done,
Oct 21 11:49:17 PowerDNS Security Update Mandatory: Upgrade now, see https://doc.powerdns.com/recursor/security-advisories/powerdns-advisory-2017-08.html,
2018-10-21 11:49:18,898 INFO spawnerr: can't find command '/usr/share/webapps/powerdns-admin/run.py',
2018-10-21 11:49:18,898 INFO spawnerr: can't find command '/usr/share/webapps/powerdns-admin/run.py',
2018-10-21 11:49:18,902 INFO spawned: 'pdns_server' with pid 62,
2018-10-21 11:49:18,902 INFO spawned: 'pdns_server' with pid 62,
2018-10-21 11:49:18,903 INFO success: pdns_recursor entered RUNNING state, process has stayed up for > than 1 seconds (startsecs),
2018-10-21 11:49:18,903 INFO success: pdns_recursor entered RUNNING state, process has stayed up for > than 1 seconds (startsecs),
2018-10-21 11:49:18,904 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs),
2018-10-21 11:49:18,904 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs),
Oct 21 11:49:18 UDP server bound to 127.0.0.1:5353,
Oct 21 11:49:18 Unable to bind to UDPv6 socket ::1: Address not available,
Oct 21 11:49:18 Fatal error: Unable to bind to UDPv6 socket,
2018-10-21 11:49:18,955 INFO exited: pdns_server (exit status 1; not expected),
2018-10-21 11:49:18,955 INFO exited: pdns_server (exit status 1; not expected),

Unable to start using docker

Hi,
The following docker-compose config results in the below log:

  powerdns:
    container_name: powerdns
    depends_on:
      - caddy
    deploy:
      resources:
        limits:
          cpus: '2'
          memory: 512M
        reservations:
          cpus: '0.5'
          memory: 160M
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 60s
    networks:
      - caddy
      - default
    volumes:
      - '/var/docker/volumes/powerdns:/srv/data'
    environment:
      - CUSTOM_DNS=1.1.1.1;1.0.0.1"
      - ENABLE_ADBLOCK=false
    image: julianxhokaxhiu/docker-powerdns
    expose:
      - 53
      - 53/udp
      - 8080
Oct 20 21:15:58 UDP server bound to 127.0.0.1:5353
Oct 20 21:15:58 Unable to bind to UDPv6 socket ::1: Address not available
Oct 20 21:15:58 PowerDNS Recursor 4.1.4 (C) 2001-2018 PowerDNS.COM BV
Oct 20 21:15:58 Using 64-bits mode. Built using gcc 6.4.0 on Sep 12 2018 22:16:01 by buildozer@build-edge-x86_64.
Oct 20 21:15:58 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Oct 20 21:15:58 Reading random entropy from '/dev/urandom'
Oct 20 21:15:58 If using IPv6, please raise sysctl net.ipv6.route.max_size, currently set to 4096 which is < 16384
Oct 20 21:15:58 Enabling IPv6 transport for outgoing queries
Oct 20 21:15:58 Only allowing queries from: 127.0.0.1, ::1/128
Oct 20 21:15:58 Fatal error: Unable to bind to UDPv6 socket
2021-10-20 21:15:58,821 INFO exited: pdns_server (exit status 1; not expected)
2021-10-20 21:15:58,821 INFO exited: pdns_server (exit status 1; not expected)
Oct 20 21:15:58 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, ::ffff:0:0/96, 100::/64, 2001:db8::/32, 0.0.0.0, ::
Oct 20 21:15:58 PowerDNS Recursor itself will distribute queries over threads
Oct 20 21:15:58 Redirecting queries for zone '.' with recursion to: 127.0.0.1:5353, [::1]:5353, 1.1.1.1:53, Exception: Unable to convert presentation address '1.0.0.1"'
2021-10-20 21:15:58,879 INFO exited: pdns_recursor (exit status 1; not expected)
2021-10-20 21:15:58,879 INFO exited: pdns_recursor (exit status 1; not expected)
2021-10-20 21:15:59,883 INFO success: powerdnsadmin entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-10-20 21:15:59,883 INFO success: powerdnsadmin entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-10-20 21:15:59,884 INFO spawned: 'pdns_server' with pid 57
2021-10-20 21:15:59,884 INFO spawned: 'pdns_server' with pid 57
2021-10-20 21:15:59,886 INFO spawned: 'pdns_recursor' with pid 58
2021-10-20 21:15:59,886 INFO spawned: 'pdns_recursor' with pid 58
2021-10-20 21:15:59,887 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-10-20 21:15:59,887 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Oct 20 21:15:59 UDP server bound to 127.0.0.1:5353
Oct 20 21:15:59 Unable to bind to UDPv6 socket ::1: Address not available
Oct 20 21:15:59 PowerDNS Recursor 4.1.4 (C) 2001-2018 PowerDNS.COM BV
Oct 20 21:15:59 Using 64-bits mode. Built using gcc 6.4.0 on Sep 12 2018 22:16:01 by buildozer@build-edge-x86_64.
Oct 20 21:15:59 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Oct 20 21:15:59 Reading random entropy from '/dev/urandom'
Oct 20 21:15:59 If using IPv6, please raise sysctl net.ipv6.route.max_size, currently set to 4096 which is < 16384
Oct 20 21:15:59 Enabling IPv6 transport for outgoing queries
Oct 20 21:15:59 Only allowing queries from: 127.0.0.1, ::1/128
Oct 20 21:15:59 Fatal error: Unable to bind to UDPv6 socket
2021-10-20 21:15:59,957 INFO exited: pdns_server (exit status 1; not expected)
2021-10-20 21:15:59,957 INFO exited: pdns_server (exit status 1; not expected)
Oct 20 21:15:59 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, ::ffff:0:0/96, 100::/64, 2001:db8::/32, 0.0.0.0, ::
Oct 20 21:15:59 PowerDNS Recursor itself will distribute queries over threads
Oct 20 21:16:00 Redirecting queries for zone '.' with recursion to: 127.0.0.1:5353, [::1]:5353, 1.1.1.1:53, Exception: Unable to convert presentation address '1.0.0.1"'
2021-10-20 21:16:00,019 INFO exited: pdns_recursor (exit status 1; not expected)
2021-10-20 21:16:00,019 INFO exited: pdns_recursor (exit status 1; not expected)
 * Tip: There are .env files present. Do "pip install python-dotenv" to use them.
 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: on
[INFO]  * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
[INFO]  * Restarting with stat
crond: user:root entry:*/15     *       *       *       *       run-parts /etc/periodic/15min
100000000000000100000000000000100000000000000100000000000000
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: user:root entry:0        *       *       *       *       run-parts /etc/periodic/hourly
100000000000000000000000000000000000000000000000000000000000
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: user:root entry:0        2       *       *       *       run-parts /etc/periodic/daily
100000000000000000000000000000000000000000000000000000000000
001000000000000000000000
11111111111111111111111111111111
111111111111
1111111
crond: user:root entry:0        3       *       *       6       run-parts /etc/periodic/weekly
100000000000000000000000000000000000000000000000000000000000
000100000000000000000000
11111111111111111111111111111111
111111111111
0000001
crond: user:root entry:0        5       1       *       *       run-parts /etc/periodic/monthly
100000000000000000000000000000000000000000000000000000000000
000001000000000000000000
01000000000000000000000000000000
111111111111
1111111
crond: wakeup dt=2
crond: file root:
crond:  line run-parts /etc/periodic/15min
crond:  line run-parts /etc/periodic/hourly
crond:  line run-parts /etc/periodic/daily
crond:  line run-parts /etc/periodic/weekly
crond:  line run-parts /etc/periodic/monthly
 * Tip: There are .env files present. Do "pip install python-dotenv" to use them.
[WARNING]  * Debugger is active!
[INFO]  * Debugger PIN: 143-471-233
2021-10-20 21:16:02,828 INFO spawned: 'pdns_server' with pid 64
2021-10-20 21:16:02,828 INFO spawned: 'pdns_server' with pid 64
2021-10-20 21:16:02,830 INFO spawned: 'pdns_recursor' with pid 65
2021-10-20 21:16:02,830 INFO spawned: 'pdns_recursor' with pid 65
Oct 20 21:16:02 UDP server bound to 127.0.0.1:5353
Oct 20 21:16:02 Unable to bind to UDPv6 socket ::1: Address not available
Oct 20 21:16:02 PowerDNS Recursor 4.1.4 (C) 2001-2018 PowerDNS.COM BV
Oct 20 21:16:02 Using 64-bits mode. Built using gcc 6.4.0 on Sep 12 2018 22:16:01 by buildozer@build-edge-x86_64.
Oct 20 21:16:02 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Oct 20 21:16:02 Reading random entropy from '/dev/urandom'
Oct 20 21:16:02 If using IPv6, please raise sysctl net.ipv6.route.max_size, currently set to 4096 which is < 16384
Oct 20 21:16:02 Enabling IPv6 transport for outgoing queries
Oct 20 21:16:02 Only allowing queries from: 127.0.0.1, ::1/128
Oct 20 21:16:02 Fatal error: Unable to bind to UDPv6 socket
2021-10-20 21:16:02,875 INFO exited: pdns_server (exit status 1; not expected)
2021-10-20 21:16:02,875 INFO exited: pdns_server (exit status 1; not expected)
Oct 20 21:16:02 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, ::ffff:0:0/96, 100::/64, 2001:db8::/32, 0.0.0.0, ::
Oct 20 21:16:02 PowerDNS Recursor itself will distribute queries over threads
Oct 20 21:16:02 Redirecting queries for zone '.' with recursion to: 127.0.0.1:5353, [::1]:5353, 1.1.1.1:53, Exception: Unable to convert presentation address '1.0.0.1"'
2021-10-20 21:16:02,952 INFO exited: pdns_recursor (exit status 1; not expected)
2021-10-20 21:16:02,952 INFO exited: pdns_recursor (exit status 1; not expected)
2021-10-20 21:16:05,959 INFO spawned: 'pdns_server' with pid 66
2021-10-20 21:16:05,959 INFO spawned: 'pdns_server' with pid 66
2021-10-20 21:16:05,961 INFO spawned: 'pdns_recursor' with pid 67
2021-10-20 21:16:05,961 INFO spawned: 'pdns_recursor' with pid 67
Oct 20 21:16:05 UDP server bound to 127.0.0.1:5353
Oct 20 21:16:05 Unable to bind to UDPv6 socket ::1: Address not available
Oct 20 21:16:05 PowerDNS Recursor 4.1.4 (C) 2001-2018 PowerDNS.COM BV
Oct 20 21:16:05 Using 64-bits mode. Built using gcc 6.4.0 on Sep 12 2018 22:16:01 by buildozer@build-edge-x86_64.
Oct 20 21:16:05 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Oct 20 21:16:05 Reading random entropy from '/dev/urandom'
Oct 20 21:16:05 If using IPv6, please raise sysctl net.ipv6.route.max_size, currently set to 4096 which is < 16384
Oct 20 21:16:05 Enabling IPv6 transport for outgoing queries
Oct 20 21:16:05 Only allowing queries from: 127.0.0.1, ::1/128
Oct 20 21:16:06 Fatal error: Unable to bind to UDPv6 socket
2021-10-20 21:16:06,010 INFO exited: pdns_server (exit status 1; not expected)
2021-10-20 21:16:06,010 INFO exited: pdns_server (exit status 1; not expected)
Oct 20 21:16:06 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, ::ffff:0:0/96, 100::/64, 2001:db8::/32, 0.0.0.0, ::2021-10-20 21:16:06,025 INFO gave up: pdns_server entered FATAL state, too many start retries too quickly
2021-10-20 21:16:06,025 INFO gave up: pdns_server entered FATAL state, too many start retries too quickly

Oct 20 21:16:06 PowerDNS Recursor itself will distribute queries over threads
Oct 20 21:16:06 Redirecting queries for zone '.' with recursion to: 127.0.0.1:5353, [::1]:5353, 1.1.1.1:53, Exception: Unable to convert presentation address '1.0.0.1"'
2021-10-20 21:16:06,049 INFO exited: pdns_recursor (exit status 1; not expected)
2021-10-20 21:16:06,049 INFO exited: pdns_recursor (exit status 1; not expected)
2021-10-20 21:16:07,051 INFO gave up: pdns_recursor entered FATAL state, too many start retries too quickly
2021-10-20 21:16:07,051 INFO gave up: pdns_recursor entered FATAL state, too many start retries too quickly

It seems that it's trying to bind to ipv6, which I am generally not using in my networks. Can I disable that on this container? Also, am I doing something else wrong?

Browser access poweradmin error

pdns_1  | Sep 25 05:15:37 [1] dropping UDP query from 10.150.60.129, address not matched by allow-from
pdns_1  | Sep 25 05:15:37 [1] dropping UDP query from 10.150.60.129, address not matched by allow-from
pdns_1  | Sep 25 05:15:38 [1] dropping UDP query from 10.150.60.90, address not matched by allow-from
pdns_1  | [INFO] 10.150.30.99 - - [25/Sep/2018 05:15:38] "GET / HTTP/1.1" 500 -
pdns_1  | Traceback (most recent call last):
pdns_1  |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
pdns_1  |     return self.wsgi_app(environ, start_response)
pdns_1  |   File "/usr/lib/python3.6/site-packages/werkzeug/contrib/fixers.py", line 152, in __call__
pdns_1  |     return self.app(environ, start_response)
pdns_1  |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
pdns_1  |     response = self.handle_exception(e)
pdns_1  |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception
pdns_1  |     reraise(exc_type, exc_value, tb)
pdns_1  |   File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
pdns_1  |     raise value
pdns_1  |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
pdns_1  |     response = self.full_dispatch_request()
pdns_1  |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1808, in full_dispatch_request
pdns_1  |     self.try_trigger_before_first_request_functions()
pdns_1  |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1855, in try_trigger_before_first_request_functions
pdns_1  |     func()
pdns_1  |   File "/usr/share/webapps/powerdns-admin/app/views.py", line 55, in register_modules
pdns_1  |     google = google_oauth()
pdns_1  |   File "/usr/share/webapps/powerdns-admin/app/oauth.py", line 47, in google_oauth
pdns_1  |     if not Setting().get('google_oauth_enabled'):
pdns_1  |   File "/usr/share/webapps/powerdns-admin/app/models.py", line 1920, in get
pdns_1  |     result = self.query.filter(Setting.name == setting).first()
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2789, in first
pdns_1  |     ret = list(self[0:1])
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2581, in __getitem__
pdns_1  |     return list(res)
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2889, in __iter__
pdns_1  |     return self._execute_and_instances(context)
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2912, in _execute_and_instances
pdns_1  |     result = conn.execute(querycontext.statement, self._params)
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 948, in execute
pdns_1  |     return meth(self, multiparams, params)
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 269, in _execute_on_connection
pdns_1  |     return connection._execute_clauseelement(self, multiparams, params)
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1060, in _execute_clauseelement
pdns_1  |     compiled_sql, distilled_params
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context
pdns_1  |     context)
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception
pdns_1  |     exc_info
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
pdns_1  |     reraise(type(exception), exception, tb=exc_tb, cause=cause)
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 186, in reraise
pdns_1  |     raise value.with_traceback(tb)
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context
pdns_1  |     context)
pdns_1  |   File "/usr/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute
pdns_1  |     cursor.execute(statement, parameters)
pdns_1  | sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: setting [SQL: 'SELECT setting.id AS setting_id, setting.name AS setting_name, setting.value AS setting_value \nFROM setting \nWHERE setting.name = ?\n LIMIT ? OFFSET ?'] [parameters: ('google_oauth_enabled', 1, 0)] (Background on this error at: http://sqlalche.me/e/e3q8)
pdns_1  | [INFO] 10.150.30.99 - - [25/Sep/2018 05:15:41] "GET /?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
pdns_1  | [INFO] 10.150.30.99 - - [25/Sep/2018 05:15:41] "GET /?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
pdns_1  | [INFO] 10.150.30.99 - - [25/Sep/2018 05:15:41] "GET /?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
pdns_1  | [INFO] 10.150.30.99 - - [25/Sep/2018 05:15:42] "GET /?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
pdns_1  | [INFO] 10.150.30.99 - - [25/Sep/2018 05:15:43] "GET /?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
pdns_1  | [INFO] 10.150.30.99 - - [25/Sep/2018 05:15:43] "GET /?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
pdns_1  | Sep 25 05:15:51 [1] dropping UDP query from 10.150.20.7, address not matched by allow-from
pdns_1  | Sep 25 05:15:52 [1] dropping UDP query from 10.150.101.17, address not matched by allow-from
pdns_1  | Sep 25 05:15:55 [1] dropping UDP query from 10.150.60.164, address not matched by allow-from
pdns_1  | Sep 25 05:15:57 [1] dropping UDP query from 10.150.101.253, address not matched by allow-from
pdns_1  | Sep 25 05:15:57 [1] dropping UDP query from 10.150.10.9, address not matched by allow-from
pdns_1  | Sep 25 05:15:57 [1] dropping UDP query from 10.150.101.17, address not matched by allow-from

run error.

docker-compose.yml

version: "2"
services:
  pdns:
    image: julianxhokaxhiu/docker-powerdns
    restart: always
    ports:
    - "53:53"
    - "53:53/udp"
    - "80:8080"
    volumes:
    - /webserver/pdns/data:/srv/data


docker-compose logs -f

pdns_1  | Sep 19 01:17:42 PowerDNS Recursor 4.1.4 (C) 2001-2018 PowerDNS.COM BV
pdns_1  | Sep 19 01:17:42 Using 64-bits mode. Built using gcc 6.4.0 on Sep 12 2018 22:16:01 by buildozer@build-edge-x86_64.
pdns_1  | Sep 19 01:17:42 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
pdns_1  | Sep 19 01:17:42 Reading random entropy from '/dev/urandom'
pdns_1  | Sep 19 01:17:42 Enabling IPv6 transport for outgoing queries
pdns_1  | Sep 19 01:17:42 Only allowing queries from: 127.0.0.1, ::1/128
pdns_1  | Sep 19 01:17:42 Fatal error: Trying to set unknown parameter 'allow-recursion'
pdns_1  | 2018-09-19 01:17:42,610 INFO exited: pdns_server (exit status 1; not expected)
pdns_1  | 2018-09-19 01:17:42,610 INFO exited: pdns_server (exit status 1; not expected)
pdns_1  | Sep 19 01:17:42 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, ::ffff:0:0/96, 100::/64, 2001:db8::/32, 0.0.0.0, ::
pdns_1  | Sep 19 01:17:42 PowerDNS Recursor itself will distribute queries over threads
pdns_1  | Sep 19 01:17:42 Redirecting queries for zone '.' with recursion to: 222.222.222.222:53
pdns_1  | Sep 19 01:17:42 Inserting forward zone 'localhost' based on hosts file
pdns_1  | Sep 19 01:17:42 Inserting reverse zone '1.0.0.127.in-addr.arpa' based on hosts file
pdns_1  | Sep 19 01:17:42 Inserting forward zone '820e2194d91c' based on hosts file
pdns_1  | Sep 19 01:17:42 Inserting reverse zone '2.0.18.172.in-addr.arpa' based on hosts file
pdns_1  | Sep 19 01:17:42 Not decreasing socket buffer size from 8388608 to 250000
pdns_1  | Sep 19 01:17:42 Listening for UDP queries on 127.0.0.1:5353
pdns_1  | Sep 19 01:17:42 Not decreasing socket buffer size from 8388608 to 250000
pdns_1  | Sep 19 01:17:42 Exception: Resolver binding to server socket on port 5353 for ::1: Address not available
pdns_1  | 2018-09-19 01:17:42,642 INFO exited: pdns_recursor (exit status 1; not expected)
pdns_1  | 2018-09-19 01:17:42,642 INFO exited: pdns_recursor (exit status 1; not expected)
pdns_1  | 2018-09-19 01:17:43,645 INFO spawned: 'powerdnsadmin' with pid 57
pdns_1  | 2018-09-19 01:17:43,645 INFO spawned: 'powerdnsadmin' with pid 57
pdns_1  | 2018-09-19 01:17:43,647 INFO spawned: 'pdns_server' with pid 58
pdns_1  | 2018-09-19 01:17:43,647 INFO spawned: 'pdns_server' with pid 58
pdns_1  | 2018-09-19 01:17:43,650 INFO spawned: 'pdns_recursor' with pid 59
pdns_1  | 2018-09-19 01:17:43,650 INFO spawned: 'pdns_recursor' with pid 59
pdns_1  | 2018-09-19 01:17:43,651 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
pdns_1  | 2018-09-19 01:17:43,651 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
pdns_1  | env: can't execute 'python3': No such file or directory
pdns_1  | 2018-09-19 01:17:43,671 INFO exited: powerdnsadmin (exit status 127; not expected)
pdns_1  | 2018-09-19 01:17:43,671 INFO exited: powerdnsadmin (exit status 127; not expected)
pdns_1  | Sep 19 01:17:43 PowerDNS Recursor 4.1.4 (C) 2001-2018 PowerDNS.COM BV
pdns_1  | Sep 19 01:17:43 Using 64-bits mode. Built using gcc 6.4.0 on Sep 12 2018 22:16:01 by buildozer@build-edge-x86_64.
pdns_1  | Sep 19 01:17:43 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
pdns_1  | Sep 19 01:17:43 Reading random entropy from '/dev/urandom'
pdns_1  | Sep 19 01:17:43 Enabling IPv6 transport for outgoing queries
pdns_1  | Sep 19 01:17:43 Only allowing queries from: 127.0.0.1, ::1/128
pdns_1  | Sep 19 01:17:43 Fatal error: Trying to set unknown parameter 'allow-recursion'
pdns_1  | 2018-09-19 01:17:43,698 INFO exited: pdns_server (exit status 1; not expected)
pdns_1  | 2018-09-19 01:17:43,698 INFO exited: pdns_server (exit status 1; not expected)

pdns_1 | Sep 19 01:17:42 Fatal error: Trying to set unknown parameter 'allow-recursion'

pdns_1 | env: can't execute 'python3': No such file or directory
pdns_1 | 2018-09-19 01:17:43,671 INFO exited: powerdnsadmin (exit status 127; not expected)

Can not get API_Key working

I simply cannot get this to work.

I have used the latest image and built from the Dockerfile.

No matter what it appears the GUI cannot talk to the API.

I have changed the API_KEY in the pdns.conf file and rebuilt.

Always connection refused on port 8081.

exec into dockerfile and curl 127.0.0.1:8081 connection refused.

Amy I making a simple mistake with the key?

Port for Raspberry Pi 4

Hi,
could this be ported to Raspberry Pi 4? It looks very nice, but I get errors, when trying to run it as is, or when trying to build through docker build.

Found a fatal error

Tried to use a modified version of your administrator-powerdns-recursor docker package and ran into some problems. Went back to your setup and found the same fatal error. Reviewing the logs of the container showed: "Fatal: Unable to connect to remote '/var/run/pdns_recursor.controlsocket': No such file or directory." Went in separately via docker exec ... ls, and pdns_recursor.controlsocket is right where it should be...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.