Edit the DNS zone file:-
Open the zone db file corresponding to the domain (For eg, domain.com)
[root@localhost ~]#vi /var/named/domain.com.db
Add the following line:-
================
* IN A IPaddress
=================
save and exit
restart named
[root@localhost ~]# /etc/init.d/named restart
Edit httpd conf file:-
[root@localhost ~]#vi /usr/local/apache/conf/httpd.conf
Add the following entry:-
===================
server alias *.domain.com
===================
save and exit
restart httpd