Skip to content
A global perspective on digital financeAbout The Token Press
CRYPTO. FINANCE. WHAT’S NEXT.The Token PressYour daily briefing ↗

Beginner · 7 min read

AI Website Preview Works, but Your Domain Does Not? Check DNS and HTTPS

Trace a custom domain failure through DNS, host assignment and HTTPS. Use a fictional evidence worksheet without disrupting email or existing URLs.

The Token Press education desk · Updated

Which address works, and which one fails?

A working preview proves that one address can serve your site. It does not prove that your own domain points to that deployment, that the host recognizes its name, or that HTTPS is ready for it. Check these connections before asking an AI builder to redesign or rebuild the page.

Record the exact working and failing addresses, including https, the www prefix and the path. A browser reporting that a name cannot be found, a certificate warning and a normal page displaying 404 are different observations. Copy the error wording and the check time.

This guide uses Netlify’s hosting documentation as an example, with DNS concepts that also apply elsewhere. Follow your own host’s current domain instructions for actual record values. If the domain’s homepage already loads securely but a nested page fails on refresh, use the separate routing guide.

Find the DNS service that actually answers

The registrar sells or registers the domain. The DNS provider publishes its records. The web host serves the site. These roles can belong to different companies; editing a registrar’s unused DNS zone may change nothing visitors see.

Check the domain’s delegated nameservers and identify the active DNS provider. Cloudflare’s documentation explicitly separates changing authoritative nameservers from moving a domain registration or changing the web host. A hosting move does not automatically require a registrar transfer.

Before editing, save the relevant current records and the host’s expected values. Include the record name, type, value and TTL, plus any proxy setting. Keep account credentials, private keys and unrelated customer data out of an AI troubleshooting prompt.

Inventory mail-related records too. MX records route email, while TXT records can carry verification and mail-authentication information. Moving a website is not a reason to erase those records. If you truly migrate nameservers, inventory the complete zone and reproduce required services before switching delegation.

Match each hostname to the host’s instructions

Treat example.com and www.example.com as separate names. A record at one name does not by itself configure the other. Decide which hostname is the existing preferred public address, and preserve that choice during a repair.

A records map names to IPv4 addresses; AAAA records map them to IPv6 addresses. CNAME records alias a name to another hostname. Their values are not full page URLs: do not paste an https prefix or /agenda path into an address or alias field.

For a Netlify subdomain, first assign the custom name to the intended site, then create the CNAME supplied by that site’s domain settings. Apex-domain instructions differ from subdomain instructions and can depend on the DNS provider. Use the current instructions rather than copying an old IP from a tutorial.

Netlify adds both the apex and www names when either is assigned, so check DNS for both. A name pointing at a hosting platform is only part of the connection; it must also be associated with the correct project there.

Compare old A and AAAA records with the expected destination. A leftover address can direct some requests elsewhere. Remove or replace a record only after identifying its purpose and the host’s supported setup; multiple addresses or IPv6 records are not universally wrong.

Separate published answers from cached answers

A DNS lookup shows what a particular server answers at a particular time. Use the provider’s diagnostic view or a lookup tool; Netlify also documents the dig command. Record the queried hostname, record type, answering server and returned value. A screenshot of an edit form is not proof of the published answer.

For a domain you control, compare its authoritative answer with the recursive resolver used by your connection. The authoritative server publishes the zone; the recursive resolver obtains and caches answers for clients. Checking another resolver or network can help locate a disagreement, but it does not sample every visitor.

TTL tells a resolver how long to cache an answer before rechecking. Changing the TTL now does not retroactively shorten an older answer already cached elsewhere. A browser refresh cannot repair a wrong authoritative record. Avoid promising a universal propagation deadline.

If a CDN proxy is enabled, the public address can intentionally be the proxy’s address rather than the origin host’s. Compare it with the documented proxy configuration. Do not declare a mismatch solely because the origin IP is absent from a public lookup.

Check HTTPS after checking the destination

HTTPS requires a certificate valid for the hostname being visited. Let’s Encrypt validates control of requested names before issuing certificates. Its HTTP challenge retrieves a designated resource from the domain; DNS validation is another supported method. A certificate on the preview hostname does not cover every custom name.

Use the host’s certificate status and error detail. Netlify lists leftover address records and CAA restrictions among possible causes of provisioning failure. CAA identifies certificate authorities allowed to issue for a domain; changing it requires knowing which issuer your host uses.

Do not resolve a warning by telling visitors to ignore it, or by blindly removing security records. Escalate DNSSEC or certificate-policy conflicts with the provider when the cause is unclear. The aim is a correctly validated hostname and supported configuration.

If the site opens securely but loads an old release, check deployment identity and caching next. If only a nested path fails after the domain works, return to route handling. Keep each observed failure tied to the layer that can explain it.

Practice: diagnose three fictional observations

Imagine a workshop site using workshop.example as its apex and www.workshop.example as its companion name. These are fictional names for an offline exercise. The host’s preview shows release R-12. The approved public address and page paths must stay unchanged.

Case A: the authoritative answer for www points to the expected new hostname. Resolver A still returns the old target with 240 seconds of TTL remaining; Resolver B returns the new target. Under a normal cache honoring that TTL, the observed old answer can persist for another four minutes. This is evidence of differing cached answers, not a reason to keep changing the authoritative record. It is not a global four-minute completion promise.

Case B: both resolvers return the new target, but the hosting dashboard does not list www.workshop.example on the intended project. The next check is hostname assignment. More waiting for DNS does not supply that missing project configuration.

Case C: DNS and hostname assignment match, but certificate provisioning reports that the configured CAA policy excludes the host’s issuer. Review that policy and the provider’s documented issuer requirement. Deleting all TXT, MX and CAA records would be an unrelated and destructive response.

For each case, write the smallest next check, the evidence that would disprove your explanation, and the expected result after repair. None of these invented observations establishes what is wrong with your own site. Gather its actual answers before changing production.

Visual explainerFollow the evidence to the next check
DNS differs by resolverCheck the cacheCase A: authoritative answer is correct; one resolver retains the old target.
DNS agrees, project missingCheck assignmentCase B: the intended hosting project does not recognize the custom name.
Destination agrees, TLS failsCheck certificateCase C: the reported issuer restriction needs policy review.
A working preview does not prove that the custom-domain connections are complete.Three fictional diagnostic cases. Preserve unrelated records and verify the actual error before proposing a change.

Ask AI for a diagnosis you can verify

Prompt to adapt: Diagnose this fictional custom-domain case from the supplied observations. Separate DNS delegation, record values, cache, host assignment, certificate and page routing. For each hypothesis, name the evidence, one next check and a result that would disprove it. Propose no live edits yet. Preserve the existing preferred hostname, paths, titles, canonicals, redirects, indexing rules and unrelated mail records. State missing evidence instead of inventing a target IP.

After an approved repair, test the existing apex and www behavior, HTTPS and a known nested page from a clean visit. Confirm the intended release, relevant redirects and existing metadata. Check an authorized test email if the change affected the DNS zone used for mail.

Keep the previous records and deployment reference with the change record. Roll back only the relevant edit if necessary, preserving unrelated changes. A successful DNS lookup is one check; the finished result is the expected public site opening securely and its essential actions still working.

  • Working and failing addresses are recorded exactly.
  • Active authoritative DNS and intended hosting project are identified.
  • Apex and www records match current provider instructions.
  • Cache observations include their source and time.
  • HTTPS covers the visited hostname without ignored warnings.
  • Existing URLs, metadata, redirects and mail records are preserved.

Sources & further reading

Educational content. Examples are illustrative. Protocols, products and rules can change; consult the linked documentation for current details.

Explore the newsroom

Connect what you have learned with the latest reporting.