Custom domains
Every public HTTP project created on Zenifra automatically receives a free platform subdomain. This address lets you access the application without buying or configuring your own domain.
Private HTTP projects (exposure: private) do not receive a subdomain and cannot use custom domains while they remain without public exposure.
The default format is:
project-name.clients.zenifra.comYou can use this subdomain for testing, initial validation, internal environments, or as an operational fallback. For production, you can also connect your own domain, such as:
mysite.com.br
www.mysite.com.br
app.mysite.com.brHow domain connection works
To connect your own domain to an application hosted on Zenifra, follow this general flow:
- Create the project on Zenifra.
- Enter the desired domain in the Console.
- Configure the DNS records at the provider where the domain is hosted.
- Wait for DNS validation and SSL certificate issuance.
In the console
- Open the project and click Edit.
- In the Custom domains section, click Add, enter the domain, and click Save custom domains. Add one domain at a time.
- In the Configure custom domain DNS window, create the records from the table at your DNS provider and delete the ones marked ❌ Remove. The table has the columns Type, Name, Create with value, and We found, and each row shows its status next to it.
- The window refreshes on its own every 30 s. The Check now button checks the current state right away.
- To review the records later, click View DNS setup in the Custom domains section.
Do not remove and add the same domain to see the records again. Each new registration changes the
TXTvalues, and the records already created at your provider stop being valid. Use View DNS setup.
Limits: up to 20 custom domains per project, with at most one new domain per change. A domain already in use by another project is rejected. Custom domains only work on public HTTP projects; private projects and Scheduled Jobs do not accept custom domains.
How to read the records table
Each row of the table is a DNS record. The We found column shows what exists today in the domain's DNS, and the last column shows the status of the row:
| Status | What it means | What to do |
|---|---|---|
| ✅ Correct | The record exists with the expected value. | Nothing. |
| ⏳ Not found yet | The record does not exist yet or has not propagated yet. | Create the record with the value from the Create with value column and wait a few minutes. |
| ❌ Remove | A record exists that gets in the way of the domain, such as an AAAA or a second A on @. | Delete that record at your DNS provider. |
| We couldn't check right now | The DNS lookup failed at this moment. | Wait for the next refresh or click Check now. |
On rows that exist only to point out a record to delete, the Create with value column shows — (do not create).
Below the table, the HTTPS certificate: line shows the certificate progress:
- active: HTTPS already works.
- issuing, usually takes a few minutes: DNS is correct and the certificate is being issued.
- waiting for the DNS to be correct: there are still ⏳ or ❌ rows in the table.
- is not issued while project access is restricted by IP: access is restricted when Only trusted IPs can access is on in the Protection restricted access. Turn restricted access off in Edit project, in the Protection section, so the certificate can be issued.
Important: always use the values from the Console table for that domain and project. Do not copy values from examples, old screenshots, or DNS lookups. For subdomains, the table shows a
CNAMEand theTXTvalidation records. For the apex domain, it shows oneAto create.
After DNS points correctly, Zenifra validates the domain and automatically configures routing to send traffic to the correct application. The HTTPS certificate is also issued automatically after DNS validation.
Apex domain and subdomain
Before creating DNS records, identify whether you want to point the apex domain or a subdomain.
Apex domain
The apex domain is the main address registered with the domain provider:
yourdomain.com.brIt can also appear as a root domain or naked domain in some DNS providers.
Subdomain
Subdomains are names created below the apex domain:
www.yourdomain.com.br
app.yourdomain.com.br
system.yourdomain.com.brUse subdomains when you want to separate applications, environments, or product areas, such as a public website, admin panel, and API.
Which record to create in each case
Always use the values shown in the Console for your project. The table below summarizes each case when you set up a domain now.
| Case | What to create at the DNS provider | Works? |
|---|---|---|
Subdomain (www, app, system...) | CNAME with the value shown in the Console, plus the validation TXT records the table shows | Yes, at any provider |
Wildcard (*.yourdomain.com) | Two CNAME records: * and _acme-challenge, with the values shown in the Console (see Wildcard domain) | Yes, at any provider |
| Apex domain, at any provider | A single A record on @ with the value shown in the Console | Yes |
| Apex domain with DNS on Cloudflare | The same A record, with the proxy off (gray cloud, DNS only) | Yes |
New apex domain with a CNAME, ALIAS, or ANAME on @ | Do not create; delete | Does not work |
New apex domain with an AAAA or another A on @ | Do not create; delete | Does not work |
| Apex domain added earlier that already works | Nothing; do not change its DNS (see Apex domain added before automatic setup) | Yes |
In some DNS providers, the name field can be called Nome, Host, or Name. Usually:
@represents the apex domain, such asyourdomain.com.brwwwrepresentswww.yourdomain.com.brapprepresentsapp.yourdomain.com.br
Configure subdomains
For subdomains, such as www, app, or system, create a CNAME record pointing to the address shown in the Console. This works at any DNS provider.
Example for www.yourdomain.com.br:
Type: CNAME
Name: www
Value: CNAME address shown in the ConsoleExample for app.yourdomain.com.br:
Type: CNAME
Name: app
Value: CNAME address shown in the ConsoleDo not create conflicting records for the same name. For example, www should only have the CNAME indicated by Zenifra, plus the validation TXT records when requested.
Configure an apex domain
The apex domain (yourdomain.com.br, without www) is also called the root or naked domain. It works at any DNS provider and the setup is always the same: a single A record on @, with the value the Console shows. There is no TXT record for the apex domain.
Apex domain added before automatic setup
Apex domains that already work keep working as they are: do not change their DNS. If the table of an apex domain shows a CNAME row and the alert This root domain was added before automatic setup, remove the domain under Custom domains and add it again. The table then shows the A record from the step by step below.
Step by step
- Open the project, click Edit, and in the Custom domains section add the apex domain and click Save custom domains.
- In the Configure custom domain DNS window, find the
Arow with the name@. The value of that row is the one you will use. - At the DNS provider, create the record:
Type: A
Name: @
Value: value shown in the "Create with value" column in the Console- Delete the other records on
@at the DNS provider:AAAA,ALIAS,ANAME,CNAME, and any otherA. In the Console table, theAandAAAArows that get in the way are marked ❌ Remove. ACNAME,ALIAS, orANAMEon@has no row of its own: it usually shows up as anotherAmarked ❌ Remove, but you still need to delete it at the provider. - Follow the window. It refreshes on its own every 30 s and, when the
Arow shows ✅ Correct, DNS is ready. - The HTTPS certificate is issued automatically, usually a few minutes after DNS is correct. The HTTPS certificate: line shows active when it finishes.
Important:
@must have only theArecord shown in the Console. If anAAAA,ALIAS, or anotherArecord remains, the domain may work only some of the time and the HTTPS certificate is not issued.
If the domain's DNS is on Cloudflare
Create the same A record on @, but keep the proxy off: the record's cloud must be gray (DNS only). With the orange cloud (proxy on), Cloudflare answers in place of Zenifra and the domain is neither validated nor given the HTTPS certificate.
What to delete from the apex domain
When you set up an apex domain now, these setups can look correct at the DNS provider, but they keep the apex domain from being activated, and the browser shows a DNS or secure connection error. Delete all of them from @:
CNAME,ALIAS, orANAME. At some providers, such as Hostinger, aCNAMEcreated on@is saved asALIAS. Delete the record and create theA.AAAA. An oldAAAArecord makes the domain work only on part of the networks and blocks the HTTPS certificate.- Other
Arecords, including IPs copied from a DNS lookup of the Zenifra address. Only theAshown in the Console is valid. - A
CNAMEorALIASfrom the apex domain to your ownwww. DNS only swaps the name for an address; the browser still requests the apex domain.
Redirecting the apex domain to www at the same provider does not solve it either: some providers, such as Hostinger, do not allow redirecting a domain to itself. Create the A on @ and the CNAME on www, and leave both names pointing to Zenifra.
Wildcard domain (*.yourdomain.com)
A wildcard domain serves, with a single entry, any name right below your domain: customer1.yourdomain.com, customer2.yourdomain.com, and so on. It fits a SaaS with one address per customer, without adding each subdomain.
What the wildcard covers
- One level below the domain:
*.yourdomain.comservesshop.yourdomain.com, but nota.shop.yourdomain.com. For another level, add another wildcard, such as*.shop.yourdomain.com. - The apex domain is not included: to serve
yourdomain.com, add it as well, following Configure an apex domain. - A name you add on its own wins over the wildcard: you can point
api.yourdomain.comto another project of the same organization, and every other name stays on the wildcard. - The names below the wildcard stay with your organization: no other organization can add
*.yourdomain.comor a name below it. If another organization already uses one of those names, the wildcard is refused. - The wildcard counts as one of the project's 20 domains.
Video: wildcard with the DNS at Registro.br
The video shows the whole flow: adding *.shop.zenifra.com.br, creating the records in Registro.br DNS (which does not accept *, so each address gets its own CNAME), waiting for the certificate and opening the addresses over HTTPS.
Step by step
- Open the project, click Edit, and in the Custom Domains section add
*.yourdomain.comand click Save custom domains. - In the Configure custom domain DNS window, the table shows two
CNAMErecords. Create both at your DNS provider:
Type: CNAME
Name: *
Value: custom-origin.zenifra.com
Type: CNAME
Name: _acme-challenge
Value: value shown in the "Create with value" column in the Console- Follow the window. It refreshes every 30 s. When the
_acme-challengerow shows ✅ Correct, the HTTPS certificate starts being issued, and the HTTPS certificate: line shows active when it is done. Only then do the addresses open the application.
Keep the
_acme-challengeCNAME. It proves the domain is yours and lets the certificate renew automatically, without you going back to DNS. The value is different for each project: always copy it from the table. If_acme-challengealready has aTXTrecord (from another service that issues certificates for your domain), delete it: providers do not accept aCNAMEand aTXTon the same name.
If your provider does not accept * in the name
Some providers do not accept * in a record name. Registro.br's own DNS is one of them: it refuses the entry when you save the zone. In that case, keep the _acme-challenge CNAME and create one CNAME for each address you will use, with the same value as the * row:
Type: CNAME
Name: shop
Value: custom-origin.zenifra.com
Type: CNAME
Name: blog
Value: custom-origin.zenifra.comThe wildcard certificate already covers all of these addresses, and each new name works as soon as its record propagates, with no change on Zenifra. The * row in the table stays as ⏳ Not found yet, because that record does not exist in your DNS.
Cloudflare
If the domain's DNS is on Cloudflare, keep the proxy off (gray cloud) on the _acme-challenge CNAME. On the * CNAME, the proxy can be on once the certificate is active; in that case use Full (strict) mode in SSL/TLS.
Configuration examples
Example 1: www only
You want to publish the application at www.yourdomain.com.br.
- In the Console, add
www.yourdomain.com.brunder Custom domains. - At the DNS provider, create:
Type: CNAME
Name: www
Value: CNAME address shown in the Console- Also create the
TXTrecords shown in the Console, when there are any.
Example 2: apex and www with DNS on Cloudflare
- In the Console, add
www.yourdomain.com.brand thenyourdomain.com.br(one domain at a time). - On Cloudflare, create:
Type: CNAME
Name: www
Value: CNAME address shown in the Console
Type: A
Name: @
Value: value of the A @ row shown in the Console- On the
Arecord for@, keep the proxy off (gray cloud, DNS only). - Also create the
TXTrecords forwwwshown in the table, when there are any.
Example 3: apex and www with DNS at Hostinger (or another provider)
- In the Console, add
www.yourdomain.com.brand thenyourdomain.com.br(one domain at a time). - At the DNS provider, create the
wwwCNAME:
Type: CNAME
Name: www
Value: CNAME address shown in the Console- For the apex domain, create the
Arecord with the value shown in the Console:
Type: A
Name: @
Value: value of the A @ row shown in the Console- Delete the other records on
@(AAAA,ALIAS,ANAME,CNAME, and otherArecords). The Console marks theAandAAAArows with ❌ Remove; aCNAME,ALIAS, orANAMEusually shows up as anotherAmarked ❌ Remove and also has to be deleted at the provider. - Also create the
TXTrecords forwwwshown in the table, when there are any.
After saving the records, follow the View DNS setup window. DNS propagation can take from a few minutes to a few hours, depending on the DNS provider. Once the rows are ✅ Correct, the HTTPS certificate is issued on its own in a few minutes.
Validation, routing, and HTTPS
When DNS records propagate, Zenifra checks whether the domain points to the expected destination. After validation, the platform configures internal routing so requests to the custom domain reach the correct application.
HTTPS is also configured by Zenifra and the certificate is issued automatically once DNS is correct. The apex domain has no TXT record; on subdomains, issuance may require the TXT records shown in the table.
SSL validation TXT records
During certificate issuance for a subdomain, the Console may show one or more TXT records with a name similar to this:
Type: TXT
Name: _acme-challenge.www.yourdomain.com.br
Value: validation token shown in the ConsoleIf the Console shows two TXT records with the same name, publish both values. This is normal for ACME/TLS validation. Do not replace one token with the other.
Type: TXT
Name: _acme-challenge.www.yourdomain.com.br
Value: first-token
Type: TXT
Name: _acme-challenge.www.yourdomain.com.br
Value: second-tokenWhile the certificate is being validated, the domain may already appear as registered, but HTTPS can still fail. Wait until the HTTPS certificate: line shows active before considering the setup complete. If the certificate has not been issued yet, check whether all TXT records were saved correctly and wait for propagation before opening a support request.
Best practices
- Use the apex domain and
wwwwhenever possible, especially for public applications. - Avoid changing DNS records without understanding the impact on email, website, APIs, and other services.
- Check that there are no conflicting records for the same name; keep only the
CNAMEindicated by Zenifra and the required validationTXTrecords. - On the apex domain, create only the
Ashown in the Console and deleteAAAA,ALIAS,ANAME,CNAME, and otherArecords from@; on Cloudflare, keep the proxy off (gray cloud). - Use View DNS setup to review the records; do not remove and add the domain again.
- Publish all TXT validation records shown in the Console; multiple TXT records with the same name may be required.
- Wait for DNS propagation before opening a support request.
- Keep the domain active and renewed at the registrar.
- Keep the free Zenifra subdomain as an operational reference during the initial setup.
Next steps
- Project configuration
- How to create an HTTP project
- Production deployment on Zenifra
- Common issues and troubleshooting
- Get your site on Google (Search Console)
FAQ
Can I use my own domain on Zenifra?
Yes. In addition to the free Zenifra subdomain, you can connect your own domain to the project, such as mysite.com.br, www.mysite.com.br, or app.mysite.com.br, as long as the project is public. The limit is 20 domains per project.
Where do I find the DNS target?
In the Configure custom domain DNS window, which opens after the domain is saved and can be reopened with View DNS setup. The Create with value column has the value of each record. Always use the values shown for the corresponding project.
Can I use CNAME on the apex domain?
No. On the apex domain, create only an A record on @, with the value shown in the Console. A CNAME, ALIAS, or ANAME on @ has no row of its own in the table: it usually shows up as another A marked ❌ Remove. Delete it at the DNS provider before creating the A.
Does Registro.br allow CNAME on the apex domain?
No, and you do not need it. Set up www with a CNAME as usual and create the apex domain with an A record on @, with the value shown in the Console.
What does ❌ Remove mean in the table?
An A or AAAA record exists in the domain's DNS that gets in the way of the setup, such as an AAAA or an A with a different value on @. The We found column shows the value found. A CNAME, ALIAS, or ANAME on @ also gets in the way and usually shows up as an extra A (the address it points to). Delete the record at your DNS provider and click Check now.
How long does DNS propagation take?
DNS can take a few minutes or up to a few hours to propagate, depending on the DNS provider, the configured TTL, and the network used to access the domain.
Does Zenifra configure HTTPS automatically?
Yes. After DNS points correctly and the domain is validated, Zenifra automatically configures HTTPS/SSL for the custom domain.
Why does HTTPS still fail if the CNAME is already correct?
On the apex domain, the certificate is issued on its own as soon as the A is ✅ Correct. On subdomains, certificate issuance may also depend on TXT records under _acme-challenge. If there are two TXT tokens for the same name, publish both. After the records propagate, the certificate authority may still take a few minutes to issue and activate the certificate.
Do I need to use Cloudflare?
No. Subdomains such as www work with a CNAME at any DNS provider, and the apex domain works at any provider with the A record shown in the Console. If your DNS is on Cloudflare, keep the proxy off (gray cloud) on the apex domain's A.
Can I turn on the Cloudflare proxy (orange cloud)?
On www and other subdomains with a CNAME, yes. On the apex domain, no.
- Subdomain (
CNAME): turn on the orange cloud after the domain shows as active in the Console. Traffic goes through your Cloudflare account first and then through Zenifra (Cloudflare calls this Orange-to-Orange), so the WAF, bot challenges, and the other rules of your zone apply. The HTTPS certificate is still issued and renewed by Zenifra, and the domain stays active in the Console.- In SSL/TLS, use Full (strict) mode.
- You do not need Always Use HTTPS on your zone: Zenifra already redirects HTTP to HTTPS. Keeping it off avoids interfering with automatic certificate renewal.
- Cache only static files (images, CSS, JS); caching HTML or API responses can serve one visitor's page to another.
- According to Cloudflare, Rocket Loader, Always Online, Origin Rules, and Load Balancing on your zone do not apply to this traffic.
- Apex domain (
A): keep the cloud gray (DNS only). The apex certificate is issued and renewed directly at Zenifra; with the proxy on, automatic renewal is no longer guaranteed and, if it fails, the site goes down when the current certificate expires. The Console also starts showing theArecord as incorrect.
To also protect the apex domain with Cloudflare, redirect it to www on Cloudflare itself: turn on the proxy on the @ A record, create a Redirect Rule from yourdomain.com/* to https://www.yourdomain.com/${1} (301), and remove the apex domain from Custom Domains in the Console. The apex domain then never reaches Zenifra and all traffic goes through www.
The visitor's real IP still reaches the app; see Real visitor IP.
Can I use www and the apex domain at the same time?
Yes. Add www.yourdomain.com.br and yourdomain.com.br in the Console, one at a time. www uses a CNAME; the apex domain follows the Configure an apex domain section.
Can I point every subdomain at once?
Yes, with a wildcard domain: add *.yourdomain.com and create the two CNAME records the Console shows. The wildcard serves one level below the domain and does not include the apex domain. See Wildcard domain.
Last updated on
CDN cache
Learn how the CDN included with Zenifra caches content: what it stores, the 2-hour default, how to set the time with Cache-Control, and how to ship updates.
Get your site on Google (Search Console)
Get the site on your .clients.zenifra.com address or your own domain on Google: Search Console URL prefix, HTML tag or file, sitemap, robots.txt and indexing.