single DNS zone for all accounts

msd25

Member
May 15, 2009
7
0
51
Marysville
I plan on creating all accounts as separate accounts, even though they will really be treated as a subdomain. I need to do this as each account needs its own user cpanel and I have a custom skeleton directory that copies a fresh copy of the moodle installation files.

The problem I am running into is that when a new account is created a separate dns zone is also created. I need all accounts to utilize the same DNS zone and have the "sub domain" name created automatically upon creation in this zone.

Example. Server domain is myserver.com with a DNS zone for myserver.com. I create a new account and call it anything.myserver.com and it creates a DNS zone of anything.myserver.com.

I need the A name record for anything created in the myserver.com zone automatically.

Is this possible?
 

PlatinumServerM

Well-Known Member
PartnerNOC
Jul 10, 2005
400
3
168
New Jersey, USA
cPanel Access Level
Root Administrator
If you create the account in WHM, it will create a separate dns zone even if it looks like a subdomain.

If you create the account in CPanel as a real subdomain, then it will add it to the domain's main dns zone as an A record.
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
It will automatically create A record entry for a sub domain in WHM DNS zone.
 

msd25

Member
May 15, 2009
7
0
51
Marysville
It will automatically create A record entry for a sub domain in WHM DNS zone.
No it does not. It automatically creates a completely seperate DNS zone. I need the new account created in WHM to add the A record to an existing zone. Bu default WHM creates another zone and does not add an A record to anything but the new zone.
 

msd25

Member
May 15, 2009
7
0
51
Marysville
If you create the account in WHM, it will create a separate dns zone even if it looks like a subdomain.

If you create the account in CPanel as a real subdomain, then it will add it to the domain's main dns zone as an A record.
I want it to be a completely seperate account. I do not want it to be a subdomain. You are telling me what I already know.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
I plan on creating all accounts as separate accounts, even though they will really be treated as a subdomain. I need to do this as each account needs its own user cpanel and I have a custom skeleton directory that copies a fresh copy of the moodle installation files.

The problem I am running into is that when a new account is created a separate dns zone is also created. I need all accounts to utilize the same DNS zone and have the "sub domain" name created automatically upon creation in this zone.

Example. Server domain is myserver.com with a DNS zone for myserver.com. I create a new account and call it anything.myserver.com and it creates a DNS zone of anything.myserver.com.

I need the A name record for anything created in the myserver.com zone automatically.

Is this possible?
Each Zone is owned by an account. Creating entries in a zone file not owned by the account is not allowed.
 

msd25

Member
May 15, 2009
7
0
51
Marysville
Sorry it too so long to answer, we are slammed here at work. We are running on a MS domain and if i can get all accounts under one zone then i can do a zone transfer to my MS domain servers and greatly reduce the administrative overhead of managing multiple name servers.