From 1b539b1fff018ee55222c86e12488068bcb77089 Mon Sep 17 00:00:00 2001 From: AdamDang Date: Fri, 25 Jan 2019 12:08:27 +0800 Subject: [PATCH] Update plugin.md (#2496) Fix a small error --- plugin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.md b/plugin.md index 49b32236f..53a329b41 100644 --- a/plugin.md +++ b/plugin.md @@ -8,7 +8,7 @@ The main method that gets called is `ServeDNS`. It has three parameters: * `dns.ResponseWriter` that is, basically, the client's connection; * `*dns.Msg` the request from the client. -`ServeDNS` returns two values, a response code and an error. If the error is not nil CoreDNS, +`ServeDNS` returns two values, a response code and an error. If the error is not nil, CoreDNS will return a SERVFAIL to the client. The response code tells CoreDNS if a *reply has been written by the plugin chain or not*. In the latter case CoreDNS will take care of that.