Tested calls with a response string and it was not extracting the ID.
Used @wilddom's fork ID parsing and it works.
Did not include get_root again as he did ($_domain_name comes with appropriate string).
His fork: 931f93c5bb
Only thing I wanted now was to disable/fix the `get_root` so it does not use the main domain when it fails on a subdomain.
For example, if it fails on sub.domain.com it will try with domain.com and since I have both on Dynu, I don't really want that (I want it to just fail and then try again later).
I guess I will open an issue for that...
Changes undocumented API function to `dns/records/$_domain_name`.
Since it checks for root right before asking for the ID, there is not need to check again and the `$_domain_name` should be accurate.
Just changed the function name and it worked for me (no need to patch sed), but not sure why the other patch wants to change the sed call.
----------------------------------------
API Reference: https://www.dynu.com/en-US/Resources/API/Documentation#DNSRecords
Currently only supports primary domains. My use case does not involve
secondary domains so I'm not sure how it behaves, and cannot test it.
Might be as simple as turning all "primary"-references into a variable
that's either "primary" or "secondary", and make an extra check for this
in _get_domain...
Cookie handling heavily inspired by freedns plugin, including caching
the cookie in the config file, so we can rm without re-authenticating
when running acme.sh headless (without terminal) to create a new key
createDomainKey returns a non-zero exit-code.
explicitly returning zero avoids this.