Skip to main content

Module dns

Module dns 

Source
Expand description

Multi-perspective DNS resolution.

For a given hostname, query each connected SSH host’s resolver plus the local Mac’s resolver in parallel. Useful for spotting DNS drift — e.g. internal vs public split-horizon, or stale caches on a specific host.

Implementation: dig +short <name> <type> on the remote (cheap and universally available). Local perspective uses tokio::net::lookup_host so we don’t shell out for the most common path.

Structs§

DnsAnswer
One perspective’s answer.
DnsQuery
What to resolve and how.

Enums§

DnsRecordType

Functions§

dns_resolve_local
Resolve from the local Mac. tokio::net::lookup_host only handles A/AAAA; non-address record types fall back to spawning dig locally.
dns_resolve_remote
Resolve from one remote SSH host using dig +short.