Sub-domain Wild Card DNS

Sometimes, few applications like wordpress requires a “Wild card DNS” redirect for subdomains. You can set the Wild Card subdomain redirect easily by following the below steps :

root@server[#] vi /etc/httpd/conf/http.conf
under the ServerAlias tab

make the entry as :
ServerAlias domain.com *.domain.com

ex :
ServerAlias www.domain.com *.domain.com

Save and quit.

Then go to WHM–>>Edit DNS Zone >> Select the domain

and make following changes :

* 14400 IN A server ip (127.0.0.1)

example :

* 14400 IN A 127.0.0.1

That’s all you are done.