Fix typos (#6235)
* Fix typos and add todo to fix spelling of dnsutil.MaximumDefaulTTL Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
This commit is contained in:
parent
c657af467b
commit
2fe5890d8b
13 changed files with 20 additions and 19 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue