Admin

# Your own domain, with exact DNS records and HTTPS

## Put your site on your own domain and know exactly what to do at your DNS provider. CCMS Admin shows the exact records to add, checks them when you press Check now and tells you in plain words what is wrong. CCMS sets up HTTPS, and every other address sends visitors to your one main address with a permanent 301 redirect.

[Get started](https://ccms.build/build-with-ai/)

## The exact records, ready to copy

Add your domain in CCMS Admin, and Admin shows the exact DNS records it needs. There are two. A TXT record proves that the domain is yours. A CNAME record points the address to your site. Each record has its own card, with a copy button for its name and for its value. You copy the values instead of typing them.

The cards also explain the details that differ between DNS providers. The CNAME record must be DNS only. At Cloudflare, that means a grey cloud, not an orange one. A domain without www cannot have a plain CNAME record at every DNS provider. Admin explains that Cloudflare handles this with CNAME flattening and that other providers call it ALIAS or ANAME. If your provider has neither, you connect the www address and forward the bare domain to it at your DNS provider. If your provider adds the domain name to record names by itself, Admin tells you to leave it out of the name.

For an agency, this means one clear set of records to add yourself, or to send to the customer who controls the DNS.

## Check now, and get a plain answer

When the records are in place, press Check now. When it can, Admin asks your domain’s own name servers directly. That way, an old cached answer does not hide a record you have just added. While the page is open, Admin also checks again by itself, for up to an hour.

If something is not right, Admin says what it found, for example:

- No record was found at the address yet.
- The address points to another name. Admin shows that name and the target it should point to instead.
- The CNAME record is proxied at Cloudflare and must be set to DNS only.
- The TXT record cannot be seen yet, or its content differs from the one Admin shows.

Admin also shows when it last checked. You fix the one thing that is wrong and press Check now again.

## HTTPS, and a check that your site answers

When the records are found, CCMS sets up HTTPS for your address. That usually takes a few minutes. Sites on CCMS Hosting answer over HTTPS only: plain http page requests are redirected to https.

Then CCMS checks that your site really answers on the new address. It asks for the published front page through your domain, the way a visitor would. CCMS does not make the domain the main address before it has seen your site answer there. Until then, visitors keep finding the site at its ccms.site address.

## One main address, permanent 301 redirects

A site can answer on several addresses: its ccms.site address and every domain you connect, for example with and without www. One of them is the main address. Every other address sends visitors there with a permanent 301 redirect. The redirect keeps the page path and query, so an old link opens the same page on the main address. Visitors and search engines all arrive at one address.

By default, the main address is the first of your own domains that CCMS saw showing the site. You can make another address the main address in Admin. Only page requests are redirected. Requests to the site’s own API are answered on the address they were sent to.

## What you need today, and what is coming

Your own domain is for the published site on [CCMS Hosting](https://ccms.build/admin/publishing-hosting/), not for the preview address. The project needs CCMS Hosting and must have been published once before the domain is connected. Today, you add the records at your DNS provider, and Admin checks them when you press Check now or while the page is open.

Two improvements are coming soon. The first is domain checks that keep running for three days, also with the page closed. The second is [automatic DNS](https://ccms.build/admin/automatic-dns/): when your DNS is at Cloudflare, Admin adds the records for you after you confirm. Both are built, but neither is switched on yet, so today you add the records yourself. [One domain per language](https://ccms.build/admin/language-domains/), which gives each language of your site its own domain, is also coming soon.

[Ask us](mailto:hello@ccms.build)

## Questions and answers

### Which DNS provider do I need?

You can keep the DNS provider you use today, as long as you can add a TXT record and a CNAME record there. For a domain without www, your provider needs CNAME flattening, ALIAS or ANAME. If it has none, connect the www address and forward the bare domain to it at your DNS provider.

### Does Admin connect my domain automatically?

Not on its own today. You add the records at your DNS provider. Admin checks them and connects the domain when you press Check now, and it checks again by itself while the page is open. Checks that keep running with the page closed, and automatic DNS for domains at Cloudflare, are coming soon.

### My DNS is at Cloudflare. What should I watch for?

Set the CNAME record to DNS only, with a grey cloud. If the record is proxied, with an orange cloud, Admin tells you and asks you to change it. For a domain without www, Cloudflare uses CNAME flattening, so the record works at the root of the domain.

### Can I remove the TXT record later?

Yes. The TXT record only proves that the domain is yours. You can remove it once the domain is active, or leave it in place.

### What happens to my ccms.site address?

It stays. When your domain is the main address, the ccms.site address sends visitors to your domain with a permanent 301 redirect.
