A domain is a unique address of a website, for example, hostinger.com. A subdomain is a subdivision of a domain that can be used to create different websites or sections within a larger website. It appears before the main domain in a URL and is separated by a period. For instance, support.hostinger.com would be a subdomain of hostinger.com.
Both domains and subdomains can be connected to a website created with Hostinger Website Builder, and there are several ways to create a subdomains, you only need to configure one of the methods below:
By creating a new website with subdomain directly — this way, the CNAME records will be automatically created in your root domain's DNS
By creating a CNAME record and then creating a website — similar to the solution above, just another method to achieve this
Disclaimer: If you'd like to keep the current nameservers and instead use IP or an A record, you may point your subdomain following the steps here.
Follow one of the methods below to create and connect a subdomain with our Builder:
Method 1: Create a Website with Subdomain Directly
This is the fastest and most efficient method to setup a subdomain with our Hostinger Website Builder, please follow the steps below:
On hPanel, go to the Websites section and click on Add website:
Select Hostinger Website Builder from the dropdown list as below:
Select the website template as you desire, and then find the option on the top right corner, hover over "Connect Domain" and click as below:
You will be redirected to a new page. There, simply write the subdomain you desire, as in the example below, and click on the message it will appear on the banner under it, then click on "Next" button:
And that's it! The subdomain will be directly connect to your website, and the needed CNAME subdomain records will be automatically added to your DNS zone 🎈
Method 2: Create a CNAME Record and Create a Website
Step 1 - Create a Subdomain as a CNAME Record:
Go to your domain's DNS zone and create a CNAME record using the following values:
Name: your subdomain's name; e.g., for shop.domain.tld, input shop
Target: connect.hostinger.com
TTL: use the default value
If your domain's DNS zone is at Hostinger, creating the CNAME record would look similar to this:
Step 2 - Create Your Website:
Step 3 - Connect the Subdomain:
Navigate to the Websites section of your hPanel and click on Connect domain:
Select Use an Existing Domain:
On the next page, enter your subdomain and click on Continue
After connecting your website, give your subdomain a few hours for DNS propagation to complete, and your website will be up and running 🚀
Note: Websites created using Hostinger Website Builder can only have one address at time - it's not possible to connect both a domain and a subdomain to the same website