https://github.com/sleavely/cloudflare-dyn-ip-updater
Automatically update Cloudflare records for a dynamic IP
https://github.com/sleavely/cloudflare-dyn-ip-updater
cloudflare dyndns nodejs
Last synced: about 2 months ago
JSON representation
Automatically update Cloudflare records for a dynamic IP
- Host: GitHub
- URL: https://github.com/sleavely/cloudflare-dyn-ip-updater
- Owner: Sleavely
- License: mit
- Created: 2017-11-22T12:44:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-16T10:53:37.000Z (about 6 years ago)
- Last Synced: 2025-01-12T16:12:28.995Z (3 months ago)
- Topics: cloudflare, dyndns, nodejs
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cloudflare dynamic IP updater
A simple script to replicate the ol' DynDNS functionality.
## Installing
```
git clone https://github.com/Sleavely/cloudflare-dyn-ip-updater.git
cd cloudflare-dyn-ip-updater
npm install
```Environment variables (can be set with a `.env` file):
- **CLOUDFLARE_EMAIL** _(required)_
- **CLOUDFLARE_APIKEY** _(required)_ You can find this under "My Profile" in CF
- **CLOUDFLARE_DOMAIN** _(required)_ The domain you wish to keep updated. E.g. `home.example.com`
- **REFRESH_RATE** Number of minutes between checking for new IP.
- **DEBUG** Set to `*` to log verbosely.## Running
```
DEBUG="*" npm start
```It is recommended you run it as a background service in e.g. `pm2` unless you are keen to keep network traffic at a minimum.