-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support aliyun dns #252
Conversation
can you help me review my code? @qdm12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Just a few minor comments to fix up and I'll merge it.
Have you had the change to test run it? Let me know if you need help building the Docker image.
EDIT: I'm away until Tuesday so I might be not answering until then!
request.RR = p.host | ||
request.RecordId = recordID | ||
|
||
_, err = client.UpdateDomainRecord(request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this create the domain record if it doesn't exist? Also what's the first element returned, the response? It might be worth checking what's in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think user need create the domain by themself, we needn't do create action. if recordID not found, it will return errors.ErrRecordNotFound
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- use
DescribeDomainRecords
check if this domain existed under this clients and get the recordID. - use recordID update the domain's IP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I know, it's just there is #129 that I'm working on for all providers.
It's fine, I'll take care of it at a later time if it's not trivial to implement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great, I will follow your action. let me handle it for this provider.
thanks for your review, I have pushed image in my personal account, and test it in my NAS |
hi @qdm12 , have you came back? can you help me review my code? |
Thanks @cnjack for the fixes! Just a tiny suggestion to commit in the docs/aliyun.md and I'll merge it! |
updated the document, thanks for your job |
No problem, I will try it. |
No description provided.