DNS Handling is configured entirely through environment variables, with sensible defaults for local development. CopyDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/plutoploy/dns-handling/llms.txt
Use this file to discover all available pages before exploring further.
.env.example to .env, adjust the values for your environment, and the service will pick them up at startup via config.Load().
Variables
LibSQL/SQLite connection string. Use
file:./path.db for a local file-based SQLite database, or a Turso libsql:// URL for a remote managed database.Examples:file:./tls.db— local SQLite file in the working directorylibsql://<database-name>.turso.io?authToken=<token>— remote Turso instance
Contact email address registered with the ACME certificate authority. This address is used during ACME account creation and may receive renewal failure notifications from Let’s Encrypt.
ACME_DIRECTORY
ACME directory URL that points to the certificate authority’s API. The default is the Let’s Encrypt staging environment, which issues untrusted certificates suitable for testing without hitting production rate limits.Known values:
https://acme-staging-v02.api.letsencrypt.org/directory— Let’s Encrypt staging (default)https://acme-v02.api.letsencrypt.org/directory— Let’s Encrypt production
TCP address the HTTP server listens on. Follows Go’s
net.Listen format: [host]:port. Omitting the host binds to all interfaces.Examples::8080— all interfaces, port 8080127.0.0.1:9000— localhost only, port 9000
Logging verbosity level. Accepted values are
info and debug. Setting debug switches to development-mode logging with pretty-printed output and caller information.Hardcoded Timing Constants
The following timing parameters are set directly ininternal/config/config.go and are not configurable via environment variables:
| Constant | Value | Purpose |
|---|---|---|
DNS_TIMEOUT | 10s | Timeout for individual DNS lookup operations |
POLL_INTERVAL | 10s | Interval between ACME challenge status poll attempts |
POLL_TIMEOUT | 5m | Maximum total time to wait for an ACME challenge to complete |
Example .env File
The.env.example file in the repository root provides a ready-to-copy template with all configurable variables: