From a10727ad5d3df3fe92a3ed7987e903be28e534f3 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Fri, 1 Jan 2021 20:40:10 +0000 Subject: [PATCH] Fix #48 for good (disable dnssec for libredns) --- internal/dns/conf.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/dns/conf.go b/internal/dns/conf.go index 19529495..b285a43b 100644 --- a/internal/dns/conf.go +++ b/internal/dns/conf.go @@ -84,6 +84,12 @@ func generateUnboundConf(settings models.Settings, hostnamesLines, ipsLines []st "include": "include.conf", } + for _, provider := range settings.Providers { + if provider == constants.LibreDNS { + delete(serverSection, "trust-anchor-file") + } + } + // Server lines = append(lines, "server:") serverLines := make([]string, len(serverSection))