-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add DNS provider for CPanel and WHM #1977
Conversation
I'm no longer on this, can't help. |
This doesn't work on a server which uses DNS clustering. |
ok but can you explain what I have to change? (API endpoints, options, etc.) |
There are two contexts: cPanel - User contextMost cPanel providers disable API access for users. WHM - Admin context (reseller and root).This is where the server control logic lies. You need to split the initiation context as a param - whm for root / resellers - cPanel for endusers. WHM Calls you need are here: Before doing anything with DNS - serverside related - you need this. Check if the local targeted WHM Server is authoritative for the domain in question, and then use calls from the link above to do your thing. Source: I'm a hosting provider. P.S. I stumbled into this convo by chance. I'll be happy to sponsor further development of this, if it means it can be integrated into traefik 😊 |
The cPanel/WHM documentation is not really clear and the API is a bit weird. If you are able to test it and be able to provide a real API response for the different cases, I can work on that (and your sponsoring will be welcome). |
I can Do you one better. I can give you a cPanel server and a WHM api key to test with :) Contact me via mail (xxxx) - or discord (seebeen) |
@ldez what do you need to finish it ? , i can help |
feel free to test the PR and suggest changes. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There are 5 APIs:
I don't know what is the difference between cPanel and WHM and why there are 2 completely different APIs (different path, different response format) for mainly the same things.
The comment #1977 (comment) seems to explain the difference (user/admin) but it's not clear why there are 2 contexts/APIs. I can create 2 API clients, it's not a problem, but the usage of those APIs is cryptic. |
This comment was marked as outdated.
This comment was marked as outdated.
letme try another call and let you know , thw whm is the reselle panel it can hand multiple zone from diferent user |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, will need to look into the availablity of slices.Contains
though.
go mod tidy
Ping @ssipos90, @SirexToo can you run the command (with your domain, email, and credentials)?
#1060 (comment)
Closes #1060