check-ip

Check your public IP address and update DNS records on Cloudflare.

GitHub Code style: black

Installation

check-ip can be installed with pip:

pip install check-ip

Usage

check-ip config.yaml

The config file should take the following form:

---
email: [email protected]
api_key: <your Cloudflare API key>
zone: example.com
records:
  - www
  - server

This will update the A records www.example.com and server.example.com to point to your current public IP address.

check-ip will not output anything if it does not need to update any records. To see a message for records which match the current public IP address, use the -v or --verbose flag:

$ check-ip -v config.yaml
Public IP matches www.example.com (12.34.567.89)

Contributing

This project is hosted on GitHub