diff options
author | 2016-11-06 08:32:07 +0000 | |
---|---|---|
committer | 2016-11-06 08:32:07 +0000 | |
commit | 243797a3871a912f14c5d719157708e35179fc7f (patch) | |
tree | 70d66dfc891b6b25b6df1c6d6501779fc9e9afeb /middleware/file/closest.go | |
parent | 8d3418c01535f63129da2fe1ffd5ff8e4ceceb2d (diff) | |
download | coredns-243797a3871a912f14c5d719157708e35179fc7f.tar.gz coredns-243797a3871a912f14c5d719157708e35179fc7f.tar.zst coredns-243797a3871a912f14c5d719157708e35179fc7f.zip |
middleware/file: add nsec for wildcard expansion (#382)
A NSEC record is need to deny any other name that might exist.
Also don't blindly perform the interface conversion when getting
glue for NS records as they now may include RRSIG - also add tests
for that.
Diffstat (limited to 'middleware/file/closest.go')
-rw-r--r-- | middleware/file/closest.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/file/closest.go b/middleware/file/closest.go index 2ee14e6d8..172242669 100644 --- a/middleware/file/closest.go +++ b/middleware/file/closest.go @@ -6,7 +6,7 @@ import ( "github.com/miekg/dns" ) -// ClosestEncloser returns the closest encloser for rr. +// ClosestEncloser returns the closest encloser for qname. func (z *Zone) ClosestEncloser(qname string) (*tree.Elem, bool) { offset, end := dns.NextLabel(qname, 0) |