Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/p0l0/cloudflare-dyndns
CLI for DynDNS Service using Cloudflare (mirror from gitlab)
https://github.com/p0l0/cloudflare-dyndns
cloudflare dyndns
Last synced: 7 days ago
JSON representation
CLI for DynDNS Service using Cloudflare (mirror from gitlab)
- Host: GitHub
- URL: https://github.com/p0l0/cloudflare-dyndns
- Owner: p0l0
- License: mit
- Created: 2020-03-01T20:45:27.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-20T12:20:49.000Z (9 months ago)
- Last Synced: 2024-11-08T08:52:00.341Z (about 2 months ago)
- Topics: cloudflare, dyndns
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![Go](https://github.com/p0l0/cloudflare-dyndns/actions/workflows/go.yml/badge.svg)](https://github.com/p0l0/cloudflare-dyndns/actions/workflows/go.yml) [![codecov](https://codecov.io/gh/p0l0/cloudflare-dyndns/branch/master/graph/badge.svg?token=I0X54WFSO6)](https://codecov.io/gh/p0l0/cloudflare-dyndns)
# Cloudflare DynDNS Client
A DynDNS Client using Cloudflare API
## Configuration
Configuration needs to be saved as a JSON File. Examples can be found under _config_ folder.If you are using the new Cloudflare API Token:
```json
{
"cloudflare": {
"apiToken": "token"
},
"dnsZone": {
"name": "domain.com",
"record": "subdomain"
}
}
```For the old API Key (not recommended):
```json
{
"cloudflare": {
"apiKey": "key",
"email": "[email protected]",
},
"dnsZone": {
"name": "domain.com",
"record": "subdomain"
}
}
```### Token Permissions
Currently, following Token permissions are required:- Permissions
- Zone:Zone:Read
- Zone:DNS:Edit
- Zone Resources
- All ZonesUnfortunately, it's currently not possible to give the token only permissions on the desired Zone, this is a known
issue at Cloudflare, hopefully this will be fixed in future.## Build from source
```shell script
make
```## Running tests
```shell script
make test
```