Automatically created sub domain DNS entries

Hi,

I was wondering if anyone knows if its possible to setup Caddy in such a way that it automatically creates DNS entries for sub domains, prefereably with cloudflare?

For example lets say I own example.com, and in my caddy file I have the following:

some-service.example.com {
  reverse_proxy [some ip]
}

Could the DNS entry for some-service.example.com be automatically created and point to example.com?

Sortof, yes, with GitHub - mholt/caddy-dynamicdns: Caddy app that keeps your DNS records (A/AAAA) pointed at itself., but really, you should probably just make a wildcard DNS entry like *.example.com instead.

This topic was automatically closed after 30 days. New replies are no longer allowed.