← Back to the guides

Make the address work

Connect a custom domain without breaking your email

Separate deployment from DNS, understand a real Pages connection failure, and use a before/after verification table.

Wide coral and cream ribbons cross a deep blue-green field, intersected by thin looping mint lines.
Crosscurrent / Abstract print study

Added the actual project connection sequence, DNS troubleshooting boundaries, and an HTTP verification example. Abstract cover artwork updated October 8, 2026. How this guide was prepared.

Connecting a domain is usually a small configuration task, but the same DNS zone may support more than the website. Email delivery, verification, and other services can depend on records nearby. A careful change begins with understanding the intended destination and preserving what already works.

THE PRACTICAL PICTURE

DNS branches into a website route and a separate email route; mail records are preserved when changing the website.
A successful upload does not complete DNS setup. Change the website destination without erasing the mail configuration.
Read the diagram as text

The domain reaches a website through the host-required web records and a hosting project. Email follows its MX and related TXT records to the mail service. Associate the domain with the hosting project, configure the requested web destination, then check HTTPS. Preserve mail records and verify email separately.

Open full-size diagram (opens in a new tab)

What happened on this project

During the initial Webfunder deployment on October 4, 2026, the static upload succeeded and its pages.dev address served the website. Adding the custom domain through the Pages API did not complete the DNS change: its verification response reported "CNAME record not set." The existing CLI credential had Pages write access but not DNS-record access.

That observation establishes two separate states: the website files can be published while the public domain still serves a parking page. Retrying the same upload would not repair the missing record. The required next action was to finish the domain setup in the owning Cloudflare account. This is a record of this project, not a claim that every host has the same behavior.

Separate checks rather than one "deployed" label
CheckExpected resultIf it fails
Project deploymentThe Pages address returns the intended HTMLInspect upload paths and the deployment status
Custom-domain associationThe exact domain appears in the projectAssociate it before pointing DNS at the project
Root website recordProvider-requested destination is configuredReplace only the conflicting parking web record
Mail continuityExisting MX/TXT records remain intactRestore only the unintended change from your backup
HTTPS article URLValid certificate and correct nested pageCheck domain/TLS status and routing separately

A read-only check you can repeat

For a domain you own, inspect an HTML response without executing its scripts. Replace the example address below with a real article. A 200 status tells you the response succeeded, but also inspect the returned title or body: some hosts return a homepage for every path. Test a deliberately missing address separately and expect 404.

If the custom-domain UI asks for a CNAME, use the exact value for your own project. Save existing records before a change and never delete MX or TXT entries as a shortcut. When you cannot see or understand the current record, stop at the read-only check and use the account dashboard rather than guessing.

curl --head https://your-domain.example/guides/your-guide/
curl --head https://your-domain.example/a-page-that-does-not-exist/

If you have not bought the domain yet

Test the name aloud and in lowercase before buying it. An available registration does not establish trademark rights or permission to imply affiliation with another organization. Check for confusingly similar names and obtain appropriate advice if the choice carries legal uncertainty.

Record the renewal price, registrar account, recovery email, and authorized owner. Use an account you control and protect it with the provider-supported authentication options. A cheap first-year name becomes a problem if a former contractor owns the only recovery route. These ownership checks come before editing DNS.

Identify who controls each part

Your registrar manages the domain registration, your DNS provider answers questions about its destinations, and your host serves the website. One company may perform all three roles, or each role may belong to a different provider. Find the actual control panel for each before making changes.

Confirm that you can access the domain account and the hosting project. Use a project you own rather than copying a destination from another example. If the host offers a custom-domain workflow, begin there so you receive the specific records and verification steps for this website.

Save the existing DNS configuration

Export the zone if the provider supports it, or record the relevant names, types, values, and settings. Note which records currently support the website and which support email or verification. Keep the backup in a safe location without publishing account information or private administrative details.

Do not delete an entire zone to remove a parking page. Email commonly depends on MX records and additional TXT records, while other services may use their own names. Changing a web destination should not remove unrelated entries simply because they look unfamiliar.

Follow the host-specific connection steps

Add the exact hostname through the hosting dashboard and follow its instructions. The root domain and a www subdomain may require different handling. Providers differ in their support for aliases, proxying, and managed DNS, so a generic record from a tutorial is not a substitute for the current project instructions.

If instructed to change nameservers, understand that this moves DNS authority rather than just the website address. Recreate necessary records at the new provider before the switch. If you are unsure what a record supports, investigate it before removing it rather than testing the change on a live service.

Verify HTTPS and both address forms

Allow time for DNS caching and certificate issuance, but use the provider status and specific errors to diagnose problems. Repeatedly changing values can make troubleshooting harder. Check that the host recognizes the domain and that HTTPS loads without a certificate warning.

Test the root domain and www version if both are intended to work. Choose a canonical address and configure an appropriate redirect for the alternative. Visit a nested article directly, not just the homepage, to ensure the connection serves the whole site rather than masking a routing problem.

Check the services you meant to preserve

Send and receive a real test email when the domain has mail service. Verify important third-party integrations and keep the old DNS snapshot until the change is settled. Document the working host destination, the date of the change, and any redirect decisions.

If a problem appears, compare the actual records with the saved configuration and provider instructions. Restore only the specific incorrect change when appropriate. Treat DNS as shared operational infrastructure, not a disposable screen that can be reset whenever the website design changes.

Go to the source

Policies and product details can change. Check the official documentation before acting.

General educational information, not financial, tax, or legal advice. Examples are illustrative; results and earnings are not guaranteed.