From c7524136c548ea829d78756d024bc909ab39b451 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Sat, 6 Jun 2026 11:19:35 -0400 Subject: [PATCH] Add access-control-view directive so that queries on localhost use the lan view. --- .../config/usr/local/etc/unbound/unbound.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/devices/cranberrypi/config/usr/local/etc/unbound/unbound.conf b/devices/cranberrypi/config/usr/local/etc/unbound/unbound.conf index d3a101c..7fd4310 100644 --- a/devices/cranberrypi/config/usr/local/etc/unbound/unbound.conf +++ b/devices/cranberrypi/config/usr/local/etc/unbound/unbound.conf @@ -15,7 +15,13 @@ prefetch: yes serve-expired: yes # the interface that is used to connect to the network (this will listen to all interfaces) - interface: 0.0.0.0 + # interface: 0.0.0.0 + interface: 192.168.88.92 + interface: 192.168.88.8 + interface: 127.0.0.1 + interface: 100.90.20.83 + so-reuseport: yes + ip-freebind: yes # interface: ::0 private-address: 192.168.0.0/16 private-address: 100.64.0.0/10 @@ -31,6 +37,7 @@ access-control-view: 192.168.88.0/24 lan access-control-view: 100.64.0.0/10 tailnet + access-control-view: 127.0.0.0/8 lan do-ip4: yes do-ip6: no @@ -58,6 +65,7 @@ view: local-data: "jellyfin.objectbrokers.com. A 192.168.88.231" local-data: "vaultwarden.objectbrokers.com. A 192.168.88.231" local-data: "lambdesktop.objectbrokers.com. A 192.168.88.187" + local-data: "beszel.objectbrokers.com. A 192.168.88.231" view: name: "tailnet" @@ -72,6 +80,7 @@ view: local-data: "jellyfin.objectbrokers.com. A 100.81.165.11" local-data: "vaultwarden.objectbrokers.com. A 100.81.165.11" local-data: "lambdesktop.objectbrokers.com. A 100.95.22.24" + local-data: "beszel.objectbrokers.com. A 100.81.165.11" remote-control: control-enable: yes