Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

csvwolf/hostker-ddns

Repository files navigation

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 经常变,想绑个域名的话________,这么说你应该懂了。

About

support ddns service to hostker domain parser

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /