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_COM可能出错了 #286

Closed
houpi opened this issue Sep 10, 2021 · 3 comments
Closed

DNSPOD_COM可能出错了 #286

houpi opened this issue Sep 10, 2021 · 3 comments
Labels

Comments

@houpi
Copy link

houpi commented Sep 10, 2021

我的ID和TOKEN是没有问题的,才用来做过ACME的泛域名证书申请,但用来做DDNS时显示
hk.hkhkhk.hk(A) ==> 10.10.10.10 [via DIRECT]
2021-09-10 17:09:24,535 <dnspod.update_record> 153@/usr/local/lib/python3.8/dist-packages/dns/dnspod.py
[INFO] >>>>>hk.hkhkhk.hk(A)
2021-09-10 17:09:24,535 <dnspod.request> 48@/usr/local/lib/python3.8/dist-packages/dns/dnspod.py
[INFO] api.dnspod.com/Domain.Info : {'domain': 'hkhkhk.hk', 'user_token': '', 'format': 'json'}
2021-09-10 17:09:24,697 <dnspod.request> 70@/usr/local/lib/python3.8/dist-packages/dns/dnspod.py
[DEBUG] Domain.Info : result:{'status': {'code': '20004', 'message': 'user token validate failed', 'created_at': '2021-09-10 17:09:24'}}
2021-09-10 17:09:24,698 <dnspod.request> 48@/usr/local/lib/python3.8/dist-packages/dns/dnspod.py
[INFO] api.dnspod.com/Domain.Info : {'domain': 'hk.hkhkhk.hk', 'user_token': '
', 'format': 'json'}
2021-09-10 17:09:25,073 <dnspod.request> 70@/usr/local/lib/python3.8/dist-packages/dns/dnspod.py
[DEBUG] Domain.Info : result:{'status': {'code': '20004', 'message': 'user token validate failed', 'created_at': '2021-09-10 17:09:25'}}
2021-09-10 17:09:25,073 <dnspod.get_domain_info> 93@/usr/local/lib/python3.8/dist-packages/dns/dnspod.py
[INFO] domain_id: None, sub: None
2021-09-10 17:09:25,073 <run.change_dns_record> 83@/usr/local/lib/python3.8/dist-packages/run.py
[ERROR] invalid domain: [ hk.hkhkhk.hk ]

同时我发现dnspod_com.py文件非常简单,好像没有实际内容,是否己经取消了对dnspod.com的支持?

@houpi houpi added the bug label Sep 10, 2021
@houpi
Copy link
Author

houpi commented Sep 18, 2021

对比acme文件后得出以下进展:

在dnspod官方文档中https://docs.dnspod.com/api/5fe1b40a6e336701a2111f5b/
使用的是user_token参数

acme文件中https://github.com/acmesh-official/acme.sh/blob/master/dnsapi/dns_dpi.sh#L116
使用的是login_token参数

后使用官方文档中的curl -X POST 方法测试后发现,acme可以取得正确返回值,官方的验证失败
希望以上发现能够给完善代码节省时间

@NewFuture
Copy link
Owner

谢谢,可能是参数改了,但是文档没更新

@NewFuture
Copy link
Owner

NewFuture added a commit that referenced this issue Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants