@phil-r/cloudflare-ddns

Small node.js program that allows you to use CloudFlare as a DDNS / DynDNS Provider.

Usage no npm install needed!

<script type="module">
  import philRCloudflareDdns from 'https://cdn.skypack.dev/@phil-r/cloudflare-ddns';
</script>

README

cloudflare-ddns

Installation

First, make sure you have node >= 8 and npm installed.

To install run

npm install -g @phil-r/cloudflare-ddns

Usage

following environment variables are required to run:

CF_KEY - your cloudflare API key, you can get one here

CF_EMAIL - your cloudflare account email

ZONE - domain/website you want to run updates for (e.g. example.com)

SUBDOMAIN - subdomain/CNAME you want to run updates for

PROXIED - whether it should be proxied or not (orange cloud in cloudflare DNS settings)

Example command can look like:

CF_EMAIL=john@example.com \
CF_KEY=11116x635034x27x111170006x465f1111xxxa \
ZONE=example.com \
SUBDOMAIN=www \
PROXIED=false \
cloudflare-ddns