Skip to main content

Module DnsCommands

Module DnsCommands 

Source
Expand description

§DNS commands

Tauri commands that surface the Mist-managed DNS server (Hickory) to the webview - server state, zone snapshot, forward allowlist, manual resolution. The DTOs and command handlers live in sibling files; the wire-bound names match the file names so the invoke_handler! registration in Binary/Main/Entry.rs is a 1:1 mapping.

Modules§

DnsHealthStatus
Aggregated DNS health snapshot (server / zone / forward status + most recent error) returned by dns_get_health_status.
DnsResolutionResult
Result envelope from a manual DNS resolution test (dns_resolve). Carries the resolved address list and a success flag so callers can branch without parsing strings.
DnsServerInfo
Basic DNS server information returned to the webview by dns_get_server_info.
ForwardAllowList
Allowed external domains the DNS server may forward queries to. Returned by dns_get_forward_allowlist.
StartupTime
DNS server startup-time storage. The wall-clock instant the Hickory server bound its UDP socket is captured once and returned to the webview via dns_get_server_info.
ZoneInfo
Authoritative-zone snapshot returned by dns_get_zone_info: origin, record list (one entry per ZoneRecord::Struct), and DNSSEC presence flag.
ZoneRecord
Single DNS zone record (name / type / TTL / data) returned inside ZoneInfo::Struct.
dns_get_forward_allowlist
dns_get_forward_allowlist Tauri command - returns the external domains the forwarder is allowed to query.
dns_get_health_status
dns_get_health_status Tauri command - aggregated server / zone / forward status snapshot.
dns_get_server_info
dns_get_server_info Tauri command - returns port, running flag, and startup time.
dns_get_zone_info
dns_get_zone_info Tauri command - returns the static editor.land zone snapshot (records + DNSSEC flag) used by the diagnostic panel.
dns_health_check
dns_health_check Tauri command - thin wrapper over dns_get_health_status that flattens to a bool for automated monitoring.
dns_resolve
dns_resolve Tauri command - manual resolution helper used by the diagnostic panel and by dns_test_resolution.
dns_test_resolution
dns_test_resolution Tauri command - thin wrapper over dns_resolve that flattens to a bool for automated health-check loops.