Create an account with only a subdomain?

blanktruth

Member
Apr 4, 2012
11
0
51
cPanel Access Level
Root Administrator
Hello there,

We would like to create an account with only a subdomain. The domain is NOT hosted in out server...

We created an account as subdomain.domain.com but it does not seem to be working...

What should we do to solve this?

Regards
 
Last edited:

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
Hello there,

We would like to create an account with only a subdomain. The domain is NOT hosted in out server...

We created an account as subdomain.domain.com but it does not seem to be working...

What should we do to solve this?

Regards,
Timur
In the DNS zone of domain.com you must add an A record for subdomain.domain.com pointing to the IP of your server.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

Yes, as the previous post indicates, you must add an "A" record for the subdomain pointing to the IP address of the account on the cPanel server. This must occur at the DNS host of the domain name the subdomain is associated with.

Thank you.
 

blanktruth

Member
Apr 4, 2012
11
0
51
cPanel Access Level
Root Administrator
The subdomain seems to be redirected correctly. I traced the subdomain.domain.com and it is directed to correct IP, but still I receive the "can't connect to server" error... I simply created a new account on WHM Panel with subdomain.domain.com... Where did I do wrong?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Where are you receiving that error message? Is it in your web browser? If so, have you tried clearing your browser and DNS cache? Also, how long as it been since you modified the "A" record for the subdomain?

Thank you.
 

blanktruth

Member
Apr 4, 2012
11
0
51
cPanel Access Level
Root Administrator
Where are you receiving that error message? Is it in your web browser? If so, have you tried clearing your browser and DNS cache? Also, how long as it been since you modified the "A" record for the subdomain?

Thank you.
Yes I did try clearing the cache and it is almost a day since the redirecting...

Regards
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Have you checked to make sure the IP address the subdomain is pointed to matches the IP address assigned to it's cPanel account? Do you get that IP address when you ping the subdomain from your local computer?

Thank you.
 

blanktruth

Member
Apr 4, 2012
11
0
51
cPanel Access Level
Root Administrator
Have you checked to make sure the IP address the subdomain is pointed to matches the IP address assigned to it's cPanel account? Do you get that IP address when you ping the subdomain from your local computer?

Thank you.
Yes, as I understood, the name server IPs do not work with subdomain.domain.com... It has to be an exact IP of the cPanel as you pointed...

Thank you...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Do you get that IP address when you ping the subdomain from your local computer? Also, you can try rebuilding the Apache configuration file on your cPanel server:

Code:
/scripts/rebuildhttpdconf
Thank you.
 

blanktruth

Member
Apr 4, 2012
11
0
51
cPanel Access Level
Root Administrator
Do you get that IP address when you ping the subdomain from your local computer? Also, you can try rebuilding the Apache configuration file on your cPanel server:

Code:
/scripts/rebuildhttpdconf
Thank you.
The subdomain.domain.com was directed to the server company's name server IPs but it did not resolve my server IP in that way, therefore we changed the IP directly to my server IP instead...

Everything is fine now...

Thank you...