atatus_dns_check resource manages DNS synthetic monitoring checks in Atatus.
Use this resource to monitor domain name resolution, DNS response times, and DNS record values such as A, AAAA, CNAME, MX, NS, and TXT records across configured testing locations. The resource supports creating, updating, and deleting synthetic DNS checks through Terraform.
Dashboard guide: DNS check. Provider setup and authentication: Terraform overview. Registry reference: atatus_dns_check.
Example Usage
DNS Resolution & Record Match Check
Argument Reference
Required Arguments
-
name- (String) Name of the DNS synthetic check as displayed in the Atatus dashboard. -
host- (String) Domain name or hostname to query (e.g.example.comorwww.atatus.com). -
dns_server- (String) Custom DNS Nameserver IP address to query (e.g.8.8.8.8,1.1.1.1,9.9.9.9). Defaults to empty for system default resolver. -
port- (Number) DNS port number (default:53). -
tags- (List of Strings) List of tags (e.g.["env:production", "team:networking"]).
DNS Assertions Reference
assertion- (List of Objects) Rules to validate DNS resolution latency and record values.
🌍 Supported Location Codes Reference
locations- (List of Strings) Array of global region codes where the check is executed from. Default:["US_NEW_YORK"].
locations attribute of any synthetic check, use the following region codes:
Common Settings Reference (Applicable to all check types)
-
run_type- (String) Execution strategy across selected testing locations ("parallel"or"sequential"). Default:"parallel". When set to"sequential", locations run in sequence andmin_location_failedcannot be configured. -
frequency- (String) Execution frequency interval ("1m","5m","10m","15m","30m","1h","6h","12h","1d"). Default:"5m". -
retry_count- (Number) Number of automatic retries before triggering an alert upon check failure (0to3). Supported for both"parallel"and"sequential"runs. Default:0. -
min_location_failed- (Number) Minimum number of failed locations required before alerting (default:1). Note: Only applicable whenrun_typeis"parallel". Configuringmin_location_failedwhenrun_type = "sequential"is not allowed and produces a validation error. -
emails- (List of Strings) Email addresses to alert directly when the check fails (auto-mapped to Atatus notification channels). -
channel_ids- (List of Strings) Notification channel IDs to alert on failure. See Notification channels.