Skip to content

Commit 0635101

Browse files
committed
fix(dns): move local-zone entries before remote-control block
Unbound parses remote-control: as a section boundary. local-zone directives placed after remote-control: are rejected as syntax errors in this Unbound version. Moved local-zone entries to before the remote-control block so they are unambiguously within the server: section.
1 parent ace63dd commit 0635101

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docker/unbound/unbound.conf.template

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ server:
7575
access-control: ${IP_BLACKBOX}/32 allow
7676
access-control: 0.0.0.0/0 refuse
7777

78-
# Enable unbound-control
79-
remote-control:
80-
control-enable: yes
81-
control-interface: 127.0.0.1
82-
control-port: 8953
83-
8478
# Block HTTPS (TYPE65/ECH) records for local domains.
8579
# Cloudflare publishes HTTPS records with ECH params for proxied domains. When
8680
# PiHole returns local IPs for these domains, Chrome/Safari try to use those
@@ -91,3 +85,9 @@ server:
9185
# directives) and never reach Unbound, so this does not affect normal resolution.
9286
local-zone: "geeksbsmrt.com." static
9387
local-zone: "smrtgeekdevs.com." static
88+
89+
# Enable unbound-control
90+
remote-control:
91+
control-enable: yes
92+
control-interface: 127.0.0.1
93+
control-port: 8953

0 commit comments

Comments
 (0)