Get alerted when a DNS record stops resolving or resolves to the wrong value, before your users notice.
DNS problems are easy to miss: your servers stay up, your HTTP checks may keep passing from cached resolvers, yet part of your audience can no longer reach you. A DNS monitor queries your records on a schedule and treats a wrong or missing answer as downtime, so it goes through the same alerting pipeline as any other monitor.
example.com. Unlike HTTP monitors, you enter a bare hostname rather than a full URL.DNS monitors share the rest of their configuration with other monitor types: check frequency, regions, and alert settings all work the same way. See Create a monitor for the general workflow.
Each DNS monitor checks one record type on the hostname. The default is A. Supported types:
To watch several record types on the same domain, create one monitor per record type.
By default, a DNS monitor is up as long as the query returns an answer. To also verify what it returns, set an expected answer. The monitor fails when the resolved value doesn't contain the expected string.
For example, an A record monitor with the expected answer 192.0.2.1 stays up while the hostname resolves to that address, and goes down if the record is deleted or changed to point somewhere else. This is how you detect hijacked or accidentally edited records rather than just missing ones.
The match is a substring check, so for records with multiple values (like MX or TXT) you can validate that one specific entry is present.
By default, DNS monitors query default resolvers, which reflects what a typical visitor experiences. You can instead point a monitor at a specific nameserver, for example 8.8.8.8.
Querying a specific nameserver is useful when you want to:
DNS monitors plug into the same alerting as HTTP monitors. When a check fails, you're notified on your configured channels, and you can attach an escalation policy so unacknowledged DNS incidents escalate through your team like any other outage. Alert delay settings apply too, so you can wait a few minutes before alerting or route failures straight to your on-call.
DNS monitors can be managed programmatically. With the monitors API, set protocol to dns and use the dns_record_type, dns_expected_answer, and dns_nameserver fields:
curl -X POST https://api.hyperping.io/v1/monitors \
-H "Authorization: Bearer ${API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"name": "Website DNS",
"url": "example.com",
"protocol": "dns",
"dns_record_type": "A",
"dns_expected_answer": "192.0.2.1",
"dns_nameserver": "8.8.8.8"
}'The same fields are available when updating a monitor, and through the Terraform provider if you manage your monitoring as code.