How to point a domain to hosting - A, CNAME and TXT explained

A domain and hosting are two separate services. The domain is the address, the hosting is where the site runs, and pointing the domain tells browsers which server to go to when someone types that address. You do this with DNS records, wherever you manage your domain.
The three record types to know

| Type | What it does | Example |
|---|---|---|
| A | Points a name at an IP address | @ → 203.0.113.10 |
| CNAME | Makes one name follow another | www → shop.com |
| TXT | Stores text, often to verify ownership | _vibevn → a code |
That IP address is only an example, so use the value your host gives you. In the name field, @ means the root domain itself (shop.com) and www means www.shop.com.
Pointing a domain to VibeVN
Step 1: Add the domain to your site
On the detail page of your deployed site, find the custom domain section, type your domain and press Add domain. You see exactly which records to create, each with a copy button. No site yet? Follow how to deploy a vibe coded website first.
Step 2: Create the records at your domain provider
Sign in where you bought the domain, find DNS management, and create:
| Type | Name | Value | Required |
|---|---|---|---|
| A | @ | The server IP on the page | Yes |
| CNAME | www | Your domain | No, but recommended |
| TXT | _vibevn | The code on the page | Yes |
The TXT record proves you own the domain. Keep it after verification.
If there are older A or AAAA records for the same name, remove them. A domain pointing at several IP addresses makes the site work only some of the time.
Step 3: Press Verify
Go back to VibeVN and press Verify. It looks up your DNS and shows which records are right and which are not. Once they pass, the domain is attached and an HTTPS certificate is issued automatically, so there is no need to install SSL by hand.
DNS usually updates within minutes, but depending on the provider and the old TTL it can take longer, sometimes hours.
Pointing a domain on Cloudflare
If Cloudflare manages your domain, set the A and CNAME records to DNS only (grey cloud). In proxy mode (orange cloud), Cloudflare returns its own IP instead of the server's, so verification fails.
How is changing nameservers different?
Some guides tell you to change nameservers instead of creating records. That moves all your DNS management somewhere else. Be careful: if the domain handles email (MX records), changing nameservers without copying the records can stop your email. Creating an A record as above is safer because it leaves everything else alone.
Common errors
Verification says TXT is wrong. Many panels add your domain after the name field automatically. If you type _vibevn.shop.com, it may become _vibevn.shop.com.shop.com. Enter only the short name shown on the page.
The old site still appears. Your machine may remember the old DNS. Try another network or mobile data, or check with:
nslookup shop.com
nslookup -type=TXT _vibevn.shop.com
Country domains such as .co.uk. The system treats shop.co.uk as the root domain, so the name field is still @.
"Domain already used by another account". A domain that ran on a different account can only be added again once the current account has paid. This prevents abuse of the trial.
www does not work. The www CNAME record is missing. Create it so visitors arrive whichever way they type the address.
What about a subdomain?
To use blog.shop.com, enter exactly that when adding it. The record name becomes blog rather than @, and the root domain stays free for another site. If you have no domain yet, you still get a free subdomain such as your-site.vibevn.app with HTTPS.
After pointing the domain
Open your site with https://, check the padlock, and update any environment variables holding the old address (such as NEXT_PUBLIC_SITE_URL or APP_URL), then deploy again. If the site shows an error after this, see fixing a 500 error.
Frequently asked questions
Does pointing a domain cost anything?
Creating DNS records is normally free where you bought the domain. You only pay the yearly domain fee.
Do I have to move my domain to my hosting provider?
No. A domain bought anywhere can point to any hosting.


