How Can I Set Up a Catch-All (Wildcard) Subdomain? Print


How Can I Set Up a Catch-All (Wildcard) Subdomain?

Summary:
A wildcard subdomain (e.g., *.yourdomain.com) allows all undefined subdomains to point to one destination, such as your main website or an app.

Steps in cPanel:

  1. Log in to cPanel.
  2. Go to Domains > Zone Editor.
  3. Click Manage next to your domain.
  4. Click Add Record.
  5. Set the record type to A.
  6. For the Name, enter: *
  7. For Value, enter the IP address of your server.
  8. Click Save Record.

Note: Some applications may require server-side handling for wildcards (e.g., Apache/Nginx vhosts).


Was this answer helpful?

Related Articles

What is DNS and How Does It Work? What is DNS and How Does It Work? Summary:DNS (Domain Name System) acts like the phonebook of... Understanding DNS Record Types Understanding DNS Record Types Summary:A quick overview of the most common DNS records you’ll... How to Add DNS Records via cPanel How to Add DNS Records via cPanel Summary:Step‑by‑step instructions for managing DNS records on... How to Set Up a Subdomain DNS Record How to Set Up a Subdomain DNS Record Summary:Point a subdomain like blog.yourdomain.com to... How to Add SPF, DKIM & DMARC Records How to Add SPF, DKIM & DMARC Records Summary:Boost your email delivery by adding key TXT...
« Back