How to Monitor DNS Records and Detect Unauthorized Changes
Monitorion Team
Engineering Team
Your DNS records are the foundation of your online presence. If someone changes your A record, swaps your MX records, or hijacks your nameservers, your website disappears — and you might not notice for hours. DNS monitoring catches these changes within minutes.
Why DNS Monitoring Matters
DNS changes are silent. Unlike a server crash that triggers immediate HTTP failures, a DNS misconfiguration propagates slowly across global resolvers. Your site might work for you (cached DNS) while being completely unreachable for new visitors. Common scenarios that DNS monitoring catches:
- Accidental deletion — a team member removes the wrong record during a migration
- TTL expiry — a temporary record expires and traffic routes to the wrong server
- DNS hijacking — an attacker transfers your domain or modifies nameservers
- Registrar issues — your registrar changes records during a domain transfer
- CDN misconfiguration — CNAME records pointing to decommissioned CDN endpoints
Setting Up DNS Monitoring in Monitorion
Creating a DNS monitor takes 30 seconds. Go to Monitors → New Monitor → DNS and configure:
- Domain — the domain name to query (e.g.,
example.com) - Record Type — A, AAAA, CNAME, MX, TXT, NS, or SRV
- Expected Value (optional) — the value you expect the record to resolve to. If set, Monitorion alerts you when the actual value differs.
- Nameserver (optional) — query a specific nameserver instead of the system default. Useful for verifying propagation.
What to Monitor
For a typical web application, set up these DNS monitors:
- A record for your apex domain —
example.com→ your server IP. Alert if it changes. - CNAME for www —
www.example.com→ your CDN or load balancer. Critical for traffic routing. - MX records — ensure your email routing stays intact. A wrong MX record means lost emails.
- TXT records for SPF/DKIM — email authentication records that prevent spoofing. If deleted, your emails go to spam.
- NS records — monitor your nameservers themselves. Changes here indicate domain transfer or hijacking.
Pro Tips
Use expected values. Without an expected value, the DNS monitor only checks that the record exists and resolves. With an expected value, it alerts you when the value changes — catching unauthorized modifications instantly.
Monitor from multiple regions. DNS propagation varies by location. Enable multi-region monitoring to detect propagation failures where your DNS works in Europe but fails in Asia.
Set a 5-minute interval. DNS changes are rare but critical. A 5-minute check interval gives you rapid detection without excessive queries.
DNS monitoring is one of the most underrated types of uptime monitoring. Most teams only realize they need it after a painful incident. Set it up now — it takes 30 seconds and could save you hours of debugging.
Enjoyed this post?
Get monitoring tips and product updates delivered to your inbox.