Subdomain Network: Adding A Wild-Card DNS In DNS Server

Replace sangkrit.net and the IP address with your own domain and IP address:

*.sangkrit.net. 3600 A 192.0.2.1

DNS is now configured. Now hack Apache configuration for supporting wild cards:

Open /etc/http.conf file and search (ctrl+f) DocumentRoot line and add the following code just under that line by pressing enter and creating space for a line:

ServerAlias *.sangkrit.net

Here also, replace sangkrit.net with your own domain.

1 comment to Subdomain Network: Adding A Wild-Card DNS In DNS Server

Leave a Reply