Skip to content

bddjr/westddns-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

westddns-py

西部数码专用的 DDNS 脚本,暂时仅支持 IPv4 地址。

在 Linux 安装

  1. 安装脚本依赖
pip3 install requests
  1. 创建目录
sudo mkdir -m 700 -p /opt/westddns-py
  1. 获取脚本
sudo curl https://raw.githubusercontent.com/bddjr/westddns-py/refs/heads/main/westddns.py -o /opt/westddns-py/westddns.py
  1. 创建并填写配置文件。
    apidomainkey请参考 https://www.west.cn/docs/505763.html 填写。
sudo nano /opt/westddns-py/conf.json
{
	"apidomainkey": "",
	"domain": "example.com",
	"hostname": "ddns.example.com"
}
  1. 创建服务
sudo bash -c "curl https://raw.githubusercontent.com/bddjr/westddns-py/refs/heads/main/westddns.service -o /etc/systemd/system/westddns.service && systemctl daemon-reload"
  1. 运行服务(开机自启)
sudo systemctl enable --now westddns
  1. 查看日志
sudo journalctl -u westddns

About

西部数码专用的 DDNS 脚本。

Topics

Resources

License

Stars

Watchers

Forks

Languages