If you have a hosting plan, you can easily create subdomains from hPanel. In case you have purchased a domain name only, you can set up a subdomain as a DNS record.
In your Hostinger account, go to the Domains section and click on manage next to the domain in question.
Now, decide what kind of a subdomain you want to create:
-
If you want the subdomain to direct to an IP address, you need to create a DNS record of A type, or
-
To create direct to a web address, use the CNAME record type
Option 1 – IP Address
To create a subdomain as an A record, follow these guidelines:
DNS record type |
A |
Host |
Insert the name of your subdomain; e.g., insert shop for shop.domain.tld |
Value |
Insert the IP address you want to point to |
TTL |
Leave the default (or choose the smallest available) value |
Option 2 – CNAME
To create a subdomain as a CNAME record, follow these guidelines:
DNS record type |
CNAME |
Host |
Insert the name of your subdomain; e.g., insert shop for shop.domain.tld |
Value |
Insert the web address you want to point to |
TTL |
Leave the default (or choose the smallest available) value |
Any changes made to the DNS zone trigger propagation, which may take up to 24 hours 💡