* 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:
Zhizhen He 2023-08-10 23:06:48 +08:00 committed by GitHub
parent c657af467b
commit 2fe5890d8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 20 additions and 19 deletions

View file

@ -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.

View file

@ -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)