This is a simple script to update a Cloudflare DNS record with your current public IP address.
- Clone the repo
- Run
npm install
- Copy
.env.example
to.env
- Edit
env.json
with your Cloudflare API key and the DNS record you want to update - Run
npm start
- NPM
- NodeJS
- A Cloudflare account
- Cloudflare API key #Here
- A Cloudflare API key with the following options:
- Permissions:
- Zone:DNS:Read
- Zone:DNS:Edit
- Zone Resources:
- Include: Specific zone
- Select zone: The zone you want to update
- Client IP Address Filtering:
- Is not in: 192.168.1.1 (or whatever your local IP is)
- Permissions:
- A Cloudflare API key with the following options:
- Cloudflare API key #Here