Skip to content

itsdapi/-http_Python-aliddns_ipv4-ipv6

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker实现阿里云域名DDNS支持ipv4和ipv6

使用url请求来将新的公网地址同步到阿里云

Best Practice

搭配RouterOS内置的脚本功能可以实现公网地址更新,而且不依赖于任何的第三方公网ip获取工具,有效避免梯子等原因导致无法获取正确ip,或者第三方网站暂时下线等原因

食用方法

用写好的Docker-compose就能从源码编译并启动 或者从Docker-hub拉取

docker run --name=http-aliddns-server -p 5002:5000 -e ACCESSKEYID=key123 -e ACCESSSECRET=secret123 itsdapi/http-aliddns-server:latest

然后通过GET请求访问

http://your.ip:5000/updateV4?ip=1.1.1.1&domain=example.org&record=abc

将your.ip替换成服务器ip 有updateV4, updateV6可选 然后domain填自己域名,record就是域名最前面的那个

环境变量

ENV desc
ACCESSKEYID 阿里云访问id
ACCESSSECRET 阿里云访问密钥

About

阿里云域名ddns动态域名解析Python源码,打包http服务器

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.9%
  • RouterOS Script 7.8%
  • Dockerfile 5.3%