Constant dns_resolver::RECURSION_LIMIT

source ยท
pub const RECURSION_LIMIT: usize = 32;
Expand description

Maximum recursion depth. Recursion is used to resolve CNAMEs, so a chain of CNAMEs longer than this cannot be resolved.

This is to protect against a maliciously-configured upstream nameserver which returns an infinite stream of CNAME records when trying to resolve some other record type.