Getting Started
Query DNS records with the EdgeDNS REST API, read the JSON response, and choose the next check for your domain. Prefer an AI client? Use the MCP integration guide.
1. Create an Account
Sign up for a free EdgeDNS account to get your API key. No credit card required.
2. Get Your API Key
Once signed in, open API keys in your dashboard to generate an API key. Your API key is used to authenticate all requests to the EdgeDNS API.
3. Make Your First Request
Use your API key to make a request. Here is an example using cURL:
curl "https://api.edgedns.dev/v1/dns/lookup?domain=example.com&type=A" \ -H "Authorization: Bearer edns_live_YOUR_KEY"
4. Read the DNS Lookup Response
A successful request returns a data object containing the queried domain, record_type, and records. Each record includes its type, value, and TTL in seconds. The meta object includes the request ID and timing information; keep the request ID when investigating a failed request.
Set type=MX for mail routing, type=TXT for text records, or type=ALL to inspect multiple record types. An empty records array differs from an HTTP error: check the response status before using the result. See the DNS lookup API reference for parameters and response fields, and error handling for failed requests.