Skip to content
·8 min read

Custom Domains for Vibe Coders Who Just Want a Real URL

Connect a domain to the app you already have, check DNS and HTTPS, and choose the address to share

Share

Your app already works at the address your host gave you. A custom domain gives visitors a new address for that same app. Start by opening the current address and checking that it shows the project you intend to share. Then connect one name, verify that it opens the right app over HTTPS, and decide what to do with the other addresses people may type.

Who handles the name, DNS, and the app?

A domain is a name such as example.com. A registrar keeps its registration and is where you renew or transfer the name. Your DNS service publishes records telling browsers, mail services, and other systems where to go. Your web host runs the app people open. One company may do several of these jobs.

HTTPS is how the browser connects to the web host securely. You can have the right DNS record and still see a certificate warning. Check the site and its certificate before you invite people to use it.

What should you check before registering a domain?

Look up the exact name and ending at a registrar. Compare what it costs to register today and what it costs to renew. A first-year offer can end at renewal, and a premium name can cost more than the standard price for its ending. Register it in an account the person or business responsible for the name can keep. ICANN’s registration guide

Which DNS records might the host ask for?

Add the exact name, type and value your host shows for this project. The name tells DNS which address you’re configuring. @ or a blank name field may stand for the domain itself, depending on the DNS service.

RecordWhat it does
APoints a name at an IPv4 address.
AAAAPoints a name at an IPv6 address.
CNAMEMakes one name an alias for another name.
TXTStores text. A host may ask for a specific value to verify that you can manage the domain.

The apex, sometimes called the root domain, is the bare name example.com. It already has records DNS needs to operate, so a standard CNAME cannot go there. Some DNS services offer an ALIAS, ANAME or flattened CNAME for that job. Use the option your host documents and your DNS service supports. DNS standard

Where do you edit the record for www?

www.example.com is a separate name, called a subdomain. Find the domain’s active nameservers in the registrar account. They identify the DNS service that answers for the domain. Edit the www record there. An editor at the registrar can show records that are unused if another company’s nameservers are active.

For a website-only change, keep your existing DNS service when the host supports it. A change to nameservers moves who answers for the whole domain. Prepare the complete new record set first, including email and verification records, and check the provider’s migration instructions. Vercel’s nameserver guidance

If DNSSEC is on, check the order of the move with your registrar and both DNS providers before switching nameservers. DNSSEC lets DNS services check that answers are genuine. The registrar’s trust record, called a DS record, may still point to the old provider’s signing key. If the new answers fail that check, visitors and mail servers can lose access to the domain. Ask what to do with the DS record and when to do it. DNSSEC migration and validation

How can you plan a website change without touching email?

Save a private copy of the current records. Mark the one the host asks you to add or replace. If www currently points to another site, confirm which site should use the name before replacing its record.

If the domain uses email, check whether mail depends on the exact name you plan to change. A mail routing record, called MX, can point to that name. Without an MX record, sending systems may try the domain’s own address. Rules for who may send mail can also rely on that address. If the website and mail share the name or address, or you can’t tell, have whoever manages your email check the change before you edit the record. Leave unrelated mail, verification and subdomain records in place. Mail routing · Address-based sender checks

Before editing your own records, practice a website change without touching email. The exercise uses example.com, a name reserved for examples. IANA’s example domains

How do Vercel, Netlify, and Cloudflare Pages differ?

Add the custom name to the project in your host’s dashboard first. Follow the instructions it shows for that name. If it requests a verification record, complete that check too.

HostWhat to check
VercelFor external DNS, use the value shown for your apex or the CNAME target shown for your project’s subdomain. Another account using the domain can trigger a TXT verification step.
NetlifyWith external DNS, the preferred apex option depends on whether your provider supports an alias or flattened record. Netlify documents an A record fallback. Follow the instructions for the site and names you added.
Cloudflare PagesA bare domain needs Cloudflare nameservers and a domain set up in the same account as the Pages project. A subdomain can keep external DNS. Associate it with the Pages project before adding the CNAME at the active DNS service.

Check your host’s domain and certificate status after DNS verification. Automatic certificate setup still depends on the host being able to verify the name. For example, an existing CAA record can restrict who is allowed to issue a certificate. Use the host’s current guidance if it reports a restriction. Netlify HTTPS · Cloudflare Pages certificate restrictions

Why can different visitors see different results?

DNS lookups can return a cached answer. The record’s time to live, or TTL, tells a DNS resolver how long it may reuse that answer. One visitor may still reach the old site while another reaches the new one.

First compare the active DNS record with the host’s requested value. If they match, check what the host reports and try a read-only visit from a different connection, such as a phone on mobile data. Leave the verified record in place while an older answer expires. Cloudflare’s TTL explanation

Which address should visitors end up on?

Choose one address to share. If both the bare name and www should work, configure both at the host and have the alternate address permanently redirect to the preferred one. A DNS alias helps the browser find a host. The redirect is the host’s instruction to open a different URL.

Open a page below the homepage through both addresses over HTTPS. The alternate should reach the intended page at the preferred address without a loop. A permanent redirect also gives search engines a signal about which version to show. HTTP redirects · Google’s guidance on duplicate URLs

What should you check when the address fails?

What you seeWhere to check first
The browser can’t find the site.Check the exact name at the active DNS service, then compare the record with the host’s instructions.
The wrong site opens.Check which project has the name attached and where the active DNS record points.
The browser warns about the connection.Stop and check the host’s certificate status for that exact name. Follow its verification or certificate guidance before sending anyone there.
The page redirects repeatedly.Review the rules for both names and for HTTP and HTTPS. Check which rule sends the browser back to a URL it already tried.

What does HTTPS protect?

HTTPS uses TLS, the newer protocol people often call SSL. A certificate helps the browser check the server’s identity for the name you opened. TLS protects the connection against reading or tampering in transit. The app still has to decide who can see a saved record and what it does when someone submits a form. MDN’s explanation of TLS

What should you keep after the address works?

Write down who can renew the name, where DNS is managed and which project the address opens. Keep this privately where the person responsible can find it, including if the site goes down. Set a reminder to check renewal and the payment method before the term ends.

PJ
Pranay Joshi

20+ years building products at scale. VP of Product & Engineering, startup founder, and AI coach. Helping dreamers turn ideas into reality with vibe coding.