From 2fe5890d8b7fc7801d308dbb51bf29c57ee9a92b Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Thu, 10 Aug 2023 23:06:48 +0800 Subject: Fix typos (#6235) * Fix typos and add todo to fix spelling of dnsutil.MaximumDefaulTTL Signed-off-by: Zhizhen He --- plugin/rewrite/README.md | 2 +- plugin/rewrite/cname_target.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/rewrite') diff --git a/plugin/rewrite/README.md b/plugin/rewrite/README.md index ef938e79d..f9826cf22 100644 --- a/plugin/rewrite/README.md +++ b/plugin/rewrite/README.md @@ -407,7 +407,7 @@ rewrite edns0 subnet set 24 56 * If the query's source IP address is an IPv6 address, the first 56 bits in the IP will be the network subnet. -### CNAME Feild Rewrites +### CNAME Field Rewrites There might be a scenario where you want the `CNAME` target of the response to be rewritten. You can do this by using the `CNAME` field rewrite. This will generate new answer records according to the new `CNAME` target. diff --git a/plugin/rewrite/cname_target.go b/plugin/rewrite/cname_target.go index c7d93e8a7..068f17fdd 100644 --- a/plugin/rewrite/cname_target.go +++ b/plugin/rewrite/cname_target.go @@ -88,7 +88,7 @@ func (r *cnameTargetRule) RewriteResponse(res *dns.Msg, rr dns.RR) { newAnswer = append(newAnswer, rr) } } - // iterate over upstream response recieved + // iterate over upstream response received for _, rr := range upRes.Answer { if rr.Header().Name == toTarget { newAnswer = append(newAnswer, rr) -- cgit v1.2.3