mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Answer REFUSED when we don't host the zone
Change from SERVFAIL to diff. between error and no such zone hosted. Fixes: #68
This commit is contained in:
		| @@ -306,9 +306,9 @@ func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg) { | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	// Still here? Error out with SERVFAIL and some logging | ||||
| 	// Still here? Error out with REFUSED and some logging | ||||
| 	remoteHost := w.RemoteAddr().String() | ||||
| 	DefaultErrorFunc(w, r, dns.RcodeServerFailure) | ||||
| 	DefaultErrorFunc(w, r, dns.RcodeRefused) | ||||
| 	log.Printf("[INFO] %s - No such zone at %s (Remote: %s)", q, s.Addr, remoteHost) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user