Commit 1cb44f0b authored by Chris O'Haver's avatar Chris O'Haver Committed by Miek Gieben

Update plugin.go (#2894)

parent 8848792e
...@@ -21,7 +21,8 @@ type ( ...@@ -21,7 +21,8 @@ type (
// and/or error. // and/or error.
// //
// If ServeDNS writes to the response body, it should return a status // 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) // * SERVFAIL (dns.RcodeServerFailure)
// //
...@@ -31,9 +32,9 @@ type ( ...@@ -31,9 +32,9 @@ type (
// //
// * NOTIMP (dns.RcodeNotImplemented) // * NOTIMP (dns.RcodeNotImplemented)
// //
// CoreDNS assumes *no* reply has yet been written. All other response // All other response codes signal other handlers above it that the
// codes signal other handlers above it that the response message is // response message is already written, and that they should not write
// already written, and that they should not write to it also. // to it also.
// //
// If ServeDNS encounters an error, it should return the error value // If ServeDNS encounters an error, it should return the error value
// so it can be logged by designated error-handling plugin. // so it can be logged by designated error-handling plugin.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment