Config fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
config.hostname | string | Yes | — | Domain name to resolve |
config.recordTypes | array of string | No | ["A"] | Record types to query: A, AAAA, CNAME, MX, NS, TXT, SRV, SOA, CAA, PTR |
config.nameservers | array of string | No | system default | Custom nameservers to query |
config.timeoutMs | integer | No | 5000 | Per-query timeout in milliseconds |
config.totalTimeoutMs | integer | No | 10000 | Total timeout for all queries in milliseconds |
Assertions
| Assertion | Required fields | Description |
|---|---|---|
dns_resolves | (none) | Passes if the hostname resolves at all |
dns_response_time | maxMs | Fails if resolution takes longer than threshold |
dns_response_time_warn | warnMs | Records degraded hint for elevated resolution time |
dns_expected_ips | ips (array) | Fails if resolved IPs don’t match expected set |
dns_expected_cname | value | Fails if CNAME target doesn’t match |
dns_record_contains | recordType, substring | Fails if record value doesn’t contain substring |
dns_record_equals | recordType, value | Fails if record value doesn’t match exactly |
dns_txt_contains | substring | Fails if no TXT record contains substring |
dns_min_answers | recordType, min | Fails if answer count is below minimum |
dns_max_answers | recordType, max | Fails if answer count exceeds maximum |
dns_ttl_low | minTtl | Fails if TTL is below minimum |
dns_ttl_high | maxTtl | Fails if TTL exceeds maximum |
Examples
Basic resolution check
Full validation with expected IPs
SPF record validation
Next steps
DNS overview
When to use DNS monitors.
Regions
Available probe regions.