Configuration: General
dns-updater reads configuration from a config.yaml file in the current working directory.
Top-level keys
provider(required): selects which DNS provider to use and supplies provider-specific configupdates(required): list of DNS updates to applylog(optional): logging configuration (defaults:info+pretty)cache(optional): enable/disable simple caching and configure cache file pathschedule(optional): a cron expression to run the DNS check on a schedule (e.g."*/5 * * * *"for every 5 minutes).provider.safemode(optional): enable/disable safe mode (defaults totrue). When enabled,dns-updateruses TXT records with data in the formatmanaged-by:dns-updater/<txt_owner_id>to mark records it owns. See Safe Mode.
Updates
updates is a list. Each item supports:
domain: the base domain (e.g.example.com)zone: provider zone identifier/name (provider-specific)type: DNS record type (commonlyA)records: list of record names to update (e.g."@",www,home)
Example:
updates:
- domain: example.com
zone: example-com
type: A
records:
- "@"
- "www"