The objective is to provide a client to do dynamic dns updates in Cloudflare on behalf of your hass.io server. The configuration of this addon allows you to setup your Cloudflare domain to dynamically update whenever a change of your public IP address occurs.
Configuration
The available configuration options are as follows (this is filled in with some example data):
To use this repository with your own Hass.io installation please follow the official instructions on the Home Assistant website with the following URL:
https://github.com/davidramosweb/hassio-addons
You should add this in your automations.yaml:
- id: cloudflare-updater
alias: "IP Cloudflare Updater"
trigger:
- platform: time_pattern
# This will match every 1 minutes
minutes: '/1'
action:
- service: hassio.addon_restart
data:
addon: local_hassio_cloudflareipupdater
Because of my lack of insight that had led me to set everything as A-records instead of CNAME…
Standing corrected, I know see why this is not necessary…
Since you found it worth using the efforts to make this Addon as an alternative to using the CloudFlare component in Hass - could you elaborate what advantages this addon gives (apart from the interval used for checking the IP-address)?
Just out of curiousity
I have exactly the same issue, put all into A name, but how to put in CNAME? Sorry newb here. Could you post your clouflare screenshot (hiding your data of course)
this mine, of course I added more A for having more subdomain, but then only one is updated fron the addon
I was able to add a new domain (mydomain.live) which now works with Cloudflare IP Updater following the same steps so there is a problem with .tk websites which dont support the cloudflare API or something. Anyways I now have a new issue where Cloudflare IP updater would be able to be started, it will check for the ip and if different is able to update it without issues. However it will then turn off? For some reason it doesnt want to stay running
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Current time: 2020-08-24 19:49:31
IP: mypublicIP
Zone mydomain.live id : myid
Updating record 82415848bc1acf891d7df217fe3ccfea for host mydomain.live
IP changed to: mypublicIP
Current time: 2020-08-24 19:54:37
IP is unchanged : mypublicIP Exiting.
[cmd] /cloudflare.sh exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
I’m looking for a way to use the updater to updated the AAAA record with the IPV6. Checking in the code I’ve seen that it already reacts to an $IPV6 variable, but this variable is not set defined on the JSON config file.
I need some advise with the addon. I installed it and received the following error on when i try to start it - s6-overlay-suexec: fatal: can only run as pid 1