Quantcast
Channel: Servers | The Linux Juggernaut
Viewing all articles
Browse latest Browse all 30

How To Add Subdomain(Subzone) DNS Record In Linux?

$
0
0

dns records, dns configuration, dns stuff, dns server, open dns, dns report, how dns works, dns port number, dns in linux, global dns, types of dns, define dns, universal dns, dns address, domain name system, dns advantage, dns ip address, dns watch, dns query types, open dns address, check dns, dns namespace, dns resource records, dns tutorial, dns details, a dns, what is a dns, who is dns, how to dns, dns who is, dyn dns, dns servers, dns server service, dns a name, search dns, dns name, domain dns, dns setup, set dns

dns records, dns configuration, dns stuff, dns server, open dns, dns report, how dns works, dns port number, dns in linux, global dns, types of dns, define dns, universal dns, dns address, domain name system, dns advantage, dns ip address, dns watch, dns query types, open dns address, check dns, dns namespace, dns resource records, dns tutorial, dns details, a dns, what is a dns, who is dns, how to dns, dns who is, dyn dns, dns servers, dns server service, dns a name, search dns, dns name, domain dns, dns setup, set dns

Recently we got a requirement to configure a Sub-domain(sub-zone) record in DNS server.  Its little bit advanced concept but very much easy to configure. The most known records are as follows.

A record for Adding an IP address record

NS record for a Name Server record

PTR record for a pointer record( i.e. Reverse IP lookup record)

CNAME record for a Canonical name record(i.e. alias to a A record)

MX record for a Mail Exchange record ie Mail server.

SRV record for a Service record(for example Microsoft OCS server record) and this can be used for location based IP address record.

And many more records are there which are less used and for specific use. Here we are going to discuss about how to create sub-domain record and why its used?

Why is a sub-domain record is required?

Ans : To maintain a group of hosts with same sub-domain and for easy or administration.

How to create a sub-domain in Linux?

1. Through Fully delegate the sub-domain(which requires an entry in named.conf file and a separate zone file)

2. pseudo sub domain or virtual sub-domain(no need to give entry in named.conf file and just an entry in existing zone file)

In this post we will show you how to configure Pseudo sub domain.

For example my domain name is linuxnix.com I want to create 3 sub-domain records for following hosts

ns1.in.linuxnix.com

mx2.in.linuxnix.com

www.in.linuxinx.com

If  you observe above host entries we just created a sub-domain for all my Indian servers.

Go to last line of your existing zone file. Give below entries as follows

;Sub-domain definitions
;Req by Meghana_bm, added by Surendra on  26-1-2011
$ORIGIN          in.linuxnix.com.
ns1           IN      A        202.203.204.203
mx2           IN      A        202.203.204.204
www          IN      A           202.203.204.205

Let us explore above lines. We have given $ORIGIN to indicate my sub-domain is in linuxnix.com. So what ever mention after this line it will suffice our sub-domain(ie in, India) to ns1, mx2 and www respectively.


Viewing all articles
Browse latest Browse all 30

Trending Articles