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:
Here also, replace sangkrit.net with your own domain.