Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renfei/cloudflare-ddns-shell
CloudFlare Dynamic DNS. CloudFlare 动态 DNS。
https://github.com/renfei/cloudflare-ddns-shell
cloudflare cloudflare-ddns ddns ddns-script
Last synced: 3 days ago
JSON representation
CloudFlare Dynamic DNS. CloudFlare 动态 DNS。
- Host: GitHub
- URL: https://github.com/renfei/cloudflare-ddns-shell
- Owner: renfei
- License: mit
- Created: 2021-07-14T05:14:48.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T00:55:03.000Z (over 2 years ago)
- Last Synced: 2024-12-17T09:07:46.673Z (5 days ago)
- Topics: cloudflare, cloudflare-ddns, ddns, ddns-script
- Language: Shell
- Homepage:
- Size: 554 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[English](./README.md) | [简体中文](./README_ZH.md)
![Cloudflare](./document/image/cf-logo.jpg)
Note: the copyright of cloudflare® graphic trademark belongs to cloudflare, Inc.
# Cloudflare Dynamic DNS
Dynamic DNS Shell script based on CloudFlare API v4.## Parameter Description
The selected parameters are mandatory parameters:
- [x] -key: Cloudflare API Authorization Key, interface Token, application address: [https://dash.cloudflare.com/profile/api-tokens](https://dash.cloudflare.com/profile/api-tokens)
- [x] -zone: domain, for example: renfei.net
- [ ] -zone_id: The unique ID of the domain name on Cloudflare
- [ ] -type: Domain name record type, for example: A record
- [ ] -rec_id: The unique ID of the domain name record
- [x] -name: Second-level domain name such as www
- [ ] -content: request body content
- [ ] -ttl: Parsing record survival time, 1 is automatic
- [ ] -proxied: Whether to enable CloudFlare proxy## Example
Domain name: test2.renfei.net, first go to Cloudflare to add domain name A record resolution, and manually execute it once:
```bash
bash /path/to/cloudflare_ddns.sh -key 404613183ab3971a2118ae5bf03d63e032f9e -zone renfei.net -name test2
```
![Example](./document/image/example.png)### Executed by Linux cron timing task
```bash
crontab -e
0 */1 * * * ? /path/to/cloudflare_ddns.sh -key 404613183ab3971a2118ae5bf03d63e032f9e -zone renfei.net -name test2 >> /path/to/cloudflare_ddns.log
```