How To Add Wildcard DNS Records

You can create a Wildcard DNS record through cPanel by simply creating a subdomain and using an asterisk symbol.  Follow the steps below to set this up.

Note: This will cause all subdomains to link directly to your main site.  If you want subdomains to host other files you’ll need to remove the record.

Step 1:  Login into your cPanel account (please see How To Access cPanel if not familiar how)

Step 2:  Head to your Domains section and select Subdomains

cpanel subdomain location image


Step 3:  In the Subdomain text box enter an asterisk “*” symbol

The “*” symbolizes that you want all files (sub-directories) of your subdomain to apply the Wildcard DNS

Step 4:  Choose a domain from the dropdown you want to associate the Wildcard subdomain with and press tab to autocomplete the document root

Step 5:  The Document Root text box will auto-generate

Step 6:  Click the Create button

create a subdomain

Your .htaccess file will then be modified and you can make any edits as you deem necessary to your .htaccess file through File Manager

What Is A Wildcard DNS Record?

A Wildcard DNS record makes it possible for any subdomain to be linked to your primary domain.  The content shown on the subdomain will be the same throughout whether someone types in or

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Adding An A Record In cPanel

How Do I Add An A Record In cPanel? With cPanel you can manage all aspects of your website(s),...

Advanced Zone Editor

Important:  cPanel deprecated this interface in cPanel & WHM version 62. We strongly...

cPanel Zone Editor

A website has many resource records assigned to it. These are used to identify specific locations...

Definition of Domains Icons

The Domains section lets you set or modify things from Subdomains to Redirects and anything in...

Domain MX Records (cPanel)

What Are MX Records? MX records are basically DNS Records that are responsible for sending email...