unbound errors on setup
I am trying to get this setup on rpi and have updated the docker image for unbound to use "mvance/unbound-rpi:latest" because I ran into issues during the setup.
unbound:
image: "mvance/unbound-rpi:latest"
container_name: unbound
restart: unless-stopped
hostname: "unbound"
privileged: true
volumes:
- "./unbound:/opt/unbound/etc/unbound/"
networks:
private_network:
ipv4_address: 10.2.0.200
During the setup I see the following errors:
unbound | [1629602752] libunbound[18:0] error: udp connect failed: Cannot assign requested address for 2001:503:ba3e::2:30 port 53
unbound | [1629602752] libunbound[18:0] error: udp connect failed: Cannot assign requested address for 2001:500:a8::e port 53
unbound | [1629602752] libunbound[18:0] error: udp connect failed: Cannot assign requested address for 2001:503:ba3e::2:30 port 53
unbound | [1629602753] libunbound[18:0] error: udp connect failed: Cannot assign requested address for 2001:500:1::53 port 53
unbound | [1629602753] libunbound[18:0] error: udp connect failed: Cannot assign requested address for 2001:7fd::1 port 53
unbound | /opt/unbound/etc/unbound/unbound.conf:293: error: cannot open include file '/opt/unbound/etc/unbound/a-records.conf': No such file or directory
unbound | /opt/unbound/etc/unbound/unbound.conf:294: error: cannot open include file '/opt/unbound/etc/unbound/srv-records.conf': No such file or directory
unbound | /opt/unbound/etc/unbound/unbound.conf:300: error: cannot open include file '/opt/unbound/etc/unbound/forward-records.conf': No such file or directory
unbound | read /opt/unbound/etc/unbound/unbound.conf failed: 3 errors in configuration file
unbound | [1629602753] unbound[1:0] fatal error: Could not read config file: /opt/unbound/etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf
unbound exited with code 1
I am not sure what to do to work around this. Any help would be great!
Same issue.
I believe its due to an update/repackaging of mvance/unbound.
Dirty temporary fix if to make the files yourself you can find them here
manually place them in the top directory ./unbound
I have the same issue. As i can understand, there is a problem in the unbound configuration. It listen at the same port of Pihole, 53, and this can't be. From the pihole guide ( https://docs.pi-hole.net/guides/dns/unbound/ ):
Configure unbound¶
Highlights:
Listen only for queries from the local Pi-hole installation (on port 5335)
My problem is that i don't know where i can find the configuration file and how to change appropriately. (in wirehole for docker the files are in other directories and changed) If anyone can prove or deny my idea, and of course help me in this process, i appreciate it. :)
@banphi It does listen on Port 53, but not on the same address. In this case, the pihole container takes DNS requests in 10.2.0.100#53 which then uses the unbound container as upstream at 10.2.0.200#53
I don't think the issue is a port clash