DNS & Infrastructure Change Monitoring
Detect unauthorized DNS changes, certificate swaps, and WHOIS transfers with private, continuous monitoring
Create separate endpoint watches for DNS records, SSL certificates, and registration data. Review changes and snapshots in your private organization history, and configure email recipients for supported change alerts.
Implementation example by the EdgeDNS team · Updated
The Challenge
Infrastructure changes happen without warning. A DNS record modification could be a routine update or a hijacking attempt. Certificate renewals may fail silently. Domain registrar changes could signal an unauthorized transfer. Passive DNS services expose your domain history to anyone who queries it -- including adversaries mapping your infrastructure for attack.
The Solution
Each watch selects one endpoint, a supported interval, and a change-detection strategy. Use a DNS lookup watch for record changes and a separate certificate watch for SSL results. Free includes 5 watches checked daily; Developer includes 50 from 30 minutes; Pro includes 250 from 5 minutes. Endpoint tier restrictions apply. Scheduled checks share your monthly request allowance.
Endpoints Used
Combine these EdgeDNS endpoints to build this solution.
/v1/watchesMonitoring API referenceCreate Watch: Create one watch per supported endpoint with a schedule and alert strategy
/v1/watches/:id/changesMonitoring API referenceDNS History: View private DNS record change history for your domain
/v1/watches/:id/alertsMonitoring API referenceWatch Alerts: View DNS change, cert change, and WHOIS change alerts
/v1/watches/:id/snapshotsMonitoring API referenceCheck Results: Inspect snapshots for this endpoint watch with status and timing
What this workflow helps you do
Private snapshots and changes
Watch snapshots and detected differences are scoped to your organization.
Plan-based schedules
Free includes 5 watches checked daily; Developer includes 50 from 30 minutes; Pro includes 250 from 5 minutes. Endpoint tier restrictions apply. Scheduled checks share your monthly request allowance.
Change strategies with debounce
Use json_diff or status_change and configure notification recipients and debounce. Pause a watch during planned maintenance.
Code Example
Create a daily DNS watch and inspect changes
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const response = await fetch('https://api.edgedns.dev/v1/watches', {
method: 'POST',
headers: { ...headers, 'Content-Type': 'application/json' },
body: JSON.stringify({
"domain": "example.com",
"endpoint_id": "dns-lookup",
"endpoint_params": {
"type": "A"
},
"interval_minutes": 1440,
"alert_enabled": true,
"alert_strategy": "json_diff",
"alert_config": {},
"notification_emails": [
"ops@example.com"
]
})
});
const created = await response.json();
if (!response.ok) throw new Error(created.error?.message ?? 'Watch creation failed');
// After subsequent scheduled checks, inspect this watch's changes.
const historyResponse = await fetch(
'https://api.edgedns.dev/v1/watches/' + encodeURIComponent(created.data.id) + '/changes',
{ headers }
);
const history = await historyResponse.json();
if (!historyResponse.ok) throw new Error(history.error?.message ?? 'History request failed');
console.log(history.data);Learn More
Explore industry standards and best practices related to this use case.
Ready to build DNS & Infrastructure Change Monitoring?
Get started with 200 free API requests per month. No credit card required.
Other Use Cases
Website Uptime & Availability Monitoring
Scheduled reachability checks with stored snapshots and status-change alerts
Security Engineer / CISOPrivate Domain Monitoring
Keep stored monitoring history private to your organization
DevOps Engineer / SRESSL Certificate Monitoring & Change Alerts
Track certificate results over time with private snapshots and change alerts