aboutsummaryrefslogtreecommitdiff
path: root/core/dnsserver/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/dnsserver/config.go')
-rw-r--r--core/dnsserver/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/dnsserver/config.go b/core/dnsserver/config.go
index 0d25183c0..0f75a7f86 100644
--- a/core/dnsserver/config.go
+++ b/core/dnsserver/config.go
@@ -4,6 +4,7 @@ import (
"crypto/tls"
"github.com/coredns/coredns/plugin"
+
"github.com/mholt/caddy"
)
@@ -29,6 +30,11 @@ type Config struct {
// DNS-over-TLS or DNS-over-gRPC.
Transport string
+ // If this function is not nil it will be used to further filter access
+ // to this handler. The primary use is to limit access to a reverse zone
+ // on a non-octet boundary, i.e. /17
+ FilterFunc func(string) bool
+
// TLSConfig when listening for encrypted connections (gRPC, DNS-over-TLS).
TLSConfig *tls.Config