record-ip-to-dnspod
Record machine’s ip to DNSpod via DNSPod’s API.
Installation
To install:
pip install record-ip-to-dnspod
Example Usage
Command:
record-ip-to-dnspod -c /path/record-ip.ini
If you wan’t install via pip, you can:
git clone https://github.com/codeif/record-ip-to-dnspod.git cd record-ip-to-dnspod && python -m record_ip_to_dnspod.bin -c /path/record-ip.ini
Config Example
ini文件:
[record-ip] log-path = record-ip.log token = 1234,your-token-str email = me@codeif.com domain = example.com sub-domain = test ; interface = eth0 ; exclude-ips = 127.0.0.1,172.16.0.1
Config Options
必填配置项
配置项 |
说明 |
|---|---|
log-path |
日志路径 |
token |
Token, 例如:13490,6b5976c68aba5b14a0558b77c17c3932&format=json |
联系邮箱,用于API请求的User-Agent. |
|
domain |
域名, 例如: example.com |
sub-domain |
主机记录, 如 www,可选,如果不传,默认为 @ |
可选配置项
配置项 |
说明 |
|---|---|
interface |
只记录指定的网卡,例如: eth0 |
excluet-ips |
不记录下面的ip, 比如’127.0.0.1,172.16.0.1’ |
Metadata
Release files for record-ip-to-dnspod 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| record-ip-to-dnspod-0.1.1.tar.gz | 4.0 kB | Without provenance | Details for record-ip-to-dnspod-0.1.1.tar.gz |
Release files / record-ip-to-dnspod-0.1.1.tar.gz
| Download URL | record-ip-to-dnspod-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7906981fea590119cd851140af4db2f60ca08aea3ebf45b702b6999121f22a5
|
|
BLAKE2b-256 checksum How to use checksums |
3f7299e4991620656c35e9620b3052c6301817ff3ab82804035d76c9b5ac4b92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for record-ip-to-dnspod 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.