How to Add a Wildcard DNS Record

Wildcard subdomains are useful to allow end users of a domain-based WordPress multisite network to create new sites on demand. In this type of network each new site has its own subdomain, and the wildcard configuration means that those subdomains do not have to be configured individually.


In the httpd.conf file, or in the include file containing the VirtualHost section for your web account, add a line like this (if it is not already present):

ServerAlias *

Note: for cPanel based servers, the Apache httpd config file is located here:

Also create a wildcard DNS record like:

* A


Make a sub-domain named “*” (wildcard) at your cPanel (* Make sure to point this to the same folder location where your wp-config.php file is located.

Finally, to aid the management of the multisite (within WordPress), the following plugins will provide the needed functionality:

WordPress MU Domain Mapping:

Multisite Plugin Manager:

New Blog Defaults:

Multisite Enhancements:

Leave a comment