mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-27 08:14:18 -04:00 
			
		
		
		
	This reverts commit 8045aa279b.
			
			
This commit is contained in:
		| @@ -72,10 +72,6 @@ The following place holders are supported: | ||||
| * `{>do}`: is the EDNS0 DO (DNSSEC OK) bit set in the query | ||||
| * `{>id}`: query ID | ||||
| * `{>opcode}`: query OPCODE | ||||
| * `{local}`: server's IP address, for IPv6 addresses these are enclosed in brackets: `[::1]` | ||||
| * `{A}`: number of the A type answers in the response | ||||
| * `{AAAA}`: number of the AAAA type answers in the response | ||||
| * `{forward/resolving_proxy}`: if the query was forwarded to a resolver, the IP address and port of that replied resolver, else empty. The metadata plugin needs to be enabled to use this placeholder | ||||
|  | ||||
| The default Common Log Format is: | ||||
|  | ||||
|   | ||||
| @@ -57,7 +57,7 @@ func (l Logger) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) | ||||
| 		// If we don't set up a class in config, the default "all" will be added | ||||
| 		// and we shouldn't have an empty rule.Class. | ||||
| 		if rule.Class[response.All] || rule.Class[class] { | ||||
| 			rep := replacer.New(ctx, r, rrw, CommonLogEmptyValue) | ||||
| 			rep := replacer.New(r, rrw, CommonLogEmptyValue) | ||||
| 			rule.Log.Println(rep.Replace(rule.Format)) | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user