-
-
Notifications
You must be signed in to change notification settings - Fork 980
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
Support for provider: mittwald #2177
Comments
Hello, I checked quickly the API documentation, and I didn't find an endpoint to delete a record. I also didn't find how to get a zone ID or project ID from a domain. Could you give me more information about those elements? Sponsoring is a good way to sustain open source maintainers: sponsor me |
Hello @ldez, a DNS-Record is connected to a domain and the parent-Zone can not be deleted. It get's deleted when a domain get's deleted. You only can create sub-zones like mail.DOMAIN.tld via https://api.mittwald.de/v2/docs/#/Domain/dns-create-dns-zone and delete them with https://api.mittwald.de/v2/docs/#/Domain/dns-delete-dns-zone The projectid you can get when you lists your projects belonging to your user: https://api.mittwald.de/v2/docs/#/Project/project-list-projects and with that id you can list your zones connected to the project: https://api.mittwald.de/v2/docs/#/Domain/dns-list-dns-zones If there is no way to delete or create parentZones like "mittwald.de", is it possible to get support for lego? Greetings Jonas |
ACME DNS-01 challenge requires to create and delete a TXT record (ex:
The endpoint If I follow your explanation, to create a TXT record:
I didn't find the call to create a TXT record. to delete a record:
|
@jotimann any news? |
Hello @ldez, sorry for the late answer.
The customerID and serverID are not required. If you have your token the API will list your projects which belong to the user in the following schema: [
{
"createdAt": "2023-08-16T07:57:42.000Z",
"customerId": UUID,
"customerMeta": {
"id": UUID
},
"description": "My Project",
"enabled": true,
"id": UUID,
"isReady": true,
"projectHostingId": UUID,
"readiness": "ready",
"serverId": UUID,
"serverShortId": "......",
"shortId": ".....",
"status": "ready",
"statusSetAt": "2023-12-22T13:47:12.000Z"
}, ...
] there u will get the projectID, but the response can be multiple projects.
No the dns-zones-route has no pagination and will get you: {
"id": UUID,
"domain": "mittwald.de",
"recordSet": {
"mx": {
"managed": true
},
"combinedARecords": {
"managedBy": {
"ingressId": UUID
}
},
"cname": {},
"txt": {
"settings": {
"ttl": {
"auto": true
}
},
"entries": [
"v=spf1 include:agenturserver.de ~all"
]
},
"srv": {}
}
}, with that id you can call https://api.mittwald.de/v2/docs/#/Domain/dns-create-dns-zone The response from your post on Last step you can set the correct txt-record via https://api.mittwald.de/v2/docs/#/Domain/dns-update-record-set {
"settings": {
"ttl": {
"auto": true
}
},
"entries": [
"txt-value"
]
} To delete the record you use https://api.mittwald.de/v2/docs/#/Domain/dns-delete-dns-zone with the zoneID I hope I got everything and thanks for your work :) |
How do I get the project ID when I only have a domain and a token?
The documentation about
|
Create a txt record only with domain and token:
The response is your new zoneId.
Delete a txt-record:
Yes you can create multiple entries for
|
Welcome
How do you use lego?
Library
Link to the DNS provider
https://www.mittwald.de/
Link to the API documentation
https://api.mittwald.de/v2/docs/
Additional Notes
No response
The text was updated successfully, but these errors were encountered: