DNS configuration for main/subdomain

No you don’t. You can configure external DNS. You then online need configure an A record for the apex and CNAME for the www. Check out