DNS monitor
Continuously verify that your domain's A, AAAA, CNAME, MX, NS, and TXT records return the answers you expect.
A DNS monitor periodically queries your domain's DNS servers and verifies the returned records match what you expect. DNS records quietly changing, whether from a misconfigured provider, a stale migration, or a compromised registrar, typically goes unnoticed. DNS monitors close that gap.
When to use
- Migration validation: You moved to a new server; make sure the A record actually points to the new IP.
- MX record integrity: Your email provider accidentally flips an MX record and customer mail starts bouncing. A DNS monitor catches it in minutes.
- CDN failover detection: Your CNAME points to a CDN's load balancer: a mistake in the CDN console can break itself without any server-side signal.
- GeoDNS: If you serve different IPs to different regions, a separate DNS monitor per region (with resolver override) verifies each response path.
Supported record types
| Type | What it returns | Example expected answer |
|---|---|---|
A | IPv4 address | 93.184.216.34 |
AAAA | IPv6 address | 2606:2800:220:1:248:1893:25c8:1946 |
CNAME | Canonical name | example.cloudfront.net |
MX | Mail exchanger (host name only, no priority) | mail.example.com |
NS | Nameserver | ns1.dnsprovider.com |
TXT | Free text (SPF, DKIM, domain verification) | v=spf1 include:_spf.google.com ~all |
Creating the monitor
-
On the Monitors page choose Add monitor.
-
Choose DNS Resolution as the type (some types sit under Show 7 more types).
-
Fill in:
- Display name: e.g.
api.example.com A record - Query Name: Domain to query (
api.example.com) - Record type: One of the types above. A monitor created through the API without a record type queries the A record; any expected answers and resolver you set still apply.
- Expected answers: Comma-separated values you expect. Order doesn't matter, the monitor checks each value is present in the returned set. Case is ignored; if you leave it empty, the record only has to resolve.
- Resolver (optional): Public DNS server IP (e.g.
8.8.8.8) to query. Leave blank to use the system default resolver.
- Display name: e.g.
-
Set a Check interval. The shortest interval you can pick depends on your plan (see the pricing page for current values). The UI offers 1 hour as the longest interval; DNS propagation can take hours, so 5-15 minutes is usually plenty. A longer interval can be set only through the API.
-
Save with Start monitoring.
In the monitor's detail page, the record type list under Configure → Request also shows SOA, SRV, CAA and PTR; the check does not support these, so pick one of the six types above.
How expected-answer matching works
The monitor gets the full answer list from the DNS server and checks that every value you specified is present in that list.
Example 1. Multiple A records:
Hostname: api.example.com
Expected: 10.0.0.1, 10.0.0.2
If DNS returns 10.0.0.1, 10.0.0.2, 10.0.0.3 → pass (both expected values present).
If DNS returns 10.0.0.1 → fail (10.0.0.2 missing).
Example 2. TXT / SPF:
Hostname: example.com
Record Type: TXT
Expected: v=spf1 include:_spf.google.com ~all
If the TXT list doesn't include this exact line, the monitor goes down. Matching is on the whole text. For MX records only the host name is compared (mail.example.com); a value with a priority such as 10 mail.example.com never matches.
Example 3. CNAME:
Hostname: www.example.com
Record Type: CNAME
Expected: example.cloudfront.net
If the name resolves straight to addresses instead of a CNAME (an alias), the monitor goes down ("no CNAME record").
Internal names do not work on cloud checks
A DNS check run from our cloud locations only queries public names. These names are refused, and the monitor goes down with an error message that says why:
- Single-label names (no dot) and
localhost - Names ending in
.local(this covers Kubernetes'.cluster.local),.svc,.internalor.localhost
These names only mean something inside a private network. There are two ways around it:
- Run the monitor from an agent in that network. The agent does not refuse internal names.
- Enter a public Resolver that answers the name. A monitor with a resolver skips this name check.
Resolver override + abuse protection
When you specify a custom resolver IP, UptimeWarden runs it through a safety filter before querying, allowing only public, internet-facing DNS servers:
- Private ranges (
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16) are blocked - Loopback (
127.0.0.0/8,::1) blocked - Link-local and CGNAT (
169.254.0.0/16,100.64.0.0/10) blocked - Cloud metadata addresses (
168.63.129.16) blocked
Public resolvers (8.8.8.8, 1.1.1.1, 9.9.9.9) work fine; internal resolvers behind your firewall are refused. This prevents the monitor from being abused to probe your private network.
Regional DNS monitoring
For GeoDNS setups (same hostname, different answer per region), create one DNS monitor per region:
- European users resolve → monitor running in Sweden
- US users resolve → monitor running in Phoenix
The monitoring locations are Sydney, São Paulo, Sweden, Hong Kong and Phoenix. Both query the same hostname but from different physical locations, surfacing cases like "DNS correct for EU, wrong IP for US."
SLA and notifications
DNS monitors use the same notification pipeline as other monitors:
- Down: Expected answer not in the returned set, a CNAME query where the name resolves straight to addresses, or the DNS query timed out
- Recovery: Expected answer returned again
If multi-location consensus is enabled, DNS monitors honour it too, a single resolver-cache hiccup in one region won't trigger a false alarm.
FAQ
Q: Won't an HTTP monitor cover this indirectly? A: An HTTP monitor checks connectivity to whatever IP resolves; it tests DNS correctness indirectly. If your server is up but DNS points somewhere wrong, the HTTP monitor may still succeed (if the wrong IP also happens to answer on port 443). A DNS monitor queries the resolver directly, it catches routing drift even when the host still responds.
Q: My TTL is 1 hour. Does the shortest check interval my plan allows make sense? A: It does, you catch drift faster than TTL implies. But most DNS providers don't need sub-minute resolution; 5 minutes hits a practical sweet spot.
Q: One region's resolver might be wrong while others are correct. Now what? A: Turn on multi-location consensus. Requiring 2 of 3 regions to agree before alarming means a single stale resolver cache won't page you at 3 AM.
Related topics
- Multi-Location Consensus: preventing false alarms
- Regional Monitoring: picking regions
- Notification Channels: where DNS alerts go