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 only update the lastest domain on CloudFlare #163

Closed JuneTwooo closed 2 years ago

JuneTwooo commented 2 years ago

Describe the bug
I have 5 domains on CloudFlare, since some month, godns just update the latest in the config file 5x

The frequency of this issue

Steps to Reproduce

Your GoDNS configuration
{ "provider": "Cloudflare", "email": "", "password": "", "domains": [ { "domain_name": "domain1.com", "sub_domains": ["@"] }, { "domain_name": "domain2.me", "sub_domains": ["@"] }, { "domain_name": "domain3.com", "sub_domains": ["@"] }, { "domain_name": "domain4.com", "sub_domains": ["@"] }, { "domain_name": "domain5.com", "sub_domains": ["@"] } ], "resolver": "8.8.8.8", "ip_url": "https://ifconfig.co", "ip_type": "IPv4", "interval": 300, "socks5_proxy": "" }

Expected behavior
Update all domains

Logs
time="2022-07-05T21:49:40Z" level=info msg="GoDNS started, entering main loop..." time="2022-07-05T21:49:40Z" level=info msg="Creating DNS handler with provider: Cloudflare" time="2022-07-05T21:49:40Z" level=info msg="Checking IP for domain domain5.com" time="2022-07-05T21:49:40Z" level=info msg="Checking IP for domain domain5.com" time="2022-07-05T21:49:40Z" level=info msg="Checking IP for domain domain5.com" time="2022-07-05T21:49:40Z" level=info msg="Checking IP for domain domain5.com" time="2022-07-05T21:49:40Z" level=info msg="Checking IP for domain domain5.com" time="2022-07-05T21:49:41Z" level=info msg="Querying records with type: A" time="2022-07-05T21:49:41Z" level=info msg="Querying records with type: A" time="2022-07-05T21:49:41Z" level=info msg="Querying records with type: A" time="2022-07-05T21:49:41Z" level=info msg="Querying records with type: A" time="2022-07-05T21:49:41Z" level=info msg="Querying records with type: A" time="2022-07-05T21:49:42Z" level=info msg="Record OK: domain5.com - ..." time="2022-07-05T21:49:42Z" level=info msg="Record OK: domain5.com - ..." time="2022-07-05T21:49:42Z" level=info msg="Record OK: domain5.com - ..." time="2022-07-05T21:49:42Z" level=info msg="Record OK: domain5.com - ..." time="2022-07-05T21:49:43Z" level=info msg="Record OK: domain5.com - ..."

Environment:

TimothyYe commented 2 years ago

Thanks for the feedback, this issue is introduced by commit https://github.com/TimothyYe/godns/commit/74bd598b735e9b1a772c28ff632eee595ec08777

I've fixed it, please use the latest version v2.8.1