Create Public DNS with docker compose

Hi all,

Im just getting started with Traefik so please forgive me if this a stupid question.
Im using OVH as a my dns registrar. And I was wondering if it would be possible to have Traefik made the public DNS records based on the container labels.

For example if I make a Nginx container with all the labels, Traefik will register a dns record for the given domain name at OVH using the API.

No, Traefik will not create domain entries at your DNS provider. Only TXT records for LetsEncrypt dnsChallenge.

If you only look for sub-domains, you could check if your DNS provider supports wildcard sub-domains.

1 Like

I was afraid so. Thanks!

You could of course create your own script to fetch the service labels via Docker API or routers via Traefik API and then generate the domains via DNS provider API. But be aware about potential cost for TLDs.

I created a little PoC to fetch domains and generate LetsEncrypt TLS certs externally and then provide them to Traefik (post).

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.