mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -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 | 	Req *dns.Msg | ||||||
| 	W   dns.ResponseWriter | 	W   dns.ResponseWriter | ||||||
|  |  | ||||||
|  | 	// Optional lowercased zone of this query. | ||||||
|  | 	Zone string | ||||||
|  |  | ||||||
| 	// Cache size after first call to Size or Do. | 	// Cache size after first call to Size or Do. | ||||||
| 	size int | 	size int | ||||||
| 	do   int // 0: not, 1: true: 2: false | 	do   int // 0: not, 1: true: 2: false | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user