Skip to main content

Manage your DNS records with ease.

Project description

dns-manager

一个可扩展的 DNS 管理工具。

安装 Downloads

使用 pip/pipx 安装

在此之前请确保安装 Python3.10 及以上版本,并安装了 pip

pip install dns-manager[all]

如果想要尝试 Nightly 版本,可尝试(需确保使用Python3.12

pip install git+https://github.com/zrr1999/dns-manager@main

在此之前请确保安装了 pipx

pipx install dns-manager[all]

源码安装(需确保使用Python3.12

git clone https://github.com/zrr1999/dns-manager
cd dns-manager
pip install .

使用说明

首先创建一个配置文件,例如 sdns.json,内容如下:

{
  "domain": "mydomain.com",
  "records": [
    [
      "test", // 也就是 test.mydomain.com 指向的路径
      "baidu.com" // 解析值,目前只支持 A 记录和 CNAME 记录,会根据此处的值自动判断
    ],
  ]
}

然后执行以下命令:

dns-manager update --path ~/.config/dns-manager/sdns.json

此时,你的解析记录就会增加一条 test.mydomain.com 的 CNAME 记录指向 baidu.com

维护者

@zrr1999

如何贡献

非常欢迎你的加入!提一个 Issue 或者提交一个 Pull Request

贡献者

感谢以下参与项目的人:

使用许可

GNU © Rongrui Zhan

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dns_manager-0.1.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file dns_manager-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dns_manager-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for dns_manager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33447a84e994e7d909bdc77500806615deb07bc0ef6bc53f26b485805fe6c973
MD5 a2a7099a37e53ab3e3b4fc92bb918435
BLAKE2b-256 354e0c37852e843d11dc48c9c328999fb8d5ef18100a90580076f71702a32053

See more details on using hashes here.

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