https://github.com/escomputers/cloudflare-dns-record-update-api
Update host client public IP address on Cloudflare DNS type A records via API
https://github.com/escomputers/cloudflare-dns-record-update-api
Last synced: 9 months ago
JSON representation
Update host client public IP address on Cloudflare DNS type A records via API
- Host: GitHub
- URL: https://github.com/escomputers/cloudflare-dns-record-update-api
- Owner: escomputers
- License: apache-2.0
- Created: 2023-06-25T21:01:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-06T19:09:03.000Z (over 2 years ago)
- Last Synced: 2025-01-24T22:41:22.308Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Description
Update host client public IP address on Cloudflare DNS type A records via API using 3 different endpoints for fetching.
### Requirements
This script requires:
* an existing Cloudflare DNS A record
* 3 environment variables:
* CLOUDFLARE_ZONEID (the zone ID of DNS record to be updated)
* CLOUDFLARE_DNSRECORD_ID (ID of DNS record to update)
* CLOUDFLARE_TOKEN (Authorization Bearer Token needed to access API)
### Usage
Run this command by passing your Cloudflare DNS A record to be updated:
```bash
python -m pip install -r requirements.txt
python update.py
```