Skip to main content

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

Project description

check-ip

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

Installation

check-ip can be installed with pip:

python -m pip install check-ip

Usage

check-ip config.yaml

The config file should take the following form:

---
email: user@example.com
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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

check-ip-0.4.5.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

check_ip-0.4.5-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page