Jump to content
macester

CloudFlare Dyn-DNS Client

9 posts in this topic Last Reply

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

Share this post


Link to post

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?

Share this post


Link to post

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.

Share this post


Link to post

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...

Share this post


Link to post

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.

Share this post


Link to post

I´ve only used it as a ddns with "their caching" turned of and worked great, nice to hear it workes with ssl maby time to setup an owncloud through them. ;)

Share this post


Link to post

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

 

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post

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.