Tuesday, 16 October 2012

Installation Of BIND DNS from Source


The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most importantly, it translates domain names meaningful to humans into the numerical identifiers associated with networking equipment for the purpose of locating and addressing these devices worldwide. 

Installation

1)Download dns package from the source
2)From the source folder run command
# ./configure
# make
# make install
3)Create a file called named.conf in /usr/local/bind/etc/named.conf
zone "trainee7.com" IN {
type master;
file "remote.com.zone";
allow-update { none; };
};
4)Create the zone file in /usr/local/bind/var/named
$TTL 86400
trainee7.com. IN SOA root.trainee7.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ; Minimum
)
IN NS trainee7.com.
trainee7.com. IN A 192.168.1.109
www.trainee7.com. IN CNAME 192.168.1.109
trainee7.com. IN MX 0 trainee7.com.
5)Service Named Restart
6)Edit these configuration files
vi /etc/hosts
192.168.1.109 trainee07.server.com
vi /etc/resolv.conf
search trainee7.com
nameserver 192.168.1.109
7)chgrp named /usr/local/bind/var/named/remote.com.zone
8)host trainee7.com
9)dig trainee7.com  


No comments:

Post a Comment