mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Update plugin.go (#2894)
This commit is contained in:
committed by
Miek Gieben
parent
8848792e40
commit
1cb44f0bfd
@@ -21,7 +21,8 @@ type (
|
||||
// and/or error.
|
||||
//
|
||||
// If ServeDNS writes to the response body, it should return a status
|
||||
// code. If the status code is not one of the following:
|
||||
// code. CoreDNS assumes *no* reply has yet been written if the status
|
||||
// code is one of the following:
|
||||
//
|
||||
// * SERVFAIL (dns.RcodeServerFailure)
|
||||
//
|
||||
@@ -31,9 +32,9 @@ type (
|
||||
//
|
||||
// * NOTIMP (dns.RcodeNotImplemented)
|
||||
//
|
||||
// CoreDNS assumes *no* reply has yet been written. All other response
|
||||
// codes signal other handlers above it that the response message is
|
||||
// already written, and that they should not write to it also.
|
||||
// All other response codes signal other handlers above it that the
|
||||
// response message is already written, and that they should not write
|
||||
// to it also.
|
||||
//
|
||||
// If ServeDNS encounters an error, it should return the error value
|
||||
// so it can be logged by designated error-handling plugin.
|
||||
|
||||
Reference in New Issue
Block a user