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

Report bug to Synology DSM dns api #3248

Open
arabezar opened this issue Nov 7, 2020 · 8 comments
Open

Report bug to Synology DSM dns api #3248

arabezar opened this issue Nov 7, 2020 · 8 comments
Assignees
Labels
3rd party api report bugs to dns api, deploy hooks and notification hooks

Comments

@arabezar
Copy link

arabezar commented Nov 7, 2020

This is the place to report bugs in Synology DSM DNS API.
If you experience a bug, please report it in this issue.
Thanks!

@Neilpang Neilpang added the 3rd party api report bugs to dns api, deploy hooks and notification hooks label Nov 19, 2020
@mwnu
Copy link

mwnu commented Apr 23, 2021

不能用:Can not find dns api hook for: dns_synology_dsm
改成synology_dsm,有这个API
收到错误信息:error:Timeout during connect (likely firewall problem)

@arabezar
Copy link
Author

arabezar commented Apr 23, 2021

不能用:Can not find dns api hook for: dns_synology_dsm

That's because the fork https://github.com/arabezar/acme.sh was not merged properly.
For now just take the script from the https://github.com/arabezar/acme.sh dev-branch please (https://github.com/arabezar/acme.sh/blob/dev/dnsapi/dns_synology_dsm.sh).

@mwnu
Copy link

mwnu commented Apr 24, 2021

不能用:Can not find dns api hook for: dns_synology_dsm

That's because the fork https://github.com/arabezar/acme.sh was not merged properly.
For now just take the script from the https://github.com/arabezar/acme.sh dev-branch please (https://github.com/arabezar/acme.sh/blob/dev/dnsapi/dns_synology_dsm.sh).

Synology DSM DNS API不起作用:
它提示我:Error add txt for domain:_acme-challenge.xxx.myds.me
根据dns_synology_dsm.sh脚本的注释:# SynoWebAPI call can be replaced by adding the line to the "/var/packages/DNSServer/target/named/etc/zone/master/$maindomain" file
我安装了DNS Server套件,并为我的域名添加Master区域,可以看到脚本在我本地的DNSServer中添加了一条主机名为_acme-challenge的Text记录。
但不管怎样,会向https://acme-v02.api.letsencrypt.org查询,日志中显示Verify error:No TXT record found,不能获取证书。

@arabezar
Copy link
Author

Synology DSM DNS API不起作用:
它提示我:Error add txt for domain:_acme-challenge.xxx.myds.me
根据dns_synology_dsm.sh脚本的注释:# SynoWebAPI call can be replaced by adding the line to the "/var/packages/DNSServer/target/named/etc/zone/master/$maindomain" file
我安装了DNS Server套件,并为我的域名添加Master区域,可以看到脚本在我本地的DNSServer中添加了一条主机名为_acme-challenge的Text记录。
但不管怎样,会向https://acme-v02.api.letsencrypt.org查询,日志中显示Verify error:No TXT record found,不能获取证书。

After installing and setting up Synology DNS Server you have to be sure that your domain is accessible from internet.
Then you can try to issue the certificate according to my description.
That comment from the script '# SynoWebAPI call can be replaced by adding the line...' is for developers only. It shows that you can use simple shell commands instead of SynoWebAPI command in order to add TXT records to Synology DNS Server.
Make sure that the script uses admin account for the call to SynoWebAPI. If you use another admin account name please replace it in the script line 26 'runner=admin' with 'runner=<your_admin_name>'.

@QiMingZhenFan
Copy link

Hello, can this method be used in Docker?

@arabezar
Copy link
Author

arabezar commented Nov 5, 2021

Hello, can this method be used in Docker?

Do you mean that the Docker is working on Synology NAS?
This script is intended to work on the Synology NAS itself.
Please refer to wiki.

@alidaf
Copy link

alidaf commented Jul 14, 2023

This issue still exists but the instructions posted above are unclear. Where do I put the dev branch script?

@arabezar
Copy link
Author

arabezar commented Jul 14, 2023

This issue still exists but the instructions posted above are unclear. Where do I put the dev branch script?

Just take it from https://github.com/arabezar/acme.sh/blob/dev/dnsapi/dns_synology_dsm.sh and place in your acme.sh/dnsapi folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party api report bugs to dns api, deploy hooks and notification hooks
Projects
None yet
Development

No branches or pull requests

5 participants