Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zimgil/cloudflare-dynamic-dns
Keep your Domain's A record pointing to your dynamic IP address
https://github.com/zimgil/cloudflare-dynamic-dns
cloudflare-dns cloudflare-dynamic-dns dns-management dynamic-dns home-server
Last synced: about 1 month ago
JSON representation
Keep your Domain's A record pointing to your dynamic IP address
- Host: GitHub
- URL: https://github.com/zimgil/cloudflare-dynamic-dns
- Owner: ZimGil
- License: mit
- Created: 2020-05-12T08:20:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-11T11:51:37.000Z (almost 2 years ago)
- Last Synced: 2023-05-17T15:26:16.482Z (over 1 year ago)
- Topics: cloudflare-dns, cloudflare-dynamic-dns, dns-management, dynamic-dns, home-server
- Language: JavaScript
- Homepage:
- Size: 593 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudeflare-dynamic-dns
Keep your Domain's A record pointing to your public IP address**Warning:** This will patch ***ALL*** A records to your public IP
## How to install
```
$ git clone https://github.com/ZimGil/cloudeflare-dynamic-dns.git
$ cd cloudeflare-dynamic-dns
$ npm install
$ npm run build
```## How to use
Some environment variables are needed (`.env` file is supported):
* `ZONE_ID` - Zone ID, can be found in your cloudflare site Overview.
* `CLOUDEFLARE_API_TOKEN` - [Create an API Token](https://dash.cloudflare.com/profile/api-tokens) - use the `Edit zone DNS` template and choose your Zone.
* `CRON_EXPRESSION`*(optional)* - A [`cron`](https://en.wikipedia.org/wiki/Cron) expression.
* `INTERVAL_IN_MINUTES` *(optional)* - How offten should the IP be verified in minutes. (Overriden by `CRON_EXPRESSION`)
* `LOG_FILES_PATH` *(optional)* - Path to log files directory (Defaults to `./log/`)**NOTE:** In case of an invalid cron expression, single execution will replace the scheduled execution.
When all environment variables are set, run `npm start`