Back to Lego

Sonic

docs/content/dns/zz_gen_sonic.md

4.35.22.5 KB
Original Source
<!-- 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.

<!--more-->
  • Code: sonic
  • Since: v4.4.0

Here is an example bash command using the Sonic provider:

bash
SONIC_USER_ID=12345 \
SONIC_API_KEY=4d6fbf2f9ab0fa11697470918d37625851fc0c51 \
lego --dns sonic -d '*.example.com' -d example.com run

Credentials

Environment Variable NameDescription
SONIC_API_KEYAPI Key
SONIC_USER_IDUser ID

The environment variable names can be suffixed by _FILE to reference a file instead of a value. More information [here]({{% ref "dns#configuration-and-credentials" %}}).

Additional Configuration

Environment Variable NameDescription
SONIC_HTTP_TIMEOUTAPI request timeout in seconds (Default: 10)
SONIC_POLLING_INTERVALTime between DNS propagation check in seconds (Default: 2)
SONIC_PROPAGATION_TIMEOUTMaximum waiting time for DNS propagation in seconds (Default: 60)
SONIC_SEQUENCE_INTERVALTime between sequential requests in seconds (Default: 60)
SONIC_TTLThe TTL of the TXT record used for the DNS challenge in seconds (Default: 120)

The environment variable names can be suffixed by _FILE to reference a file instead of a value. More information [here]({{% ref "dns#configuration-and-credentials" %}}).

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.

More information

<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. --> <!-- providers/dns/sonic/sonic.toml --> <!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->