- a TOML file:
--config FILEorDNZ_CONFIG, otherwise./dnz.tomlor/etc/dnz/dnz.toml(the first that exists); - the environment;
- flags:
--dns-addr,--http-addr,--database-url,--upstream,--no-ui,--tls-cert,--tls-key, and--set KEY=VALUEfor anything else, e.g.--set dns.rate_limit=100.
/etc/dnz/dnz.toml
Settings in the database (upstreams, strategy, zones, users and everything else you change in the
dashboard) are not part of this file.
DNZ_UPSTREAM and DNZ_FORWARD_STRATEGY are only used on
the first start; after that, manage them under Forwarding.Reference
General
DNS
Forwarding
The resolver options above (serve-stale to NSID) are also set in the dashboard and with
dnz; once
saved there, the saved value wins over the file.
HTTP and dashboard
TLS and encrypted DNS
See Encrypted DNS.
Proxy
See Proxied records and Certificates.
Database and sessions
First admin
Cloudflare
See Cloudflare.