DNS Monitoring API - Free DNS Change Detection
Queries current DNS records for a domain and compares them against a stored snapshot from the previous check. Returns a diff showing which record types changed, what the previous values were, and what the current values are. Snapshots are stored for 7 days. On the first check, the current state is saved and no changes are reported.
Code examples
curl -X POST https://api.botoi.com/v1/dns-monitor/check \
-H "Content-Type: application/json" \
-d '{"domain":"example.com","types":["A","MX","NS"]}'When to use this API
Detect unauthorized DNS changes
Schedule periodic checks on your production domains to detect DNS hijacking, accidental record deletions, or unauthorized modifications. Trigger an alert when changes_detected is true.
Verify DNS migration completeness
After migrating DNS providers, poll this endpoint to confirm all record types have updated to the new values. Compare current records against your expected configuration.
Monitor competitor or partner domains
Track DNS changes on third-party domains you depend on. Detect when a partner changes their MX records (email provider switch) or A records (hosting migration).
Frequently asked questions
How long are snapshots stored?
What DNS record types are supported?
Can I use this for uptime monitoring?
What happens on the first check?
Is the comparison case-sensitive?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.