DNS Troubleshooting for Developers: A Record, CNAME, TTL, and HTTPS Debugging Checklist
DNShostingdomainsCDNweb infrastructure

DNS Troubleshooting for Developers: A Record, CNAME, TTL, and HTTPS Debugging Checklist

NNet-Work Editorial Team
2026-11-28
6 min read

Use this practical DNS checklist to troubleshoot records, propagation, provider handoffs, IPv6, CDN routing, and HTTPS certificate failures.

When a domain, subdomain, API endpoint, or certificate stops working, the cause may be at the registrar, authoritative DNS provider, record configuration, resolver cache, hosting platform, CDN, or TLS layer. This checklist helps developers isolate each boundary in order, using practical record comparisons, propagation checks, command-line examples, and a DNS-to-HTTPS troubleshooting sequence.

Overview

DNS troubleshooting is easier when you separate the path into distinct layers. A domain may be registered correctly but delegate to the wrong nameservers. The authoritative provider may contain the expected record, while public resolvers still return an older answer because of caching. DNS may resolve successfully, but the returned IP address may point to the wrong load balancer or hosting service. Finally, HTTPS can fail even when DNS is correct because the certificate does not cover the hostname or the server is not presenting the expected certificate.

Start by writing down the exact hostname that fails, such as example.com, www.example.com, or api.example.com. Do not treat these as interchangeable. Each name can have different records, delegation, routing, and certificate requirements.

RecordPrimary purposeKey troubleshooting question
AMaps a hostname to an IPv4 address.Is the returned address the intended server, load balancer, or edge endpoint?
AAAAMaps a hostname to an IPv6 address.Does the IPv6 destination serve the same application correctly?
CNAMEPoints a hostname to another hostname.Does the target resolve, and is the CNAME allowed at this name?
TXTPublishes text used for verification and email policies.Is the value complete, correctly quoted, and published at the required name?
MXIdentifies mail delivery hosts.Are mail records being changed unintentionally during a web migration?
HTTPSPublishes service connection information for supported clients.Is the record intentional, valid, and compatible with the provider configuration?

An A record contains an IP address; a CNAME contains another hostname. A CNAME is often useful when a hosting or CDN provider gives you a stable target name, while an A record is appropriate when you control the destination address. Avoid creating conflicting record types at the same hostname, and check provider-specific restrictions before changing an apex or root domain.

Checklist by scenario

When a domain does not resolve

  1. Confirm the hostname spelling, including the subdomain and top-level domain.
  2. Check the domain's assigned nameservers at the registrar. They should match the DNS provider you intend to manage.
  3. Query the authoritative nameservers directly rather than relying only on a browser or local resolver.
  4. Confirm that the required A, AAAA, or CNAME record exists at the exact hostname.
  5. Check for accidental delegation through NS records below the main domain.
  6. Compare results from more than one recursive resolver and record the time of each query.

Useful commands include:

dig example.com A
dig example.com AAAA
dig www.example.com CNAME
dig +trace example.com
nslookup -type=NS example.com

dig +trace can help show the delegation path from the root through the top-level domain to the authoritative nameserver. Use it as an investigation aid, not as a substitute for checking the provider's configuration and service status.

When a subdomain points to the wrong service

  1. Query the subdomain for all relevant types: A, AAAA, CNAME, and HTTPS.
  2. Check whether an old A record remains alongside a new CNAME.
  3. Follow the CNAME target and verify that it resolves to the expected provider endpoint.
  4. Inspect the hosting, load balancer, or CDN configuration for the same hostname.
  5. Confirm that the origin accepts the Host header for the requested domain.
  6. Test both the bare domain and the www hostname if both are intended to work.

Do not assume that changing DNS automatically configures the destination platform. Many hosting and CDN services require the hostname to be added to an application, distribution, ingress, or project before traffic is accepted.

When DNS changes appear not to propagate

  1. Check the authoritative answer first. If it is wrong, propagation is not the problem yet.
  2. Inspect the record's TTL and note when the previous value may have been cached.
  3. Query several recursive resolvers, but interpret different answers as evidence of caching or delegation differences rather than proof that every resolver is updated.
  4. Clear local DNS caches only after recording the existing result.
  5. Check DNS-over-HTTPS or VPN settings, which may cause your test to use a different resolver than expected.

A DNS propagation check is most useful when it compares authoritative and recursive answers over time. Avoid repeatedly changing the record while testing; each change makes the result harder to interpret and may extend the period of inconsistent answers.

When DNS works but HTTPS fails

  1. Verify that the hostname resolves to the intended IPv4 and IPv6 destinations.
  2. Open the exact HTTPS hostname, not only the origin address or a different alias.
  3. Check that the certificate's names include the requested hostname.
  4. Confirm that the certificate is installed on the CDN, load balancer, ingress, or web server receiving the request.
  5. Check certificate validation records, commonly TXT or CNAME records, at the exact name requested by the certificate provider.
  6. Test whether IPv6 reaches a different or incorrectly configured service.
  7. Confirm that HTTP-to-HTTPS redirects do not point to an old hostname.

For a basic TLS inspection, use:

curl -I https://api.example.com
openssl s_client -connect api.example.com:443 -servername api.example.com

The -servername option matters when a server hosts multiple domains and selects a certificate using SNI. A successful DNS answer does not prove that the HTTPS service is configured for that name.

What to double-check

Before handing DNS management to another provider, create a record inventory. Include the hostname, record type, value, TTL, purpose, owner, and whether it is required for production, staging, email, verification, or a third-party integration. Pay particular attention to TXT and MX records: a web migration should not silently remove email authentication or mail routing.

During a provider handoff, use this sequence:

  1. Export or manually document existing records.
  2. Lower TTLs ahead of a planned change when the current provider allows it and the timing is understood.
  3. Create the records at the new provider before changing nameservers.
  4. Compare authoritative answers from both providers.
  5. Change nameservers at the registrar.
  6. Monitor web, API, email, verification, and certificate-validation functions.
  7. Restore normal TTLs only after the migration is stable.

Also double-check DNSSEC if it is enabled. A nameserver migration or signing change can make a domain appear unavailable to validating resolvers when the delegation and DS information no longer match. Treat DNSSEC changes as a planned infrastructure operation and keep a rollback path.

For infrastructure-managed DNS, review the plan before applying it and protect state and credentials. The Terraform best practices guide provides related guidance on state, testing, and drift control.

Common mistakes

  • Editing the wrong DNS provider: The dashboard you opened may not be authoritative for the domain. Confirm the delegated nameservers first.
  • Using an IP where a CNAME is required: Some platforms provide a hostname because their destination can change. Follow the platform's record instructions rather than guessing.
  • Leaving stale records behind: An old AAAA or A record can send part of the traffic to a broken destination, especially when clients use IPv6.
  • Testing only one resolver: A local cache can hide a change, while a public resolver may still hold an earlier answer within its cache lifetime.
  • Testing only the root domain: The certificate and application may be configured for www or api, not for the apex.
  • Changing several variables at once: Record edits, nameserver changes, CDN settings, and certificate requests should be tracked separately whenever possible.
  • Publishing sensitive data in TXT records: DNS is public. Use TXT for intended verification or policy data, not secrets.

When to revisit

Return to this checklist before a domain migration, new environment launch, CDN or hosting change, certificate renewal, registrar transfer, or major network redesign. Revisit it after an intermittent resolution incident even if the immediate symptom disappears; an unexpected answer may indicate stale records, inconsistent IPv4 and IPv6 paths, or an undocumented provider dependency.

Review the inventory before seasonal planning cycles and whenever workflows or tools change. DNS provider interfaces, hosting handoffs, certificate automation, and HTTPS-record support can evolve, so confirm the current instructions for the platforms you operate rather than relying on an old screenshot or copied configuration.

For the next incident, capture the hostname, timestamp, resolver used, authoritative answer, recursive answer, HTTP response, certificate subject and expiry, and recent configuration changes. That small evidence set turns “DNS is broken” into a sequence of testable questions. Keep the record inventory and provider handoff checklist with your runbooks, alongside related operational material such as the SLO and error-budget planning template.

Related Topics

#DNS#hosting#domains#CDN#web infrastructure
N

Net-Work Editorial Team

Technical Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.