Could you please look into this and correct it? I’m encountering errors when setting up DNS. Although I can search for solutions online, it’s important to fix this so no one else misses anything.
Thank you and happy Saturday.
If you could provide the page where the link is, that would help us a lot
Hello Here is the URL given on the DNS section.
I thought I gave it, but maybe I fat fingered in the forum post. Sorry about that.
You already shared that link but I couldn’t find any reference of it in the documentation. How did you get the link?
Go to your domain section, click on your domain, and then select DNS. You’ll see that your registrar is Cloudflare along with a link to the API documentation. Gandi also provides a similar process which worked last year. I hope this helps.
thanks, happy saturday.
In Domain section > Click on your domain > Select DNS
The link provided https://yunohost.org/registar_api_cloudflare still returns a 404 error.
Here are the steps I followed to try to make it work.
- Went to https://dash.cloudflare.com/
- Went to Manage account > Account API tokens
- Clicked on Create token
- Selected template : Edit zone DNS
- Modified template information :
Permissions : Zone DNS Edit
Zone Resources : Include Specific zone mydomain.tld
Start date : Today
End date : 1 year or more - Clicked on Continue to summary
- Verified information
- Clicked on Create Token
- Copied DNS API token
- Pasted it in Authentication token field in Yunohost (Home > Domains > mydomain.tld)
- In Cloudflare, clicked on Account home
- Next to my domain, there is 3 vertical dots, I clicked on them
- Clicked on Copy zone id
- Pasted the zone id in Yunohost zone_id field
Left Yunohost auth_username field empty ! Super important steps. That’s what made the connection with API possible !
- Clicked on Save
- Got a new error ! Yey !
The registrar is not yet configured for domain mydomain.tld.
Halfway there, hang on.
You need command line access to your server via SSH :
ssh root@mydomain.tld
or
ssh admin@mydomain.tld
or
ssh root@myLocalIP
or
ssh admin@myLocalIP
- Created a new file the registrar config for my domain
sudo mkdir -p /etc/yunohost/dns/registrars
sudo nano /etc/yunohost/dns/registrars/mydomain.tld.yml
- Pasted the following Cloudflare registrar template into it:
cloudflare:
auth_token: MY_CLOUDFLARE_API_TOKEN
zone_id: MY_ZONE_ID - Replaced :
MY_CLOUDFLARE_API_TOKEN with my actual token
MY_ZONE_ID with my actual zone ID from Cloudflare - Then saved (Ctrl+O, Enter, Ctrl+X).
- Tested the DNS:
sudo yunohost domain dns suggest mydomain.tld
- Saw the DNS config provided by Yunohost. Yey !
- Restarted Yunohost server
I still have the error
The registrar is not yet configured for domain macaques.ca.
Any idea to solve this ?