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.51k stars 224 forks source link

只想更新子域名,但是主域名也被更新了 #32

Closed Septrum101 closed 5 years ago

Septrum101 commented 5 years ago

只想更新yy.xxx.com域名的ip。结果连xxx.com的ip也一起更新了。

TimothyYe commented 5 years ago

能否看看你的配置文件?

Septrum101 commented 5 years ago

{ "provider": "Cloudflare", "email": "you@example.com", "password": "Global API Key", "domains": [{ "domain_name": "xxx.com", "sub_domains": ["yy"] } ], "ip_url": "https://ifconfig.co/ip" }

Septrum101 commented 5 years ago

"domain_name": "xxx.com",如果改成"domain_name": "yy.xxx.com", 系统报错

TimothyYe commented 5 years ago

大概知道原因了

Septrum101 commented 5 years ago

是小弟配置问题么?

TimothyYe commented 5 years ago

https://github.com/TimothyYe/godns/releases/tag/V1.6.2

刚发布了一个版本,试试这个

Septrum101 commented 5 years ago

子域名可以了,但是如果我想更新主域名应怎么填写?

TimothyYe commented 5 years ago

本来是设计成只更新子域名的,主域名,可以考虑在子域名里面加入'www'

Septrum101 commented 5 years ago

好的,我还以为加上@参数就能更新xxx.com这个域名。

TimothyYe commented 5 years ago

这个功能还没实现,哈哈

Septrum101 commented 5 years ago

哈哈,上个版本直接同时更新xxx.com和yy.xxx.com我还以为已经实现了呢。

TimothyYe commented 5 years ago

那是个bug