ABHIONLINUX
Site useful for linux administration and web hosting

Showing posts with label wild card dns. Show all posts
Showing posts with label wild card dns. Show all posts

2009/12/23

How to setup Wild Card Entry For a Domain

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