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

AliDns : The parameter is invalid #150

Closed caijingwen-vincent closed 2 years ago

caijingwen-vincent commented 2 years ago

Describe the bug

  1. configure the configuration file
  2. run godns.exe
  3. get the error : The parameter value Value is invalid.

The frequency of this issue

Your GoDNS configuration
{ "provider": "AliDNS", "email": "REPLACE_ME_ACCESS_KEY", "password": "REPLACE_ME_ACCESS_TOKEN", "login_token": "", "domains": [{ "domain_name": "***.com.cn", "sub_domains" : ["www"] } ], "resolver": "2001:4860:4860::8888", "ipv6_url": "", "ip_type": "IPv6", "ip_url": "", "interval": 10, "socks5_proxy": "" }

Expected behavior
update ali dns correct

Screenshots
run exe file result: image ali probleck check result: image

Environment (please complete the following information):

caijingwen-vincent commented 2 years ago

I open the debug level ; and I found that my ip printed as null . maybe there is the question. I use the ipv6 mode; image

caijingwen-vincent commented 2 years ago

When I change the configuration properties from "ipv6_url": "" to : "ipv6_url": "http://api-ipv6.ip.sb/ip" The debug log shows my ipv6 address ,and then update correct ; image

so the README.md says below may wrong ?: image

caijingwen-vincent commented 2 years ago

I found that I missed the ip_interface configuration properties when I want GodDNS find the ipv6 of the machine it is running on.

and I get the IP interface value by : https://superuser.com/a/1003939 rather than the hard code "Local Area Connection" ; and now Everything work normally ; thanks you!

{ "provider": "AliDNS", "email": "REPLACE_ME_ACCESS_KEY", "password": "REPLACE_ME_ACCESS_TOKEN", "login_token": "", "domains": [{ "domain_name": "***.com.cn", "sub_domains" : ["abc","www"] } ], "resolver": "2001:4860:4860::8888", "ip_type": "IPv6", "ipv6_url": "http://api-ipv6.ip.sb/ip", "ip_interface":"WLAN", "interval": 300, "socks5_proxy": "", "debug_info": true }

TimothyYe commented 2 years ago

Thanks for your feedback and it is good to hear that you've figured out the problem.