Sign inSign up

cmmarslender/cf-dynamic-ip

By cmmarslender

•Updated over 5 years ago

Update a cloudflare record based on changing IP address

Image
0

1.8K

cmmarslender/cf-dynamic-ip repository overview

Used to use ddclient for this, but it stopped working for whatever reason. Made this to use in the meantime.

⁠Usage

Run the docker container with the following environment variables, and it should just work.

  • ZONE - The CloudFlare zone you are managing. If your record is a subdomain, this should be the MAIN domain, not the subdomain. example.com
  • RECORD - The specific A record you want to assign the IP address to. dynamic.example.com
  • CF_API_KEY - Your CloudFlare API Key (required to use the API)
  • IP_SERVICE - A simple web service that echos back your ip address (such as cmmarslender/ip-echo). Your IP address MUST be the ONLY content this service returns in the body.
  • INTERVAL - How often to check the IP, in seconds. Defaults to 300 (5 minutes)

docker run -it -e ZONE=example.com -e RECORD=dynamic.example.com -e CF_API_KEY=abc123 -e IP_SERVICE=https://ipecho.example.com cmmarslender/cf-dynamic-ip

Tag summary

Content type

Image

Digest

Size

66 MB

Last updated

over 5 years ago

docker pull cmmarslender/cf-dynamic-ip