How to host sub.domain.org and domain .org on same server as different zones?

jasgot

Well-Known Member
Mar 2, 2004
80
8
158
Long ago, I began hosting a special web app for a customer who had their DNS at DYN and their main website elsewhere. I created a new account under WHM with the name webapp.domain.org and I created an A record at DYN and everything is good.

Now, years later, the customer has asked me to host all of the DNS and stop using DYN. I want to understand what I am up against with the existing webapp.domian.org site I am hosting if I make this move.

Will I create a domain.org account?
DO I migrate webapp.domain.org to domain.org once I create it?
How will I keep the relationship between the /home/webappdomainorg/public_html folders in place if webapp.domain,org will now belong to another zone?

If I left out anything important, please ask! :)
Thanks.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,772
326
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
Assuming you are NOT hosting the domain.com web site and all you need to do is host the DNS, then the simplest way to do this is in WHM go to add DNS zone and add a zone for domain.com. You can populate the dns zone file with everything he needs EXCEPT for subdomain.domain.com because that already has its own zone file.

When you add the DNS zone, just assign the owner as the user for subdomain.domain.com and that way it will still get backed up as part of your cPanel backup routine.
 
  • Like
Reactions: SamuelM

SamuelM

Technical Analyst Team Lead
Nov 20, 2019
196
40
103
USA
cPanel Access Level
Root Administrator
Hello @jasgot,

Thank you for contacting cPanel!

I agree with GOT's excellent advice here, as it provides the simplest approach as well as a way to ensure the new DNS zone is regularly backed up. Note that there is no issue with having 2 separate DNS zone files, one for domain.com and another for webapp.domain.com, therefore you don't have to worry about migrating anything.

If you have any additional questions or concerns before moving forward, please feel free to update this forum thread and we will be happy to point you in the right direction!

Best regards