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

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

Open
NAmRoD21v opened this issue Oct 31, 2024 · 1 comment

Comments

@NAmRoD21v
Copy link

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
@NAmRoD21v
Copy link
Author

Seems to be the same issue as #175. Solved by editing the healthcheck as described there. This issue can be closed.

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

1 participant