Jump to content

CloudFlare Dyn-DNS Client


Recommended Posts

Hi,

 

Just created a docker for updating dns records on CloudFlare´s free dns service.

 

It uses a php script to update through CloudFlare´s API, it checks the ip every 120 seconds.

 

 

Configuration:

Click "Advanced View" in the upper right corner.

Scroll down and change the Environment Variables to match your CloudFlare details.

 

Docker-Templates:

https://github.com/macexx/docker-templates

 

//Regards Mace

  • Upvote 1
Link to comment

Hi,

 

Just created a docker for updating dns records on CloudFlare´s free dns service.

 

It uses a php script to update through CloudFlare´s API, it checks the ip every 120 seconds.

 

 

Configuration:

Click "Advanced View" in the upper right corner.

Scroll down and change the Environment Variables to match your CloudFlare details.

 

Docker-Templates:

https://github.com/macexx/docker-templates

 

//Regards Mace

 

To soon to say I love you?

Link to comment

Not heard of cloudfare before but certainly looks intriguing, is this docker compatible with SSL? I need to do a bit more research and would want to use the free service but my whole website is password protected as it's basically a portal for my family to use various apps, look at photos and stream music etc.

Link to comment

Hi,

 

Just created a docker for updating dns records on CloudFlare´s free dns service.

 

It uses a php script to update through CloudFlare´s API, it checks the ip every 120 seconds.

 

 

Configuration:

Click "Advanced View" in the upper right corner.

Scroll down and change the Environment Variables to match your CloudFlare details.

 

Docker-Templates:

https://github.com/macexx/docker-templates

 

//Regards Mace

 

To soon to say I love you?

 

If you feel it, let it happen...

Link to comment

Not heard of cloudfare before but certainly looks intriguing, is this docker compatible with SSL? I need to do a bit more research and would want to use the free service but my whole website is password protected as it's basically a portal for my family to use various apps, look at photos and stream music etc.

 

I actually left my paid DynDNS service for Cloudflare.  Works great with my SSL docker.  Only downfall is because they also do cacheing of your content SSH/VPN and stuff doesn't work on the main domain. You have to make a subdomain and not route it through their caching.

Link to comment
  • 3 years later...

Hi all,

 

Just installed this docker. Entered my CF email address linked to my account my domain name i.e. leoncole.com and also my GLOBAL API key however im getting this in the log files below.  Any ideas? Or does this docker no longer work?

 

Its pretty easy to read the error its saying the API creds are wrong however I have literally triple checked this over and over again lol.

 

in /root/updateip.php on line 16
Bad API credentials
Contacting the Cloudflare API to determine DNS zone
PHP Warning: file_get_contents(https://www.cloudflare.com/api_json.html): failed to open stream: HTTP request failed! HTTP/1.1 410 Gone

 

Link to comment
4 hours ago, leon101noel said:

Hi all,

 

Just installed this docker. Entered my CF email address linked to my account my domain name i.e. leoncole.com and also my GLOBAL API key however im getting this in the log files below.  Any ideas? Or does this docker no longer work?

 

Its pretty easy to read the error its saying the API creds are wrong however I have literally triple checked this over and over again lol.

 


in /root/updateip.php on line 16
Bad API credentials
Contacting the Cloudflare API to determine DNS zone
PHP Warning: file_get_contents(https://www.cloudflare.com/api_json.html): failed to open stream: HTTP request failed! HTTP/1.1 410 Gone

 

I'm using the same docker. Could your issue be related to this:

 

It looks like CloudFlare has changed their API and I'm trying to ascertain if this docker still works.

Link to comment
23 hours ago, leon101noel said:

Hi all,

 

Just installed this docker. Entered my CF email address linked to my account my domain name i.e. leoncole.com and also my GLOBAL API key however im getting this in the log files below.  Any ideas? Or does this docker no longer work?

 

Its pretty easy to read the error its saying the API creds are wrong however I have literally triple checked this over and over again lol.

 


in /root/updateip.php on line 16
Bad API credentials
Contacting the Cloudflare API to determine DNS zone
PHP Warning: file_get_contents(https://www.cloudflare.com/api_json.html): failed to open stream: HTTP request failed! HTTP/1.1 410 Gone

 

This seems to be working for me, give it a try. Only for CloudFlare.

Link to comment
  • 4 years later...

For those with cloudflare, I followed this tutorial here to setup my cloudflare DDNS update: cloudflare-ddclient

 

docker container log:

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    99
User gid:    100
-------------------------------------

[custom-init] No custom files found, skipping...
[ls.io-init] done.
SUCCESS:  updating <domain.tld>: IPv4 address set to <x.x.x.x>

 

Edited by bigbangus
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...