What is a catch-all (wildcard) subdomain?
If you want a browser to be able to access your site regardless of the subdomain requested, such as www.example.com or example.com, a catch-all wildcard subdomain can help. This feature directs all traffic to a single location, making it easier to manage and reducing the chance of errors due to typos.
Benefits of Catch-All Wildcard Subdomains
- Simplified Domain Management: Manage multiple subdomains with one record.
- Reduced Error Risk: Catch common typos or unrecognized subdomains.
- Cost-Effective Solution: Saves on additional domain purchases and configurations.
How It Works
A catch-all wildcard subdomain uses a special DNS record, such as *, to route all subdomains to the main domain. For example:
*.example.com routes www.example.com, example.com, and mail.example.com to your main site.
When to Use It
- For Temporary or Test Subdomains: Quickly set up additional domains without registering each one separately.
- To Catch Common Typos: Ensure users land on the correct page even if they miss a part of the domain name.
- For Single-Property Domains: Ideal for websites with a single location but multiple potential subdomains.
Limitations
- Cannot Be Used for Subdomains Requiring Specific Configurations: If your hosting provider requires specific subdomain configurations, a catch-all may not be suitable.
- May Not Work With All Hosting Providers: Compatibility varies depending on the platform you use.
Examples
-
Example 1:
- Main Domain:
example.com
- Catch-All Record:
*.example.com
- Result: Both
www.example.com and example.com point to your main site.
-
Example 2:
- Main Domain:
mail.example.com
- Catch-All Record:
*.mail.example.com
- Result: Subdomains like
user.mail.example.com route to the main domain.
Associated Articles
For more information, visit our Knowledge Base.