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 details)
Built Distribution
File details
Details for the file check-ip-0.4.5.tar.gz
.
File metadata
- Download URL: check-ip-0.4.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b4dea440b24c5e471046a9b899e2ba8005ce4882048d0f0d1a543ebaf537d1 |
|
MD5 | e1d149f2df5d81beb79dae66bb3e8748 |
|
BLAKE2b-256 | b7c60d33df19951ce5e59c6538fde5ce9de6a2a6a4811c8fedab73d196184b85 |
File details
Details for the file check_ip-0.4.5-py3-none-any.whl
.
File metadata
- Download URL: check_ip-0.4.5-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2429087231b404c91678faf40b6a96f225c5b033a01001faeb23cc2e757dcef |
|
MD5 | 04346d7312d0f8cd7e4608be116f634b |
|
BLAKE2b-256 | 505da5201a926ed04994ea82578f06dc65716b310cb154c3f447edc6a291ce6e |