Set up DNS for your own domain on a ChatGPT Site
What each DNS record does, how to type it at any provider, how to check it and how to fix a domain that stays pending.
Before you begin
- You own the domain and can sign in to its DNS provider.
- Your Site is built with ChatGPT Sites. Enterprise workspaces can’t use custom domains yet.
- If your main domain already shows another website, use a subdomain such as
shop.yourbrand.com. New records for a subdomain don’t touch the existing site.
name.ahagpt.com: how it works.1. Add the domain in Site settings
Open Site settings → Add domain. You can enter a root domain (yourbrand.com) or a subdomain (www.yourbrand.com, shop.yourbrand.com).
2. Understand the three records
For www.yourbrand.com the Site asks for:
| Type | Host | Value | Why |
|---|---|---|---|
| CNAME | www | custom-domains.chatgpt.site | Sends visitors to ChatGPT Sites. |
| TXT | _openai-site-verification.www | code from your Site | Proves to OpenAI that you own the domain. |
| TXT | _cf-custom-hostname.www | code from your Site | Proves it to Cloudflare, which delivers the Site’s traffic and HTTPS. |
For a root domain the first record may be a different type, because many providers don’t allow a CNAME at the root. Always use exactly the type and value the Site shows.
3. Type the Host correctly
Most providers add your domain to the end of whatever you type, so enter only the prefix:
| Full name | Type in the Host box |
|---|---|
www.yourbrand.com | www |
_openai-site-verification.www.yourbrand.com | _openai-site-verification.www |
_cf-custom-hostname.www.yourbrand.com | _cf-custom-hostname.www |
yourbrand.com itself | @ (or leave empty if your provider says so) |
- If a record already exists on the same Host (for example an old
wwwA record), delete it first. A CNAME can’t share its name with other records. - Paste TXT values without extra spaces or quotation marks.
- Leave TTL at the default.
4. Check the records
Use a public DNS lookup such as dns.google, or a terminal:
nslookup -type=CNAME www.yourbrand.com 1.1.1.1
nslookup -type=TXT _openai-site-verification.www.yourbrand.com 1.1.1.1
When all three answers match what the Site showed, refresh the domain status in Site settings. Usually that is minutes; a few providers are slower.
If the domain stays pending
The Site still opens at its chatgpt.site address, but the domain won’t verify. Check these in order:
- Domain typed twice. A lookup for
www.yourbrand.com.yourbrand.comfinds your record. Change the Host to justwww. - An old record on the same Host. Delete it, then add the CNAME again.
- A code is cut off. Copy each TXT value again and compare it character by character with what the lookup returns.
- Cloudflare proxy is on (orange cloud). Public lookups then show Cloudflare IPs instead of your CNAME. Switch the record to “DNS only”.
- The Site issued new codes. If everything is right and you have waited, remove only that domain in Site settings, add it again and update the TXT records whose codes changed.
The same domain on AhaGPT
On AhaGPT Pro, attaching your own domain takes one CNAME record and no TXT codes: ask your AI “connect www.yourbrand.com to my site” and it shows the exact record. HTTPS is automatic. Details in Your own domain.