Know More About Domain Name (Part-II)

November 7, 2011 / Web Hosting

Register a domain name with domain registrar :

You have to register your selected domain name with one of the ICANN approved registrars. You can register your domain for one year and after one year if you wish to continue then you have to register that it again. Your hosting provider can register your domain on behalf of you. You have to choose a suitable available domain name. To register a domain you have to provide the following information:

Domain name owner credentials (name, company name, address, phone, email address etc.)

  • Administrative contact credentials
  • Technical contact credentials
  • Domain Name System (DNS) server details

Your hosting provider provides the DNS server. The DNS server should have entries of the domain name as explained in the next section. At least a primary (e.g. and a secondary (e.g. name server addresses are required.
Now we discuss about DNS server setup in details:

Domain Setup On DNS Server:

After registering your domain you have to setup your domain on the DNS server. If you don’t completely setup your domain then your domain name will not work. The job of a A DNS server is to trace a domain name to IP address(es) of the web server and mail server so that a user can easily connect to the webserver or mail server using by typing the domain name in the browser. A forward lookup zone is created for the domain name in the DNS server. Start of authority (SOA), Name server (NS), Hostname (A), Canonical Names (CNAME) and Mail eXchange (MX) entries are added to the forward lookup zone as shown below for a domain “” with name servers “” and “”.

Start Of Authority Record: 

SOA remove ‘is’ for Start Of Authority. It is very essential because it denotes the official DNS record for the domain name. There can be only one SOA record for every domain in a zone file.
@ IN SOA (
20041014 ; serial number
900 ; refresh
600 ; retry
86400 ; expire
3600 ) ; default TTL

Address Record Entry: It is added to forward look up zone of the domain and its associated IP address of web server. It is also used for handling request on the domain. IN A IN A

Alias Entry: 

CNAME stands for canonical name. The canonical name record maps an alias to the real name. Keep in mind that an alias for www is setup as a CNAME, so that requests to is sent to the same website that handles the requests for


Name Server Record:

NS stands Name Server. The NS record is utilized to explain the name servers for the domain. It may seem unessential to keep a record of the name server in the DNS entry. The reason is that the name server is previously present in the registrar records, where the search for the domain starts. This record is required, in any case, anyone want to know the name servers for this domain. The name server records are mapped to CNAME entries (ns1 and ns2 in the example below). IN NS IN NS

Mail Exchanger (MX) Setup: 

If you want to setup your email server to manage the domain mail account then you have to configure a mail exchanger. Such as: an email address like [email protected] will need a domain setup to solve the mail server for The setup is common to the CNAME setup but with MX records. There can be various MX records (e.g. for backup mail servers). IN MX 10

Note: You can check the DNS setup of the domain with This site permits you to get a detailed report of any DNS misconfiguration and possible solutions.

Configuring Web Server For Domain: 

After you setup the DNS server you have to send the request for the domain to the corresponding IP address, and the work of the web server begins. The web server requires to be setup properly to manage the request for the domain based on either the IP address or the host header entry. Host headers are normally utilized by web servers to host multiple domains on one IP address.

Apache Web Server:

In case of Apache web server, you have to configure your subdomain by virtual host entries in httpd.conf. The process is as follows:
Listen 80
NameVirtualHost *

<VirtualHost *>
DocumentRoot /home/httpd/htdocs/

<VirtualHost *>
DocumentRoot /home/httpd/htdocs/

Leave a Reply

Your email address will not be published. Required fields are marked *