Update plugin.go (#2894)

This commit is contained in:
Chris O'Haver
2019-06-17 15:01:06 -04:00
committed by Miek Gieben
parent 8848792e40
commit 1cb44f0bfd

View File

@@ -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.