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 bugs to freedns dns api #2536

Closed
master-nevi opened this issue Oct 9, 2019 · 4 comments
Closed

Report bugs to freedns dns api #2536

master-nevi opened this issue Oct 9, 2019 · 4 comments

Comments

@master-nevi
Copy link
Contributor

master-nevi commented Oct 9, 2019

Add support for Synology routers while using dnsapi/dns_freedns.sh. Synology router scripting stacks do not have a version of the "tr" command line utility that supports character class representation option i.e. the "[:space:]" :

tr -d "[:space:]" should be replaced with tr -d "\r\n" inside of dnsapi/dns_freedns.sh for better support across embedded linux systems and routers.

Existing good usage:
https://github.com/Neilpang/acme.sh/blob/master/dnsapi/dns_freedns.sh#L161

Usages to replace:
https://github.com/Neilpang/acme.sh/blob/master/dnsapi/dns_freedns.sh#L306
https://github.com/Neilpang/acme.sh/blob/master/dnsapi/dns_freedns.sh#L352

Steps to reproduce

Use a Synology router to run acme.sh

Debug log

The script silently fails and simply doesn't parse the freedns web page correctly.

master-nevi added a commit to master-nevi/acme.sh that referenced this issue Oct 9, 2019
…y removing the use of the character class representation option. Fixes acmesh-official#2536
@master-nevi master-nevi changed the title Support for Synology routers while using dnsapi/dns_freedns.sh [Report bugs to freedns dns api] Support for Synology routers while using dnsapi/dns_freedns.sh Oct 9, 2019
@master-nevi master-nevi changed the title [Report bugs to freedns dns api] Support for Synology routers while using dnsapi/dns_freedns.sh Report bugs to freedns dns api Oct 9, 2019
@master-nevi
Copy link
Contributor Author

I have addressed this issue myself in this pull request: #2537

@dkerr64
Copy link
Contributor

dkerr64 commented Oct 23, 2019

This should be updated to also remove tabs and spaces as well, and maybe even vertical tabs and form feeds. While things may be working just fine now, the subsequent greps and seds assume that spaces have been removed. FreeDNS does not presently have spaces in places that the code is sensitive to, but if that changed in the future this would fail. Hence if "[:space:]" won't work then I would replace with " \r\n\t\v\f" (note blank space within the string)
David

@dkerr64
Copy link
Contributor

dkerr64 commented Oct 23, 2019

Correction to my previous comment. You DO NEED to explicitly have a space character in the string as there ARE spaces that need to be removed for later greps to work. I recommend reverting the pull request #2537 and replacing the tr string with " \r\n\t\v\f" (note blank space within the string)

@dkerr64
Copy link
Contributor

dkerr64 commented Oct 23, 2019

@Neilpang please close this issue so that no one else adds bug reports relating to FreeDNS here. Bug reports should be directed to issue #2305
Thanks
David

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

No branches or pull requests

3 participants