Delegate a Subdomain to Different DNS?

urantian

Well-Known Member
Jan 26, 2005
97
1
158
Fayetteville, Arkansas
cPanel Access Level
Root Administrator
I have a subdomain that I need to delegate to DNS servers that are different to where the root domain is pointing. I have seen samples of how this is done in the NAMED.CONFIG, however is there a way to do it from within cPanel? If it's possible, are there any instructions or examples available?

---Michael
 

Miraenda

Well-Known Member
Jul 28, 2004
243
5
168
Coralville, Iowa USA
cPanel Access Level
Root Administrator
Do you mean you need to point the subdomain to a different IP basically? Normally, a subdomain has the same DNS as the main domain, but to redirect it elsewere, you'd change the A record for the subdomain to point it to that other location.

To do that, simply go to WHM > Edit DNS Zone and select the main domain. In the main domain zone, the subdomain should be listed:

Code:
subdomain 14400 IN A IP#
www.subdomain 14400 IN A IP#
Change the IP# to the new server's IP number where you want the domain to be pointed to instead. If instead of IN A it has IN CNAME for the DNS zone for the subdomain, change the CNAME part to A record, then change the domain.com. part to an IP, since CNAME records take a domain name and A records can only take an IP.
 

frestyl

Registered
Jul 30, 2010
1
0
51
I was wondering how this could be applied with the subdomain handling mail?

As we are waiting on domain transfers I'm trying to get this resolved.

We are moving a company site form an old host to our server. Our server will only handle the website and the mail will go to their exchange server. Current setup as explained by their current host is this.

domain.com Website only
subdomain.domain.com A HOST "exchange servers IP address"

The exchange server is also resolved to subdomain.domain.net

I would appreciate any guidance.


Code:
Current DNS ZONE

domain.com.    14400    IN    MX          0     subdomain.domain.com
mail           14400    IN    CNAME              domain.com
www.           14400    IN    CNAME              domain.com
subdomain.     14400    IN    A                   (remote IP)
www.subdomain. 14400    IN    A                   (remote IP)