TimothyYe / godns

A dynamic DNS client tool that supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
https://timothyye.github.io/godns/
Apache License 2.0
1.5k stars 220 forks source link

现在GODNS能接受通知后调用更新IP的接口吗? #179

Open FisherMS opened 2 years ago

FisherMS commented 2 years ago

这样的话在路由器上再写个WAN口的IP变动后主动通知给GODNS的插件,这样就能保证GODNS在第一时间去更新IP。

TimothyYe commented 2 years ago

现在还没这种接口,不过可以考虑加一个

FisherMS commented 2 years ago

我先学学Go,哈哈哈!

itviewer commented 1 year ago

大概思路在这里有提到 https://github.com/TimothyYe/godns/issues/132

多数路由器比如自用的小米路由器,都有自己的ddns功能,我们可以用Go随便起个http server,然后在路由器自己的ddns配置那里随便找个,填上我们自己的http服务器的地址,这样当重启路由器或者公网ip发生变化时,路由器ddns就会主动向我们自己起的http server发送请求,我们把路由器发送的http请求dump一下,看下格式,然后转换下再调用域名服务商如阿里云的api就可以