I have a custom domain - example.com. I need to set it up such that the subdomain 'premium' (premium.example.com) points to github pages to a certain repository. but the apex domain (example.com) and the 'www' subdomain(www.example.com) points to some other server, maybe a wordpress based server.
I'm confused over these two aspects, on which one to set in my DNS spec:
set the 'A' record in cPanel for 'premium.example.com' to point to github servers (185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153).
set the 'CNAME' record in cPanel for 'premium.example.com' to point to my github url (myuser.github.io).
could you please explain which of the two can be used to set up my subdomain? also what configuration to set for my apex and 'www' custom domains?