Overview
Stalwart can integrate with an external DNS provider and manage the records a mail server needs (MX, SPF, DKIM, DMARC, TLSA, autoconfig and autodiscover records, and the rest of the set described below) on the operator's behalf. When this integration is active, the server publishes and updates the zone directly against the provider's API, so records stay in sync with the server's configuration without manual changes in the provider's control panel.
DNS Providers
The DnsServer object (found in the WebUI under Settings › Network › DNS › DNS Providers) is multi-variant, and each variant corresponds to a supported provider or protocol. Each variant carries its own credential fields (API keys, tokens, service-account JSON, or account identifiers as appropriate) alongside the shared timing fields that control TTLs, polling, and propagation checks. The authoritative list of fields for every variant is documented on the DnsServer reference page.
DNS Resolver
The DNS resolver translates human-readable domain names into IP addresses and other machine-readable records. It is used throughout the MTA for MX lookups, IP reputation queries, MTA-STS policy retrieval, and many other operations.