LOW COST JAVA PHP MYSQL CGI PERL
HOSTING SERVICE
LINUX WINDOWS CPANEL WHM PLESK
HOSTING PACKAGES
ECOMMERCE HOSTING ASP JSP MSSQL
FRONTPAGE HOSTING
CPANEL WHM RESELLER DEDICATED
SERVER WEB HOSTING

Wild Card DNS

Wild card DNS is used in DNS record for domains, where anything.domainname will show the domain name page, it is also said that the wild card character used to search for text, and may represent any character (or any character in a set). 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 us to set up a host to respond to any particular hostname in the domain.

For eg : abc.domainname will show domainname page
To set up Wild Card, please follow the below steps ::
—————————————————————–
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.eukhost.com. cpanel.eukhost.com. (
2006062906
86400
7200
3600000
86400
)

domainname. 86400 IN NS ns1.eukhost.com.
domainname. 86400 IN NS ns2.eukhost.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 entry should be present on the all the Servers from where the DNS for the domain is resolving.

After entering this entry restart named on the Server.

Also, the entry has to be made in the 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/

After entering this entry, restart Apache server.

Bookmark on del.icio.us digg this

This post is compiled by eUKhost.com

Leave a Comment

You must be logged in to post a comment.