Adding Sub-domains to your Linux Web Hosting Package

A sub-domain is a subdivision of a domain name. While domain names need to be registered with a Registrar, sub-domains are not and an unlimited number of sub-domains can be created through the DNS service. For example, a sub-domain news.yourdomain.com can be created on the domain name yourdomain.com.

Whois.com Pte Ltd allows you to create unlimited sub-domains with your Linux Web Hosting package, by adding a Star (*) Address (DNS) Record for your domain name through the DNS Service (that is included for free with your Web Hosting package). When a visitor reaches http://<sub-domain>.yourdomain.com, he is served the content from http://yourdomain.com/sub-domain/. Let's discuss this with a few examples:

  • If someone types http://news.yourdomain.com in the browser, then our web server will try to fetch the content from http://yourdomain.com/news/.

    So you need to ensure that you have created a folder called news within your website and have an index file (within this folder).

  • If someone types http://news.yourdomain.com/php/ in the browser, then our web server will try to fetch the content from http://yourdomain.com/news/php/.

    So you need to ensure that you have created a folder called news within your website and within that folder, a sub-folder called php with an index file (within php folder).

    Note

    If someone typed http://news.yourdomain.com/php (without the trailing forward slash), he would receive a Page not found error.

  • If someone types http://news.yourdomain.com/weather-report.jpg in the browser, then our web server will try to fetch the content from http://yourdomain.com/news/weather-report.jpg.

    So you need to ensure that you have created a folder called news and have weather-report.jpg (within this folder).

  • A sub-domain of the type http://php.news.yourdomain.com will not work, since it is not supported on Whois.com Pte Ltd's Hosting Servers.

Note
  • If you are using the DNS Service provided free with your Hosting package, then the system has already created the appropriate Star Record to allow sub-domains on your Web Hosting package to begin working, once you modify the Name Servers of your domain name to ours.

    If you are not planning to use our DNS Service, then you need to add a Star Record to allow sub-domains on your Web Hosting package to begin working.

  • If you have created an Alias for your Web Hosting package and want sub-domains of each alias to also point just like your hosted domain name, then you need to create a Star DNS Record for each aliased domain name, to point to your hosted domain name.

    Example:

    Suppose you have a Linux Web Hosting package for yourdomain.com and also a sub-domain news.yourdomain.com. Then say, you decide to set an alias for this package as yourotherdomain.com. To accomplish this, all you need to do is create an Address Record (DNS) for yourotherdomain.com to point to the IP Address of yourdomain.com -

    yourotherdomain.com IN A 86400 1.1.1.1 (assuming that this is the IP Address of yourdomain.com)

    But say you want news.yourotherdomain.com to function as well, then you would instead need to create a Star Address Record (DNS) for yourotherdomain.com -

    *.yourotherdomain.com IN A 86400 1.1.1.1 (assuming that this is the IP Address of yourdomain.com)

    The above DNS record(s) can be created with your current DNS Service Provider or through the DNS Service provided free for yourotherdomain.com, if you have purchased yourotherdomain.com through Whois.com Pte Ltd.