For www should I use A or CNAME record setting up Let's Encrypt

If I want to activate https for both www.domain.com or domain.com, should I use A or CNAME record? Or what’s the best option? Because I have a CNAME, but a video tutorial recommended using A record.

Thanks,

It mostly doesn’t matter to Let’s Encrypt whether you use an A or CNAME record for a subdomain (such as www.example.com), so it’s generally fine to use whichever one works best with the rest of your setup.

You should of course use an A and/or AAAA record for the domain apex itself (example.com without the www).

1 Like

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