mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-07-29 00:52:37 -04:00
Feature request: Add Aliyun DNS as provider #116
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zzzhouuu on GitHub (May 2, 2021).
Originally assigned to: @fredericrous on GitHub.
What's the feature?
Include Aliyun DNS as provider please
Extra information?
Thanks. Many thanks for all.
Why do you need this feature?
I have a home server with Aliyun DNS and Aliyun Domains and would be awesome to have automatic ddns update.
@fredericrous commented on GitHub (May 18, 2021):
Aliyun is Alibaba cloud, correct? Am I looking at the correct documentation? https://www.alibabacloud.com/help/doc-detail/29772.htm?spm=a2c63.p38356.b99.91.badb2d7bjYrGPW
@qdm12 commented on GitHub (May 18, 2021):
Thanks @fredericrous! Let me know if you're on it 😉 I'm still a few days away from it (in my work queue, working on other repos right now) anyway.
@fredericrous commented on GitHub (May 18, 2021):
@qdm12 I should have spare time end of next week to work on this.
I did more digging. Alibaba cloud has a SDK: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/services/alidns/update_domain_record.go
documentation: https://www.alibabacloud.com/help/doc-detail/66217.htm
@zzzhouuu commented on GitHub (May 20, 2021):
@fredericrous commented on GitHub (May 20, 2021):
nice work @zzzhouuu could you create a PR that way will begin the review process.
Also I don't think
ErrHostWildcardis relevant for alidns. It's possible to set a wildcard with this api, isn't it? therefore I would let the possibility to set it.@qdm12 commented on GitHub (May 20, 2021):
Thanks! I can do it right now as a PR don't worry 😉 be back soon with a test image
@qdm12 commented on GitHub (May 20, 2021):
Actually I'll use https://www.alibabacloud.com/help/doc-detail/34272.html?spm=a2c5t.11065259.1996646101.searchclickresult.56ec6428yZ0qoE directly to have one less dependency.
I'm currently fighting against vulnerabilities on other repos due to dependencies, so the less the better, especially since Alibaba's one seems rather huge.
@fredericrous commented on GitHub (May 21, 2021):
yeah idk, normally Go compiler should compile only what's needed so even if the lib is huge this shouldn't impact more than necessary the size of the binary. Regarding vulnerabilities...alibaba's sdk looks pretty active but that's true that among the dependencies it depends on there are some old ones that doesn't look active like github.com/davecgh/go-spew . Apparently authentication is not hard to do see https://github.com/TimothyYe/godns/blob/master/handler/alidns/alidns.go
@qdm12 commented on GitHub (Oct 14, 2021):
Support added in #252 through the SDK. I'll eventually get to removing the SDK dependency because I'm stubborn 😄
@qdm12 commented on GitHub (Oct 15, 2021):
I reworked the code in 8a14828cdc5a6e311788f479c5745ff26ce6aebe to have no SDK dependency and only do http calls to their API directly. The Docker image is available
qmcgaw/ddns-updater:aliyun-nosdk, maybe @zzzhouuu can you try it sometime?Also thanks @fredericrous the links you posted helped me quite a bit 😉
@qdm12 commented on GitHub (Jun 15, 2024):
@zzzhouuu does the current ddns-updater program work today with Aliyun? Thanks!
@zzzhouuu commented on GitHub (Jun 15, 2024):
I tested it to work.
@qdm12 commented on GitHub (Jun 15, 2024):
Thank you so much @zzzhouuu glad it's working fine (I was wondering if it was working ok!) 👍 Enjoy!
@ycsh-w commented on GitHub (Jun 27, 2024):
Folks, is it expected if I see
"Code":"DomainRecordDuplicate","Message":"The DNS record already exists."but can confirmddns-updaterwrites to Aliyun successfully?@qdm12 commented on GitHub (Jun 28, 2024):
@a-w-1806 which program version are you using?