Loopia DNS module for Caddy
This module contains a DNS provider package for Caddy.
It can be used to manage DNS records with
the Loopia API.

Caddy module name
dns.providers.loopia
Loopia API account requirements
You will need to create a API user account
that is separate from the normal Loopia user account.
The API user will need to have access to the following methods.
- getSubdomains
- addSubdomain
- removeSubdomain
- getZoneRecords
- addZoneRecord
- removeZoneRecord
Config examples
This can be used together with the ACME DNS challenge.
Loopia can use up to 15 minutes, but usually less, to propagate
the changes so a high enough timeout is needed.
Caddyfile
You can put the config in a Caddyfile tls block.
tls {
issuer acme {
timeout "10m0s"
dns loopia {
username "<your user>@loopiaapi"
password "<your password>"
}
}
}
JSON
Or using JSON notation with the ACME module.
{
"module": "acme",
"challenges": {
"dns": {
"propagation_timeout": "10m0s",
"provider": {
"name": "loopia",
"username": "<your user>@loopiaapi",
"password": "<your password>"
}
}
}
}
Example Caddyfile
<host>.<your>.<domain>
tls {
issuer acme {
email "<your email for acme notifications>"
timeout "10m0s"
dns loopia {
username "<api user>@loopiaapi"
password "<api password>"
}
}
}
respond "Hello, world!"