Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbound not binding to port? #205

Open
robinhood1596 opened this issue Apr 28, 2023 · 1 comment
Open

Unbound not binding to port? #205

robinhood1596 opened this issue Apr 28, 2023 · 1 comment

Comments

@robinhood1596
Copy link

Error-Message

[1682689361] unbound[94710:0] error: can't bind socket: Address already in use for 127.0.0.1 port 8953
[1682689361] unbound[94710:0] error: cannot open control interface 127.0.0.1 8953
[1682689361] unbound[94710:0] fatal error: could not open ports

DNSMASQ_LISTENING single
DNSMASQ_USER pihole
DNSSEC "true"
FTL_CMD no-daemon
FTLCONF_LOCAL_IPV4 192.168.178.36
IPv6 True
PATH /opt/pihole:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHP_ERROR_LOG /var/log/lighttpd/error-pihole.log
phpver php
PIHOLE_DNS_ 127.0.0.1#5335
REV_SERVER false
REV_SERVER_CIDR 192.168.0.0/16
REV_SERVER_DOMAIN local
REV_SERVER_TARGET 192.168.178.1
S6_BEHAVIOUR_IF_STAGE2_FAILS 2
S6_CMD_WAIT_FOR_SERVICES_MAXTIME 0
S6_KEEP_ENV 1
TZ Europe/Berlin

yaml-compose used for stack

version: '3.0'

volumes:
etc_pihole-unbound:
etc_pihole_dnsmasq-unbound:

services:
pihole:
container_name: pihole
image: cbcrowe/pihole-unbound:latest
hostname: ${HOSTNAME}
domainname: ${DOMAIN_NAME}
ports:
- 443:443/tcp
- 53:53/tcp
- 53:53/udp
- ${PIHOLE_WEBPORT:-80}:80/tcp #Allows use of different port to access pihole web interface when other docker containers use port 80
- 5335:5335/tcp # Uncomment to enable unbound access on local server
- 22/tcp # Uncomment to enable SSH
environment:
- FTLCONF_LOCAL_IPV4=${FTLCONF_LOCAL_IPV4}
- TZ=${TZ:-UTC}
- WEBPASSWORD=${WEBPASSWORD}
- WEBTHEME=${WEBTHEME:-default-light}
- REV_SERVER=${REV_SERVER:-false}
- REV_SERVER_TARGET=${REV_SERVER_TARGET}
- REV_SERVER_DOMAIN=${REV_SERVER_DOMAIN}
- REV_SERVER_CIDR=${REV_SERVER_CIDR}
- PIHOLE_DNS_=127.0.0.1#5335
- DNSSEC="true"
- DNSMASQ_LISTENING=single
volumes:
- etc_pihole-unbound:/etc/pihole:rw
- etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
restart: unless-stopped

@pluim003
Copy link

pluim003 commented May 5, 2023

This is also mentioned in NLnetLabs/unbound#252 and in an issue here before: #178 . First link might give a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants