Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My subdomains on hostgator are not working

We are hosting our primary domain on HostGator, and we've recently created sub-domains on the primary domain with the following format: SubDomainName.PrimarySiteName.com

I can open the sub-domain files through the cPanel, and the folder that each sub-domain should take content from is correct. But when we try to open the sub-domains in the browser, we get the following error: "Server not found". It has been more than a month for now from the time we created the sub-domains. Also, sub-domains will sometimes open on one computer, but not another.

like image 479
ZMajico Avatar asked Jun 21 '12 11:06

ZMajico


2 Answers

Using the CPanel for your account with Host Gator simply click on "Simple DNS Zone Editor" and then finally ADD an "A Name" for the sub domain. Your "A Name" would be your complete sub domain URL. Example: subdomain.yourmaindomain.com AND than add the IP address for your main domain.

I had this issue and was able to resolve it by simply adding the single A Name record.

like image 107
Dunnbot Avatar answered Sep 22 '22 09:09

Dunnbot


Once you create your subdomain, the DNS records are normally created for you by your host. Most likely, you'd need to wait just a few hours before the subdomain becomes available.

You can however access your subdomain in the meantime using one the following methods:

http://ipaddress/~username/subfolder/ -OR- http://servername/~username/subfolder/

like image 35
farjam Avatar answered Sep 20 '22 09:09

farjam