An open API service indexing awesome lists of open source software.

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

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
```