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

Ionos DNS API #3284

Open
serverfriendsorg opened this issue Dec 5, 2020 · 8 comments
Open

Ionos DNS API #3284

serverfriendsorg opened this issue Dec 5, 2020 · 8 comments

Comments

@serverfriendsorg
Copy link

Hello everyone,

I would like to ask if there are any plans to support the ionos (earlier 1und1) dns api?
https://beta.developer.hosting.ionos.de/docs/dns

Thanks in advance.

@serverfriendsorg serverfriendsorg changed the title Question: Ionos DNS API Ionos DNS API Dec 5, 2020
@lbrocke
Copy link
Contributor

lbrocke commented Dec 24, 2020

I created a DNS plugin for the IONOS API (currently in beta), see lbrocke/acme.sh.

Due to the fact that the IONOS API doesn't (yet?) allow the creation of multiple TXT records for the same domain name, the v2 wildcard certificate creation sadly isn't possible and makes the GitHub Action tests fail. I'm of course willing to update the plugin and create a PR as soon as the API supports this.

Meanwhile, the plugin can already be used for non-wildcard certificate creation.

@lbrocke
Copy link
Contributor

lbrocke commented Feb 10, 2021

Just a heads-up: the IONOS DNS plugin is implemented (including wildcard certificate support) and has been merged into master. It can now be used according to the documentation.

@anec-on-github
Copy link

anec-on-github commented May 16, 2021

Hi @lbrocke
thank you for that. I was looking for where to move my domains too and thought ionos is a good place.
I created a domain there and now was trying to get a certificate.
What ever I do ends with "Cannot find this domain in your IONOS account." (Wildcard / none wildcard).

I'm running it in docker.

I can find my domain in https://api.hosting.ionos.com/dns/v1/zones/{id}
Currently I'm not using my account there productive, so would be able to share credentials if needed

image
image

I would appreciate your support.
Thank you very much

@lbrocke
Copy link
Contributor

lbrocke commented May 17, 2021

Hi @anec-on-github

What ever I do ends with "Cannot find this domain in your IONOS account." (Wildcard / none wildcard).

I just tried to issue a certificate for an own domain which worked fine (current master branch). Did you correctly set your environment variables for prefix and secret like this before running the acme.sh script?

export IONOS_PREFIX="..."
export IONOS_SECRET="..."

It's possible there is something wrong with the IONOS plugin, maybe specific to your domain or setup. If you want, I can try to debug it. It would be helpful to have the output of the following command for that, you can of course remove any personal information first.
./acme.sh --issue --staging --debug 2 --dns dns_ionos -d test.YOUR_DOMAIN.online.

If you're really willing to share credentials (newly generated API prefix and secret should be sufficient), I'd be able to generate this log myself. You could send them via e-mail (the one I use in my commits) of course instead of posting them here.

@anec-on-github
Copy link

anec-on-github commented May 17, 2021

Hi @lbrocke ,
thank you for your reply.
After my comment I had tried godaddy (added domains as external) and it also failed there with the .online domain. Then I used a .de domain at godaddy and that worked.
For testing that I didn't do something wrong on my end I opened a new account at ionos with a .eu domain and the script was successfull for that domain.
So maybe there is a general problem for .online domains in several scripts.

Attached the requested log. for -d www.DOMAIN.online -d DOMAIN.online

online-acme.sh.log

@lbrocke
Copy link
Contributor

lbrocke commented May 18, 2021

Thank you for the log file. Unfortunately, I can't really tell the error from that.

I'm honestly wondering why the scripts work with your .eu, but not with your .online domain. Does the .online domain contain non-ASCII characters perhaps?

@anec-on-github
Copy link

Hi @lbrocke ,
thank you for looking into this. I'm still not sure what was / is the problem. I now have many failed attempts and also some successful attemps for both domains (in different accounts) on staging and live.
The last one worked, so I will simply hope by not changing any settings it will work unlimited.
There is only [a-z] and - in the domains.

@Neilpang
Copy link
Member

@anec-on-github

please upgrade to dev branch, and try again with log --debug 2.

acme.sh --upgrade -b dev

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

4 participants