diff options
author | 2019-06-17 15:01:06 -0400 | |
---|---|---|
committer | 2019-06-17 20:01:06 +0100 | |
commit | 1cb44f0bfd76af219f523010ef1cbe6cb879b1a1 (patch) | |
tree | 695e754fb5a6ab042a49777940b788b870091461 | |
parent | 8848792e4080a73cc349067fa3d85db3f71c9e28 (diff) | |
download | coredns-1cb44f0bfd76af219f523010ef1cbe6cb879b1a1.tar.gz coredns-1cb44f0bfd76af219f523010ef1cbe6cb879b1a1.tar.zst coredns-1cb44f0bfd76af219f523010ef1cbe6cb879b1a1.zip |
Update plugin.go (#2894)
-rw-r--r-- | plugin/plugin.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugin/plugin.go b/plugin/plugin.go index 4a4448f62..7995cbba8 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -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. |