Skip to main content

Deep Dive

Mist - Deep Dive

Local DNS server, land.playform.cloud zone authority, and DNSSEC enforcement

Mist - Deep Dive

Mist operates a local authoritative DNS server for the land.playform.cloud zone, ensuring all private network communication stays on loopback and preventing sidecars from reaching unauthorized external hosts.

Architecture 🚀

Built on Hickory DNS. Two zones: an authoritative land.playform.cloud zone and a restricted forward allowlist.

Modules

|| Path | || ------------------------------------------------------------------------------ | | Source/lib.rs - Public API: start(port), dns_port(), LandDnsResolver | | Source/server.rs - Hickory UDP + TCP listeners, catalog wiring | | Source/zone.rs - land.playform.cloud zone: SOA, A records, wildcard resolution | | Source/resolver.rs - DNS client pointed at the local server for consumer use | | Source/forward_security.rs - Forward allowlist enforcement |

Configuration ⚙️

ParameterValue
Preferred port5380 (fallback via portpicker)
Bind address127.0.0.1 (loopback only)
Authoritative zoneland.playform.cloud - all subdomains resolve to 127.0.0.1
Forward allowlistupdate.land.playform.cloud only domain resolvable externally
DNSSECECDSA P-256 zone signing
TransportUDP + TCP

Startup Sequence 🏁

  1. Mountain calls Mist::start(5380) during initialization
  2. Mist binds to port; portpicker selects alternative if unavailable
  3. Bound port stored in Mountain’s DnsPort managed Tauri state
  4. Mountain passes port to Air, SideCar, and Cocoon for DNS client configuration

Resolution Flow 🔍

For api.land.playform.cloud: query resolves to 127.0.0.1 (authoritative, with RRSIG). For external domains not in allowlist: query returns REFUSED.

Integration Points 🔗

ElementDirectionMechanism
MountainConsumerMist::start() Rust API, stores port in DnsPort state
AirConsumerLandDnsResolver for HTTP client DNS override
SideCarConsumerEnvironment variable passed to Node.js processes
CocoonConsumerResolves cocoon.land.playform.cloud and gRPC addresses through Mist