Skip to main content
Enterprise|Cloud Architect / Infrastructure Engineer

Multi-Cloud DNS Management

Review DNS answers across resolvers during infrastructure changes

Review DNS answers across resolvers during infrastructure changes. Use the API workflow below to collect dated findings, review their scope, and decide which follow-up checks your team needs.

Implementation example by the EdgeDNS team · Updated

The Challenge

Resolver caches, geo-DNS, and authoritative configurations can return different answers during a migration or incident.

The Solution

Compare propagation results, nameservers, provider detection, and direct DNS lookups. Resolver disagreement can reflect intentional geographic routing as well as propagation or configuration problems. This workflow observes DNS; it does not edit cloud-provider zones.

Endpoints Used

Combine these EdgeDNS endpoints to build this solution.

GET
/v1/dns/propagationAPI reference

DNS Propagation: Check DNS consistency across resolvers

GET
/v1/dns/nsAPI reference

Nameservers: List nameservers and detect DNS provider

GET
/v1/domain/dns-providerAPI reference

DNS Provider: Identify DNS hosting provider

GET
/v1/dns/lookupAPI reference

DNS Lookup: Query any of 22 DNS record types or ALL at once with DNSSEC validation

GET
/v1/domain/response-timeAPI reference

Response Time: Measure server response latency

What this workflow helps you do

Compare resolver observations

Inspect which resolvers returned each record set.

Review authoritative configuration

Cross-check nameserver and provider findings with your DNS control plane.

Investigate divergence

Use returned classifications as context and confirm with your expected routing design.

Code Example

Review DNS answers across resolvers during infrastructure changes

javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
  {
    "path": "/v1/dns/propagation",
    "params": {
      "domain": "example.com"
    }
  },
  {
    "path": "/v1/dns/ns",
    "params": {
      "domain": "example.com"
    }
  },
  {
    "path": "/v1/domain/dns-provider",
    "params": {
      "domain": "example.com"
    }
  }
];

// Run sequentially to keep concurrency bounded. API tier restrictions apply.
for (const { path, params } of checks) {
  const url = new URL(path, 'https://api.edgedns.dev');
  url.search = new URLSearchParams(params).toString();
  const response = await fetch(url, { headers });
  const result = await response.json();
  if (!response.ok) {
    throw new Error(`${path}: ${response.status} ${result.error?.message ?? 'Request failed'}`);
  }
  // Keep the response metadata and any partial/unknown findings for review.
  console.log(path, result);
}

Learn More

Explore industry standards and best practices related to this use case.

Ready to build Multi-Cloud DNS Management?

Get started with 200 free API requests per month. No credit card required.

Other Use Cases

Multi-Cloud DNS Management & Drift Detection | EdgeDNS