hostker-ddns

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 3 Imported by: 0

README

hostker-ddns

Hostker DDNS 方便用户使用 DDNS 到 Hostker 域名解析服务

使用

安装

现在可以基于 shell 脚本安装依赖了,支持 Mac / Linux;Windows 有 exe,不确定是否可用

curl -o /tmp/install.sh -L https://github.com/csvwolf/hostker-ddns/raw/master/build.sh && \
    chmod +x /tmp/install.sh && \
    /tmp/install.sh
初始化
hostker-ddns init # 输入必要的信息

Token 请在:https://console.hostker.net/index.html#/Account 获取 API 密钥

测试配置
hostker-ddns run # 单次运行,可以在平台中确认
运行
hostker-ddns start # 会每分钟跑一次,可以配合 Dockerfile 使用
在容器中运行

要在容器中运行,你可以使用 init 命令初始化,也可以直接建立 .ddns-config.yaml

# 以下信息都可以在 https://console.hostker.net/index.html#/Domain/manage/[域名] 中找到,如果不清楚,请使用 init
domain: [域名]
email: [登录邮箱]
record:
    header: [主机头]
    type: [类型,一般是 A 或者 AAAA]
    ttl: [TTL]
    value: [记录值(IP)]
token: [API 密钥]

之后拉镜像并执行

docker pull csvwolf/hostker-ddns:latest
docker run -d --name ddns --restart=always -v /Users/user/.hostker:/root/.hostker csvwolf/hostker-ddns

DDNS 是个啥

家里的 IP 经常变,想绑个域名的话________,这么说你应该懂了。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL