Wildcard DNS record
A wildcard DNS record match all requests for non-existent domain names in a DNS Zone, i.e. domain names for which there are no records at all. The wild cardcharacter, used to search for text, that may represent any character or set of character. A wild-card character is like a wild card in a card game, which may represent any other card in the deck. Wildcard DNS allows setting up a host to respond to any particular hostname in the domain.
For eg : xyz.domainname will show domainname page
Implementing the following step you can set up Wild Card—————————————————————–
Enter the entry in Zone file ::
For eg :
#vi /var/named/domainname.db
; Modified by Web Host Manager
; Zone File for domainname
$TTL 14400
@ 86400 IN SOA ns1.micfo.com. cpanel.micfo.com. (
2006062906
86400
7200
3600000
86400
)
domainname. 86400 IN NS ns1.micfo.com.
domainname. 86400 IN NS ns2.micfo.com.
domainname. 14400 IN A IP
localhost.domainname. 14400 IN A 127.0.0.1
domainname. 14400 IN MX 0 domainname.
mail 14400 IN CNAME domainname.
www 14400 IN CNAME domainname.
ftp 14400 IN A IP
*.domainname. 14400 IN A IP
Due to clustering, this entery should be present on the all the Servers from where the DNS for the domain is resolving.
After entering this entery restart named on the Server.
Also, the entry has to be made in virtual host on the server ::
——————————————————————————
For eg :
#vi /usr/local/apache/conf/httpd.conf
ServerAlias www.domain.com domain.com *.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/user/public_html
BytesLog domlogs/domain.com-bytes_log
ServerName www.domain.com
User user
Group user
CustomLog /usr/local/apache/domlogs/domain.com combined
ScriptAlias /cgi-bin/ /home/user/public_html/cgi-bin/
once you finish this, restart Apache server.
