Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ddns-headscale

运行在headscale服务器上,通过headscale node list -o json命令获取节点信息,运行本程序前请确认该命令有输出节点信息。

将headscale上的各个node与子域名绑定,格式为 机器名Name + 用户名User + 域名Domain,如机器名为abc,用户名为zhangsan,域名为example.com,则对应的node的子域名为abc.zhangsan.example.com

使用方法

本仓库使用poetry做包管理,poetry安装命令如下:

curl -sSL https://install.python-poetry.org | python3 -

详情见: Poetry

1. 复制config.yml.example为config.yml,并填写

cp config.yml.example config.yml

目前仅支持腾讯云

domain:域名

user_id:腾讯云域名解析的user_id

user_token:腾讯云域名解析的user_token

2. 复制domains.json.example为domain.json

cp domains.json.example domain.json

初始时为空即可,后续会自动更新

3. 添加环境

poetry install

4. 执行域名更新

poetry run python main.py

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages