Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renfei/ddns-for-cloudflare
The DDNS (Dynamic Domain Name Server) practice case based on Cloudflare APIv4.
https://github.com/renfei/ddns-for-cloudflare
cloudflare cloudflare-ddns cloudflare-dns d-dns ddns dynamic-dns
Last synced: 15 days ago
JSON representation
The DDNS (Dynamic Domain Name Server) practice case based on Cloudflare APIv4.
- Host: GitHub
- URL: https://github.com/renfei/ddns-for-cloudflare
- Owner: renfei
- License: apache-2.0
- Created: 2021-02-14T04:13:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T12:16:08.000Z (about 3 years ago)
- Last Synced: 2024-12-17T09:07:47.249Z (17 days ago)
- Topics: cloudflare, cloudflare-ddns, cloudflare-dns, d-dns, ddns, dynamic-dns
- Language: Java
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[English](README.md) | [简体中文](README_ZH.md)
# DDNS-for-Cloudflare
The DDNS (Dynamic Domain Name Server) practice case based on Cloudflare APIv4.## Dependent Service
- [ip.renfei.net](https://ip.renfei.net)
- [cloudflare](https://gitee.com/rnf/cloudflare)## Getting Started
First, download the latest jar: [https://github.com/renfei/ddns-for-cloudflare/releases/download/1.0.0/ddns-1.0.0.jar](https://github.com/renfei/ddns-for-cloudflare/releases/download/1.0.0/ddns-1.0.0.jar)Run jar and pass parameters:
- -z zone: domain name managed in cloudflare, for example: renfei.net
- -t token: API token in cloudflare [https://dash.cloudflare.com/profile/api-tokens](https://dash.cloudflare.com/profile/api-tokens)
- -d domain: set the domain name of DDNS, for example: test.renfei.netexample:
```bash
java -jar ddns-1.0.0.jar -z renfei.net -t kK8tQ1gY1mV3hH4jJ9yN9zP8bL1hB6uU6vB2tT1o -d test.renfei.net
```
Background operation cases:
```bash
nohup java -jar ddns-1.0.0.jar -z renfei.net -t kK8tQ1gY1mV3hH4jJ9yN9zP8bL1hB6uU6vB2tT1o -d test.renfei.net >ddns.log 2>&1 &
```## Development and Debugging
Before debugging, set the```Program arguments```:
```bash
-z -t -d
# example:
-z renfei.net -t kK8tQ1gY1mV3hH4jJ9yN9zP8bL1hB6uU6vB2tT1o -d test.renfei.net
```
![Debug settings](document/image/debug_setting.png)