Looks up a DNS record on a schedule, optionally asserting the response matches an expected value. Detects misconfigurations, propagation lag, and registrar issues.
Performs a DNS lookup for your configured record type (A, AAAA, CNAME, MX, TXT, or NS). The check is UP when the lookup returns at least one record. If you supply an Expected value, the check fails when the response no longer contains it.
curl https://monitorah.com/api/v1/monitors \
-X POST \
-H "Authorization: Bearer mon_live_…" \
-H "Content-Type: application/json" \
-d '{
"name": "My DNS check",
"type": "DNS",
"target": "example.com",
"config": {
"recordType": "MX",
"expectedValue": "mx.example.com"
}
}'