unbound-docker icon indicating copy to clipboard operation
unbound-docker copied to clipboard

Unhealthy: Error: error sending query: Could not send or receive, because of network error

Open march5350 opened this issue 1 year ago • 1 comments

I run Unbound in combination with Pi-hole, both on Docker. Both run absolutly fine. My DNS request are handled by Unbound, which is setup in Pi-hole. But one thing that is bothering me is that Unbound keeps saying it is unhealthy. The error message is: "Error: error sending query: Could not send or receive, because of network error". Although it doesn't seem to impact the Unbound container, it is something that shouldn't be shown as far as I know.

Steps to reproduce the behavior:

  1. Docker Compose Files: Pi-hole: services: pihole: container_name: pihole image: "pihole/pihole:latest" ports:
    • "53:53/tcp"
    • "53:53/udp"
    • "8080:80/tcp" environment:
    • TZ=Europe/Amsterdam
    • PIHOLE_DNS_=10.8.1.5#5335 volumes:
    • "/home/chuwi/docker/pihole/pihole:/etc/pihole"
    • "/home/chuwi/docker/pihole/dnsmasq:/etc/dnsmasq.d" restart: unless-stopped networks: internal-network: ipv4_address: 10.8.1.2

networks: internal-network: name: internal-network attachable: true ipam: config: - subnet: 10.8.1.0/24

Unbound services: unbound: container_name: unbound image: "mvance/unbound:latest" ports: - "5335:53/tcp" - "5335:53/udp" volumes: - "/home/chuwi/docker/unbound/opt/unbound/etc/unbound:/opt/unbound/etc/unbound" restart: unless-stopped networks: internal-network: ipv4_address: 10.8.1.5

networks: internal-network: name: internal-network external: true

  1. Customizations (config files) Edited the following values in unbound.conf: interface: 0.0.0.0@5335 log-local-actions: yes log-queries: yes log-replies: yes log-servfail: yes logfile: /opt/unbound/etc/unbound/unbound.log

march5350 avatar Oct 31 '24 10:10 march5350