#record #domain #set #registered #little #gandi #tool

app rs-gandi-dns-dynip

一个小工具,用于在 Gandi 注册的域名上设置 A 记录

2 个版本

0.1.3 2023 年 1 月 12 日
0.1.2 2022 年 1 月 9 日

#1874命令行工具

MIT 许可证

10KB
141

gandi-dns-dynip

一个小工具,用于在 Gandi 注册的域名上设置 A 记录。

为该记录设置的公网 IP 地址由 https://www.icanhazip.com/ 或通过命令行或配置文件手动设置确定。

安装

二进制文件

待定

Cargo

您可以使用 cargo 和 crates.io 从源代码构建。如果您尚未安装 Rust 编译器,请访问 rustup.rs 获取一个。然后您可以运行 cargo install rs-gandi-dns-dynip 并从 crates.io 下载并构建。

使用方法

USAGE:
    rs-gandi-dns-dynip [OPTIONS]

OPTIONS:
        --api-key <API_KEY>    [default: ]
        --config <CONFIG>
        --domain <DOMAIN>      [default: ]
    -h, --help                 Print help information
        --ip <IP>
        --record <RECORD>      [default: ]
    -V, --version              Print version information

配置

配置文件是一个基本 JSON 文件,具有以下结构

{
    "api_key": "gandi_api_key",
    "domain": "domain_name",
    "record": "domain_record_name",
    "ip": "ip (optional)"
}

参考

依赖项

~13–24MB
~366K SLoC