SSL and DNS before or after

Operating system: Ubuntu
OS version: 20.04

We use Let’s Encrypt for SSL
Normally you have to fix DNS before you request a certificate.
In Virtualmin you can choose to have SSL when you create a site, or you can wait till some time later.
In both cases I suppose you have to fix DNS first, right?

Just asking to be sure.

That’s correct, you must have DNS set up and the domain must resolve to apply successfully for a Let’s Encrypt certificate.