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 221 forks source link

DNSPOD限制每小时3600个请求,导致系统无法使用了 #113

Closed zsinba closed 3 years ago

zsinba commented 3 years ago

Describe the bug
A clear and concise description of what the bug is.

The frequency of this issue

Steps to Reproduce
Steps to reproduce the behavior.

Your GoDNS configuration
Past your GoDNS configuration here, please remember to remove the sensitive information.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context
Add any other context about the problem here.

TimothyYe commented 3 years ago

配置文件里面有 "interval": 300 默认5分钟循环一次,你现在配置的多少?

zsinba commented 3 years ago

默认是五分钟,不也就是300s吗, 配置的300不就是五分钟吗.

我之前 尝试修改为10,20,100,120,300,600. 都是返回错误,跟DNSPOD的官方沟通,说是超限的原因

可能原因是我的域名下面二级域名比较多修改,所以就超限了.

TimothyYe commented 3 years ago

你配置了多少个二级域名?

zsinba commented 3 years ago

三十个左右吧。

TimothyYe commented 3 years ago

按30个二级域名来算,interval 配置成5分钟一次,如果GoDNS第一次启动,每5分钟就会轮询一遍域名和所有子域名,第一次执行更新所有二级域名,这样粗略估计下来一个小时总API调用次数就是 (1+30+30) * 12 = 732 也没达到3600次。

你是不是在一个小时内多次启动了程序,所以才会超?

zsinba commented 3 years ago

我在NAS开了一个Docker ,在虚拟机开了一个服务。 是两个godns在跑。

如果设置的不是5分钟,是30秒。 也就是每小时120,一天是2880次, 这离的是比较近了。

这样来看,问题就找到了。

有什么建议吗?

TimothyYe commented 3 years ago

你的使用场景是什么? 为啥要跑两个godns? 另外,为啥要配置30个二级域名呢?

TimothyYe commented 3 years ago

如果DNSPod有API调用次数限制的话,可以试试其他的DNS解析服务商

zsinba commented 3 years ago

多谢你的回复, 我换阿里云的DNS了。

LiCijun commented 3 years ago

如果DNSPod有API调用次数限制的话,可以试试其他的DNS解析服务商 最好是应用程序检测到ip地址没有变更的情况下,就不提交到后台。这样就大大减少了调用次数。