bind: add DNS-over-TLS forwarding and fix missing NS record in zones#5391
Open
mbedworth wants to merge 1 commit intoopnsense:masterfrom
Open
bind: add DNS-over-TLS forwarding and fix missing NS record in zones#5391mbedworth wants to merge 1 commit intoopnsense:masterfrom
mbedworth wants to merge 1 commit intoopnsense:masterfrom
Conversation
Add a 'DNS over TLS' checkbox to the BIND general settings that enables forwarding queries to upstream resolvers via DoT (port 853) using BIND 9.18+ tls ephemeral mode. When disabled, plain UDP forwarding is used as before. Changes: - General.xml: add forwardertls BooleanField - general.xml form: add DNS over TLS checkbox after DNS Forwarders - named.conf template: use 'forwarders port 853 tls ephemeral' when forwardertls is enabled
59db951 to
c10fca9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Problem
DoT forwarding: BIND 9.18+ supports forwarding queries via DNS-over-TLS (
forwarders port 853 tls ephemeral), but the os-bind plugin has no way to enable this. Users who want encrypted upstream forwarding must manually edit named.conf after every restart.Missing NS record: The
domain.dbzone template generates a SOA record but no NS record. BIND requires at least one NS record per zone — without it, the zone fails to load withhas no NS recordsand all queries return SERVFAIL.Changes
General.xmlforwardertlsBooleanFieldforms/general.xmlnamed.conftemplateforwarders port 853 tls ephemeralwhen enableddomain.dbtemplateNS {{ domaindb.dnsserver }}.after SOATest plan
named.confcontainsforwarders port 853 tls ephemeraldig @localhost google.comresolves (DoT working)forwardersline is generatednamed-checkzone)Tested on OPNsense 26.1.6 with BIND 9.20.20.