1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-23 09:15:11 +02:00
lego/docs/content/dns/zz_gen_sonic.md

87 lines
2.5 KiB
Markdown
Raw Normal View History

2021-04-25 11:37:35 +02:00
---
title: "Sonic"
date: 2019-03-03T16:39:46+01:00
draft: false
slug: sonic
2022-06-17 00:25:42 +02:00
dnsprovider:
since: "v4.4.0"
code: "sonic"
url: "https://www.sonic.com/"
2021-04-25 11:37:35 +02:00
---
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
<!-- providers/dns/sonic/sonic.toml -->
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
Configuration for [Sonic](https://www.sonic.com/).
<!--more-->
- Code: `sonic`
2022-06-17 00:25:42 +02:00
- Since: v4.4.0
2021-04-25 11:37:35 +02:00
Here is an example bash command using the Sonic provider:
```bash
SONIC_USER_ID=12345 \
SONIC_API_KEY=4d6fbf2f9ab0fa11697470918d37625851fc0c51 \
2024-11-08 00:55:04 +02:00
lego --email you@example.com --dns sonic -d '*.example.com' -d example.com run
2021-04-25 11:37:35 +02:00
```
## Credentials
| Environment Variable Name | Description |
|-----------------------|-------------|
| `SONIC_API_KEY` | API Key |
| `SONIC_USER_ID` | User ID |
The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
2024-08-14 23:55:11 +02:00
More information [here]({{% ref "dns#configuration-and-credentials" %}}).
2021-04-25 11:37:35 +02:00
## Additional Configuration
| Environment Variable Name | Description |
|--------------------------------|-------------|
| `SONIC_HTTP_TIMEOUT` | API request timeout |
| `SONIC_POLLING_INTERVAL` | Time between DNS propagation check |
| `SONIC_PROPAGATION_TIMEOUT` | Maximum waiting time for DNS propagation |
2021-04-25 11:51:37 +02:00
| `SONIC_SEQUENCE_INTERVAL` | Time between sequential requests |
2021-04-25 11:37:35 +02:00
| `SONIC_TTL` | The TTL of the TXT record used for the DNS challenge |
The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
2024-08-14 23:55:11 +02:00
More information [here]({{% ref "dns#configuration-and-credentials" %}}).
2021-04-25 11:37:35 +02:00
## API keys
The API keys must be generated by calling the `dyndns/api_key` endpoint.
Example:
```bash
$ curl -X POST -H "Content-Type: application/json" --data '{"username":"notarealuser","password":"notarealpassword","hostname":"example.com"}' https://public-api.sonic.net/dyndns/api_key
{"userid":"12345","apikey":"4d6fbf2f9ab0fa11697470918d37625851fc0c51","result":200,"message":"OK"}
```
See https://public-api.sonic.net/dyndns/#requesting_an_api_key for additional details.
This `userid` and `apikey` combo allow modifications to any DNS entries connected to the managed domain (hostname).
Hostname should be the toplevel domain managed e.g. `example.com` not `www.example.com`.
2021-04-25 11:37:35 +02:00
## More information
- [API documentation](https://public-api.sonic.net/dyndns/)
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
<!-- providers/dns/sonic/sonic.toml -->
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->