How to Create a WildCard Subdomain in Cpanel ?

Domain Name Server DNS Management Forum
Post Reply
User avatar
hetalpatel
Posts: 3
Joined: 15 Jul 2017 09:08 am

18 Jul 2017 19:31 pm

I Want to create one subdomain to catch all non-existent subdomains for a domain? I Mean i want to setup WildCard Subdomain in Cpanel. Please guide me in this matter :roll:
raiyalal
Posts: 3
Joined: 15 Jul 2017 16:16 pm

19 Jul 2017 08:15 am

Wildcard subdomain allows you to point all non-existing subdomains to a specific folder in your account. It means that if you enter different subdomains (which are not created in your cPanel) in your browser, they all will show the same content that you uploaded to the folder set for the wildcard subdomain. A wildcard DNS record is specified by using a "*" as the part of a domain name, e.g., *.example.com.

1. Log into your cPanel.

2. Navigate to Domains section > Subdomains menu:

Image

3. Create a subdomain * pointing it to the necessary folder (you will need to specify the path in the field Document Root):

Image

4. Go to Advanced Zone Editor menu:

Image

5. Make sure that there is an A record for *.yourdomain.com created and pointed to the server IP address (it could coincide with the IP address of your main domain or ftp.yourdomain.com is pointed to):

Image

6. Now, you will need to wait until the propagation is over (it should take N seconds, where N – is TTL for this A record; you can edit it manually and reduce the number to speed up the process), and then the wildcard subdomain will work correctly. That's it!
Post Reply