mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 00:04:15 -04:00
core: add Zone in request.Request (#857)
Add a Zone field in request.Request and a dnsutil.Trimzone help function.
This commit is contained in:
@@ -16,6 +16,9 @@ type Request struct {
|
||||
Req *dns.Msg
|
||||
W dns.ResponseWriter
|
||||
|
||||
// Optional lowercased zone of this query.
|
||||
Zone string
|
||||
|
||||
// Cache size after first call to Size or Do.
|
||||
size int
|
||||
do int // 0: not, 1: true: 2: false
|
||||
|
||||
Reference in New Issue
Block a user