I am setting up several test servers that I want to be subdomains of my main server. This should be simple and I tried to follow the advice in this thread as best I could
http://www.experts-exchange.com/Operating_Systems/Linux/Q_11957678.htmlIn my case I have a functioning "main" server than answers for maindomain.com and I want to add a series of test servers starting with vpscpanel.maindomain.com. Obviously I want this set up so that on vpscpanel.maindomain.com server I can create further subdomains and for this server to be fully functional in all respects (mail, ftp etc).
In the maindomain.com zone on my main server I added an A entry for the name server on my subdomain and an ns entry as well. My zone file on the main server for the maindomain domain is now:
Note these are exact files but with my real domain substituted for maindomain.com
--------------------------
----------
----------
----------
----------
---
; Zone File for maindomain.com
@ 14400 IN SOA ns1.maindomain.com. root.host1.maindomain.com.
(
2004081204
28800
7200
3600000
86400
)
maindomain.com. 14400 IN NS ns1.maindomain.com.
maindomain.com. 14400 IN NS ns2.maindomain.com.
maindomain.com. 14400 IN A 64.62.139.18
localhost.maindomain.com. 14400 IN A 127.0.0.1
maindomain.com. 14400 IN MX 0 maindomain.com.
mail 14400 IN CNAME maindomain.com.
www 14400 IN CNAME maindomain.com.
ftp 14400 IN A 64.62.139.18
ns1 14400 IN A 64.62.139.18
ns2 14400 IN A 64.62.139.19
host1 14400 IN A 64.62.139.18
ns1.vpscpanel 60 IN A 65.98.36.72
vpscpanel 60 IN NS ns1.vpscpanel.maindomain.c
om
--------------------------
----------
----------
----------
----------
---
On the subdomain (65.98.36.72) I created a master zone file for vpscpanel.maindomain.com
--------------------------
----------
----------
----------
----------
---
$TTL 14400
@ 14440 IN SOA ns1.vpscpanel.maindomain.c
om. elsamman.maindomain.com. (
2004122902
14400
7200
3600000
86400
)
@ 60 IN NS ns1.vpscpanel.maindomain.c
om.
60 IN A 65.98.36.72
ns1 60 IN A 65.98.36.72
vpscpanel.maindomain.com. 14400 IN MX 0 vpscpanel.maindomain.com.
mail 14400 IN CNAME vpscpanel.maindomain.com.
www 14400 IN CNAME vpscpanel.maindomain.com.
ftp 14400 IN CNAME vpscpanel.maindomain.com.
host1 60 IN A 65.98.36.72
--------------------------
----------
----------
----------
----------
---
This does not work at all and I cannot even ping for ns1.vpscpanel.maindomain.c
om