Edit DNS records at Gandi
Add the CNAME, ALIAS and TXT records yaya needs in the DNS Records tab at Gandi.
Last updated
Before you start
- Any plan. Connecting a domain you own is free on every plan.
- A Gandi login and a published yaya site.
- The domain uses Gandi LiveDNS name servers. With other name servers, edit the records at that provider.
In yaya, open Website > Domain, type the name in Hostname, and click Connect domain. Keep the DNS steps open.
Sign in and find the DNS page
- Sign in to Gandi.
- Click Domain in the left menu.
- Click your domain name.
- Open the DNS Records tab.
What the screen calls the fields
The table has a green Add button. A dialog asks for the host and the destination. Gandi pages do not name each box.
The text mode shows the zone file.
- Click Edit DNS Records.
- Edit the zone.
- Click Save.
In the zone file:
- The name is relative to your domain. Use
@for the bare domain andwwwfor www. - A CNAME or ALIAS target must end with a final dot. Gandi says the record does not work without it.
- A TXT value goes in double quotes.
Add the CNAME record for a subdomain or www
- Click Add.
- Choose CNAME.
- Type
wwwas the name. - Type the target from yaya as the destination, then a final dot, like
<target>.. - Confirm.
A CNAME overrides every other record at the same name. Gandi says the others are ignored.
Use the bare domain
Gandi supports an ALIAS record on the bare domain. It needs LiveDNS name servers.
- Click Add and choose ALIAS. If the dialog does not list it, use text mode.
- Type
@as the name. - Type the yaya value as the destination. End it with a dot.
- Confirm.
Two limits apply. The bare domain cannot already have an A or AAAA record. An ALIAS also breaks DNSSEC on the bare domain. If you use DNSSEC, use the www fallback.
For the fallback, connect www.example.com and add the CNAME. Then open the domain and its Web Forwarding tab. Click Create and forward the bare domain to www.example.com.
Gandi supports HTTPS on a forward. See Use a subdomain or www.
Add the TXT ownership record
yaya shows a name that starts with _cf-custom-hostname..
- Click Add and choose TXT.
- Type
_cf-custom-hostname.wwwas the name. Do not type the domain after it. - Paste the yaya value. In text mode, put it in double quotes.
- Confirm.
For the bare domain, type _cf-custom-hostname.
Delete or replace a conflicting record
- Find the old record for the same name in the table.
- Click the green pencil to change it, or the red trash icon to delete it.
- Confirm.
Delete an old A or AAAA record on @ before you add an ALIAS.
Check the result in yaya
- Open Website > Domain.
- Click Check again.
Gandi says a change can take up to 72 hours.
yaya sets up HTTPS on its own. There is no deploy step. Leave your mail records as they are. See Keep your email working.
Fix common problems
ALIAS is not offered. The domain uses Classic name servers. ALIAS works only with LiveDNS.
The record does not resolve. Check the final dot on the target.
Still waiting. See Fix a domain that won't verify and DNS records explained.
Provider's own guides: https://docs.gandi.net/en/domain_names/common_operations/dns_records.html and https://docs.gandi.net/en/domain_names/faq/record_types/alias_record.html and https://docs.gandi.net/en/domain_names/faq/record_types/cname_record.html (the final-dot rule for a CNAME is on this page)
Was this guide helpful?
Still stuck? Email support@yaya.page.