Skip to main content

Module dns

Module dns 

Source
Expand description

FIPS DNS Responder

Resolves .fips queries to FipsAddress IPv6 addresses. Two resolution paths are supported:

  1. Hostname: <hostname>.fips — looked up in the HostMap to get an npub, then resolved to IPv6.
  2. Direct npub: <npub>.fips — pure computation from public key.

As a side effect, resolved identities are sent to the Node for identity cache population, enabling subsequent TUN packet routing.

Structs§

DnsResolvedIdentity
Identity resolved by the DNS responder, sent to Node for cache population.

Functions§

handle_dns_packet
Handle a raw DNS query packet and produce a response.
resolve_fips_query
Resolve a .fips domain name to an IPv6 address and identity.
resolve_fips_query_with_hosts
Resolve a .fips domain name with host map lookup.
run_dns_responder
Run the DNS responder UDP server loop.

Type Aliases§

DnsIdentityRx
Channel receiver consumed by the Node RX event loop.
DnsIdentityTx
Channel sender for DNS → Node identity registration.