Using a CNAME or A Record (managed elsewhere) to point to a subdomain

Hi,
I use an external domain name provider (google domains), to manage my domain names. I have my root, www, and other domains on other hosting, but I want to setup a site xyz.mydomain.com on InfinityFree. now i have setup xyzMyDomain.epizy.com, which is currently located at an ip, 1.1.1.2

Can i point a cname for xyz.mydomain.com. to xyzmydomain.epizy.com or an a record for xyz.mydomain.com. to 1.1.1.2? Where do i setup the named virtual hosting in the cpanel?

HI I figured this out.

  1. In Google Domains, Point a cname: xyz.mydomain.comxyzMyDomain.epizy.com
  2. In the CPANEL, use Parked Domains to park xyz.mydomain.com at xyzMyDomain.epizy.com (this create’s a named virtual host)
  3. On Wordpress, change the site’s domain to xyz.mydomain.com. This picks up the traffic in wordpress.

Easy Peasy