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. It's important to note that Hostinger Website Builder websites don't use an IP but a CNAME record for connecting a domain to a website. For this reason, a domain or subdomain pointing to Hostinger Website Builder should not include any A records, as they would conflict with the CNAME record and prevent your website from working.
With that in mind, follow the steps below to connect your subdomain 👇
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 a time - it's not possible to connect both a domain and a subdomain to the same website