Skip to content
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

dnspod plugin's bug #352

Closed
jgh004 opened this issue May 26, 2021 · 8 comments
Closed

dnspod plugin's bug #352

jgh004 opened this issue May 26, 2021 · 8 comments

Comments

@jgh004
Copy link

jgh004 commented May 26, 2021

When the A record is updated without sub_domain, the A record of the root domain name will be updated
For example, I want to update ddns.xxx.com
Actually it updated xxx.com
Forgive my bad english

@troglobit
Copy link
Owner

That plugin was submitted by @ysc3839, maybe he or someone else can give some input here.

@ysc3839
Copy link
Contributor

ysc3839 commented May 27, 2021

Sorry, I'm not using dnspod now, and I'm not interesting in fixing this issue.
Maybe I will have a look when I have time.

@troglobit
Copy link
Owner

No problem, thanks for checking back! <3

Anyone else using dnspod can help out by reproducing the problem, locating their API documentation, and suggesting a fix.

@imess
Copy link

imess commented Nov 5, 2021

Looks like the sub_domain is missing from line 177 of plugins/dnspod.c,

login_token=%s%%2C%s&format=json&domain=%s&record_id=%d&record_line=%s&value=%s&sub_domain=%s

and line 179
domain, record_id, "%E9%BB%98%E8%AE%A4", alias->address, prefix);

try fixing it and compiling yourself

@troglobit
Copy link
Owner

Anyone had a chance to test this latest suggestion yet? Since I don't have dnspod myself I cannot test, and would likely risk breaking the plugin even further if I do the change speculatively.

A new release is coming soonish, so if someone can submit a pull request, or at least help out testing that would be much appreciated!

@troglobit
Copy link
Owner

OK, no response in this thread. I've added the suggested fix to the plugin in b6e7ea9. It's a speculative change and completely untested, but will at least be part of v2.9.0

@imess
Copy link

imess commented Nov 21, 2021 via email

@troglobit
Copy link
Owner

@imess OK, thanks! Let's hope I got it right ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants