Hello everyone.
I must preface that I am new to unbound and… networking as a whole. Please bear with me.
I’m wanting to get a local DNS resolver for my home network only; I followed the docs up through “Resolver for home networks” and have reached a snag: when I attempt to query unbound from a remote computer, it seems to do nothing at all.
My configuration is as follows:
server:
access-control: 192.168.0.0/16 allow
auto-trust-anchor-file: /var/lib/unbound/root.key
chroot: ""
directory: /var/lib/unbound
do-daemonize: no
interface: 0.0.0.0
interface: ::0
ip-freebind: yes
log-queries: yes
log-replies: yes
log-time-ascii: yes
logfile: /etc/unbound/log/unbound.log
pidfile: ""
tls-cert-bundle: /nix/store/6jicmrdf574c4g25j1xpffa54m80z4bv-nss-cacert-3.121/etc/ssl/certs/ca-bundle.crt
username: ""
remote-control:
control-cert-file: /var/lib/unbound/unbound_control.pem
control-enable: yes
control-interface: 127.0.0.1
control-interface: ::1
control-key-file: /var/lib/unbound/unbound_control.key
server-cert-file: /var/lib/unbound/unbound_server.pem
server-key-file: /var/lib/unbound/unbound_server.key
I’m pretty sure that my local network is on 192.168/16, and the computer I’m trying to query from has a local ip of “192.168.7.147”. The computer which hosts unbound has a local ip of “192.168.7.204” (as determined by hostname --all-ip-addresses), so I try to test it, as per the documentation, with: dig gentoo.org @192.168.7.204. The output I get is as follows:
;; communications error to 192.168.7.204#53: timed out
;; communications error to 192.168.7.204#53: timed out
;; communications error to 192.168.7.204#53: timed out
; <<>> DiG 9.20.22 <<>> gentoo.org @192.168.7.204
;; global options: +cmd
;; no servers could be reached
I looked at unbound logs and it looks like it’s not even acknowledging the attempt (in other words, nothing new is logged after running the above dig command).
I’m fairly certain that I’m making some simple error somewhere but I really have no idea what it is exactly (because I’m new to this kind of stuff). Does anyone have any suggestions ?