Skip to main content

Module resolver

Module resolver 

Source
Expand description

DNS resolution and this host’s external-IP discovery.

resolver.py hand-rolls a DNS cache with cachetools; hickory-resolver 0.26 ships a built-in response cache, so that code is gone (a replace-with-lib, per assessment.md).

Resolver::external_ips returns a set: on a dual-stack host both the IPv4 and IPv6 external addresses, because crate::checker’s anonymity check must pass if either appears in a judge’s echo. This set semantics is load-bearing, not incidental.

Structs§

Resolver
Resolves host names and discovers this machine’s external IPs.