aboutsummaryrefslogtreecommitdiff
path: root/plugin/rewrite
diff options
context:
space:
mode:
authorGravatar Zhizhen He <hezhizhen.yi@gmail.com> 2023-08-10 23:06:48 +0800
committerGravatar GitHub <noreply@github.com> 2023-08-10 11:06:48 -0400
commit2fe5890d8b7fc7801d308dbb51bf29c57ee9a92b (patch)
treef4fbc4794fdd5036a09ed5bb2316d1e5bdb4badb /plugin/rewrite
parentc657af467b4d5a81fdd296f0917213db71a3dd6d (diff)
downloadcoredns-2fe5890d8b7fc7801d308dbb51bf29c57ee9a92b.tar.gz
coredns-2fe5890d8b7fc7801d308dbb51bf29c57ee9a92b.tar.zst
coredns-2fe5890d8b7fc7801d308dbb51bf29c57ee9a92b.zip
Fix typos (#6235)
* Fix typos and add todo to fix spelling of dnsutil.MaximumDefaulTTL Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
Diffstat (limited to 'plugin/rewrite')
-rw-r--r--plugin/rewrite/README.md2
-rw-r--r--plugin/rewrite/cname_target.go2
2 files changed, 2 insertions, 2 deletions
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)