https://github.com/zbblanton/cloudflare_dynamic_dns
Small program for dynamic DNS using Clouldflare API.
https://github.com/zbblanton/cloudflare_dynamic_dns
cloudflare cloudflare-api cloudflare-dns cloudflare-dynamic-dns dynamic-dns golang
Last synced: 3 months ago
JSON representation
Small program for dynamic DNS using Clouldflare API.
- Host: GitHub
- URL: https://github.com/zbblanton/cloudflare_dynamic_dns
- Owner: zbblanton
- License: gpl-3.0
- Created: 2017-12-01T21:35:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-02T10:20:52.000Z (over 5 years ago)
- Last Synced: 2025-01-26T15:29:21.876Z (5 months ago)
- Topics: cloudflare, cloudflare-api, cloudflare-dns, cloudflare-dynamic-dns, dynamic-dns, golang
- Language: Go
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cloudflare Dynamic DNS
## Description
Small program that will automatically update your Cloudflare DNS with your dynamic public IP.## Getting Started
Compiling from source:
```
go build
```
Or download the latest binary from the [Releases](https://github.com/zbblanton/cloudflare_dynamic_dns/releases).Then:
```
Rename config.json.example -> config.json
```Create an API user on Cloudflare and get your Zone ID from the overview page.
Use this information to fill out the config.json file's cloudflare_api section.Optional: Configure the SMTP settings and set "enable" to "true".
No need to modify the public_ip_urls section.
You can change the interval (in minutes). It's default will check every 1 minute.
## Examples
Run with default everything:
```
./cloudflare_dynamic_dns
```Run as a cronjob:
```
*/1 * * * * ./path/to/cloudflare_dynamic_dns --cron=true --config=/path/to/config.json --log=true --log_path=/path/to/cloudflare_dynamic_dns.log
```Run as background task:
```
nohup ./path/to/cloudflare_dynamic_dns --config=/path/to/config.json --log=true --log_path=/path/to/cloudflare_dynamic_dns.log &
```