Developers
PrimeDNS is built API-first. Automate everything — zone management, record updates, monitoring — directly from your tools and pipelines.
REST API
Full RESTful API with JSON responses. Authenticate with API keys, manage zones and records programmatically, integrate with your CI/CD pipeline.
# Update a DNS record
curl -X PATCH https://api.primedns.net/v1/dns/records/42 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "203.0.113.10"}'
API Documentation →
Dynamic DNS
Update your DNS records automatically when your IP changes. Compatible with the DynDNS2 protocol — works with routers, clients, and custom scripts out of the box.
# DynDNS2 compatible update
curl "https://api.primedns.net/nic/update?hostname=myhost.example.com&myip=203.0.113.10" \
-u "username:password"
Webhooks
Get notified instantly when DNS records change, zone transfers complete, or anomalies are detected. Integrate with Slack, PagerDuty, or your own systems.
POST https://your-endpoint.example.com/webhook
Content-Type: application/json
{
"event": "record.updated",
"zone": "example.com",
"record": { "type": "A", "name": "www", "content": "203.0.113.10" },
"timestamp": "2026-03-21T12:00:00Z"
}
Zone Import / Export
Migrate to PrimeDNS in minutes. Import your existing zones in standard BIND format, or export them at any time — no lock-in.
; Export via API
GET /v1/domains/example.com/zone
Authorization: Bearer YOUR_API_KEY
; Returns standard BIND zone file format
$ORIGIN example.com.
$TTL 3600
@ IN SOA ns1.primedns.net. hostmaster.primedns.net. (
2026032101 3600 900 604800 300 )
@ IN NS ns1.primedns.net.
@ IN A 203.0.113.10
www IN A 203.0.113.10
Ready to start building?
Create a free account and explore the full API documentation — or follow a step-by-step guide.