-
-
Notifications
You must be signed in to change notification settings - Fork 5.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 DNSAPI for DNS provider Beget #3952
Comments
I wanted to implement this, but very soon discovered that there is no way to add a single record, as you can only send a JSON object with all the records that need to be set. For example, having executed a changeRecords query like this: {"fqdn":"your.domain","records":{"TXT":[{"priority":10,"value":"ololo"}]}} you'll end up fekkin overriding all your So a "correct" procedure would be to first get that Yeah, nah, don't know about the others, but I personally won't be implementing this. They (Beget) really should make a more civilized API. |
You should not override A and MX records at all, only add TXT record for the automatically generated "_acme-challenge" subdomain. If you use "fqdn":"_acme-challenge.your.domain", all dns records for your domain remain untouched. Example: {"fqdn":"_acme-challenge.your.domain","records":{"TXT":[{"priority":10,"value":"ololo"}]}} |
That is a good point, I don't remember why I haven't tried with |
I tested it, everything went well. Example of a request with urlencode Call https://api.beget.com/api/dns/changeRecords?login=secret_user&passwd=secret_pwd&input_format=json&output_format=json&input_data=%7B%22fqdn%22%3A%22_acme-challenge.example.com%22%2C%22records%22%3A%7B%22TXT%22%3A%5B%7B%22priority%22%3A10%2C%22value%22%3A%22generate_key_in_acme_ololo%22%7D%5D%7D%7D Response {"status":"success","answer":{"status":"success","result":true}} |
Add Beget.com DNS API support #6202 |
Is it possible to add dns api for the provider Beget (https://beget.com/ru)
https://beget.com/ru/kb/api/funkczii-upravleniya-dns
The text was updated successfully, but these errors were encountered: