Creating Unlimited Subdomains
want to create lots of subdomains without server usage and without adding subdomains to your control panel ? well you can do it on your own if you have dedicated server by enabling WILDCARD DNS if dont have server ask your hosting provider to do it.
Follow the steps
- Login to WHM for Cpanel
- Edit DNS Zone for the domain you want to enable wildcard dns
- Add New Entry
Domain: *
TTL : 14400
Record Type “A” and Submit it - Login via SSH to your dedicated server
- Type :
cd /etc/httpd/conf/
pico httpd.conf - Find the domain name that you want to enable wildcard dns
- You will find something similar to this on http.conf
ServerAlias xxxxxxxx.com
ServerAdmin xxxxxxx@xxxxxxx.com
DocumentRoot /home/xxxxxxx/public_html
BytesLog domlogs/xxxxxxxxx.com-bytes_log
ServerName www.xxxxxxxxxx.com
User xxxxxx
Group xxxxxx
CustomLog /usr/local/apache/xxxxlogs/xxxxxxx.com combined
ScriptAlias /cgi-bin/ /home/xxxxxxx/public_html/cgi-bin/
- Now edit line
ServerAlias xxxxxxx.com
to
ServerAlias: *.xxxxxxx.com xxxxxxx.com - Exit Using Ctrl+X
- Overwrite the file and type
- # service httpd restart
Now wildcard dns is enabled on your server

