We have upgraded our website - live 27th Sep 2026 onwards.

How to create Wildcard subdomain

Updated 27 Sep 2026 1,622 views 3 found this helpful

Some of the applications require dynamic subdomains, where the content delivery is managed by the application code based on the URL. Such a scenario can be handled  by creating wildcard subdomain, this means any value of the subdomain accessed on the browser will route to a specific location / IP specified.

Here is how you can create a wildcard subdomain in cPanel (same can be achieved on other DNS providers if the domain is managed elsewhere).

How to create a Wildcard subdomain

  • Login to cPanel
  • Go to Zone Editor (DNS management incase managed elsewhere)
  • Create an A record with the following
    • *.yourdomain.com (use your own domain name)
    • Select record type as ‘A’ record from dropdown / option
    • Type in the IP where you want to route all your subdomains

If you want to know how to set an A record, check zone editor guide.

Was this article helpful?

Your vote helps us decide which guides to improve next.

Still need help?
WhatsApp supportReal people, 24×7, Urdu or English.0300-8236650 → Open a ticketTracked in your client area with email updates.Submit a ticket → Frequently asked questionsOrdering, payments, activation and SSL answers.Read the FAQs →

TALK TO US

Message us. A person replies.

No ticket queue, no bot. WhatsApp, email or a phone call to Karachi — in Urdu or English.

Start with a name.
Be online before lunch.

Free SSL, free migration, 30 days to change your mind. Join 10,000+ Pakistani businesses.

or browse hosting plans