docker-powerdns
docker-powerdns copied to clipboard
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?