How to set up DNS-O-MATIC for Cloudflare (and the other way around) and a FritzBox
After searching and e-mailing with the supports of Cloudflare and DNS-O-MATIC for days (months), I have finally everything working. Because there is not a single page which explains everything and probably there is another person on this planet which has also trouble with this, I decided to write a small summary about how to get Cloudflare and DNS-O-MATIC together working.
At DNS-O-MATIC you must set the following settings:
- Service: Cloudflare
- E-Mail: “E-Mail-address which is registered at Cloudflare”
- API Token: “API Token from Cloudflare”
- Hostname: dynamic
- Domain: “yourdomain.xyz”
At Cloudflare you must set the following records:
- Type: A | Name: dynamic | Value: “your WAN IP” ***
- Type: CNAME | Name: “yourdomain.xyz” | Value: dynamic.”yourdomain.xyz”
- Type: CNAME | Name: www | Value: “yourdomain.xyz”
*** will later be actualized by DNS-O-MATIC
At your FritzBox you must set the following DDNS settings:
- DDNS Provider: User-defined
- Update-URL: https://updates.dnsomatic.com/nic/update?myip=<ipaddr>
- Domain name: “yourdomain.xyz”
- User name: “E-Mail-address which is registered at DNS-O-MATIC”
- Password: “Password which is registered at DNS-O-MATIC”
Everything in “” (including the “”) you must replace with your stuff.
If something isn’t the way it should be, please feel free to correct me.
Cheers
-
"After searching and e-mailing with the supports of Cloudflare and DNS-O-MATIC for days (months)"
You could have saved the efforts. I would have told you within minutes...
Btw, the following update URL on the FRITZ!Box is already sufficient:
https://updates.dnsomatic.com/nic/update?myip=<ipaddr>
The other parameters are obsolete. And as domain name you specify one of the real hostnames you're updating through DNS-O-Matic, else your FRITZ!Box will raise error messages.
-
Thanks for the info. I’ve updated my post with your FRITZ!Box settings.
Everything worked flawlessly until DNS-O-MATIC moved from Cloudflare’s API1 to API4. Neither DNS-O-MATIC support nor Cloudflare support could help me what I have to change. Your post at https://support.cloudflare.com/hc/en-us/articles/206142407-Using-DNS-O-Matic-dynamic-DNS-updates-with-CloudFlare- and another article at https://support.cloudflare.com/hc/en-us/articles/206142407-Using-DNS-O-Matic-dynamic-DNS-updates-with-CloudFlare- gave me the hint how it works.
-
Hey everyone,
Kudos to @Fabiano1994 for providing this short summary. Helped a lot!
I´m trying to understand how this might work with multiple domains.
i do have the following scenary at the moment and ideally I would like to update multiple domains using the FritzBox DynDNS feature if possible.
- Domain A with DNS at ChangeIP (to be migrated to Cloudflare in the near future)
- Domain B with DNS at Cloudflare
- Corresponding records for both domains at DNS-O-Matic
At the moment my FritzBox DynDNS settings include "Domain B" in the DYNDNS Domain Name field, but I´d like to achieve that both domains (A and B) are updated.
Any idea how to achieve this? I do have the DDClient installed on a Pi but unfortunately I never got it to work properly with Cloudflare.... So I´d either use Fritzbox DYNDNS or DDCLient to update both domains
-
The domain name field on the FritzBox is not the domain which will be updated, but the domain where the FritzBox checks with if an update is needed, and after the update if the update was successful. So you can use any of your hostnames configured at DNS-O-Matic for the FritzBox domain name field to make it work.
In other words: it should already work as you want it to work if you have set it up as outlined above.
Please sign in to leave a comment.
Comments
12 comments