Set ttl to reject_ttl for HINFO refused responses
Also lower the example TTL
This commit is contained in:
parent
9acf257fe5
commit
8b3b7d38ac
|
@ -72,7 +72,7 @@ func RefusedResponseFromMessage(srcMsg *dns.Msg, refusedCode bool, ipv4 net.IP,
|
|||
if sendHInfoResponse {
|
||||
hinfo := new(dns.HINFO)
|
||||
hinfo.Hdr = dns.RR_Header{Name: question.Name, Rrtype: dns.TypeHINFO,
|
||||
Class: dns.ClassINET, Ttl: 1}
|
||||
Class: dns.ClassINET, Ttl: ttl}
|
||||
hinfo.Cpu = "This query has been locally blocked"
|
||||
hinfo.Os = "by dnscrypt-proxy"
|
||||
dstMsg.Answer = []dns.RR{hinfo}
|
||||
|
|
|
@ -331,7 +331,7 @@ block_undelegated = true
|
|||
## TTL for synthetic responses sent when a request has been blocked (due to
|
||||
## IPv6 or blocklists).
|
||||
|
||||
reject_ttl = 600
|
||||
reject_ttl = 60
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue