Cloudflare
With the Cloudflare integration, you can keep your Cloudflare DNS records up to date.
The integration runs every hour, but can also be triggered by running the cloudflare.update_records
service.
Requirements
The setup requires an API Token created with Zone:Zone:Read
and Zone:DNS:Edit
permissions for all zones in your account.
An easy way to create this is to start with the “Edit zone DNS” template then add Zone:Zone:Read
to the permissions.
Configuration
Adding Cloudflare to your Home Assistant instance can be done via the user interface, by using this My button:
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the sidebar click on Settings.
-
From the configuration menu select: Devices & Services.
-
In the bottom right, click on the Add Integration button.
-
From the list, search and select “Cloudflare”.
-
Follow the instruction on screen to complete the set up.
Additional information
Usage of external service
This platform uses the API from ipify.org to set the public IP address.
Limitations
Unusable TLDs
Due to a limitation in the Cloudflare API, you can not use this integration with any of the following TLD’s:
.cf
.ga
.gq
.ml
.tk
Record types
This integration can only update A records.