Sign inSign up

shrikantpatnaik/cloudflare_ddns

By shrikantpatnaik

•Updated over 8 years ago

A simple cloudflare ddns client

Image
0

100K+

shrikantpatnaik/cloudflare_ddns repository overview

⁠CLOUDFLARE DDNS UPDATER

A simple DDNS client to update A and AAAA records using the cloudflare API.

⁠USAGE

The program needs environment variables to run.

NameDefault Value/ RequiredDescription
CLOUDFLARE_EMAILREQUIREDCloudflare login email
CLOUDFLARE_API_KEYREQUIREDCloudflare API Key
DNS_ZONEREQUIREDDNS Zone to update
SUBDOMAINREQUIREDSubdomain to update
DEBUGfalseSet to true to enable verbose output
DONT_UPDATE_AfalseSet to true if the application should should not update A value
DONT_UPDATE_AAAAfalseSet to true if the application should not update AAAA value
IPV4_QUERY_URLhttp://canihazip.com/⁠Url to query for ipv4
IPV6_QUERY_URLhttp://canihazip.com/⁠Url to query for ipv6
HTTP_TIMEOUT5HTTP Timeout value in seconds
UPDATE_INTERVAL5Update interval value in minutes
UPDATE_ONCEfalseSet to true if the program should only update once
⁠Native

Build with go on your platform with

go build -a -o build/cloudflare_ddns

Run with the required environment variables

CLOUDFLARE_API_KEY=asdfghjklzxcvbnmqwertyuiop \
[email protected] \
DNS_ZONE=mydomain.com \
SUBDOMAIN=mysubdomain \
./build/cloudflare_ddns
⁠Docker

Run docker image

docker run --net=host \
-e CLOUDFLARE_API_KEY=asdfghjklzxcvbnmqwertyuiop \
-e [email protected] \
-e DNS_ZONE=mydomain.com \
-e SUBDOMAIN=mysubdomain \
shrikantpatnaik/cloudflare_ddns

Tag summary

Content type

Image

Digest

Size

4.6 MB

Last updated

over 8 years ago

docker pull shrikantpatnaik/cloudflare_ddns