What's the IP address of a subdomain?

Llaves

Member
Oct 24, 2017
5
2
3
New Mexico
cPanel Access Level
Reseller Owner
I have mydomain.com registered with 1and1. I would like to create sub.mydomain.com on a different hosting service that uses cpanel. I can create the subdomain, but where do I find the IP address to use for the subdomain A record on 1and1? My cpanel account has a static IP address, but how do I indicate that I want sub.mydomain.com within the account? Do I need a CNAME record instead of an A record? If so, what does it point to?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

You will need to ensure the "A" record for the subdomain points to the IP address associated with the cPanel account it's setup under. The "A" record is setup at the DNS host of the domain name.

Thank you.