Saturday, July 27, 2013

Configuring DNS server

DNS

Name address resolution is, simply stated, the conversion of people friendly names into computer friendly numbers. Remember from Chapter 6 that each interface on the network has an IP address. This address is expressed as a dotted quad group.These groups of numbers present no problem to the computers in the network, but it is very difficult for humans to remember many groups of numbers. So you need to be able to enter names and then have these names converted into numbers. Each time you type a Web site’s address into your browser, the Domain Name System (DNS) goes to work. You enter names that are easy for you to remember, and the names are resolved into numbers that computers find easy to understand. Enabling efficient human/machine interaction is the function of name address resolution. In this chapter you learn how to install and configure the Domain Name System,which provides this name address resolution.

Configuring A Regular Nameserver

First we need the bind package Downloading and Installing the BIND Packages,Most RedHat and Fedora Linux software products are available in a package format. When searching for the file, remember that the BIND package's filename usually starts with the word “bind” followed by a version number, as in bind-9.2.2.P3-9.i386.rpm.

1] Enter the DNS1 entry in ifcfg-eth0 file.
2] Enter the complete hostname in /etc/sysconfig/network file.
3] Enter the hostname entry in /etc/hosts file.

 Configuring resolv.conf
You'll have to make your DNS server refer to itself for all DNS queries by configuring the /etc/resolv.conf file to reference localhost only.

nameserver  


Configuring named.conf
The named.conf file contains the main DNS configuration and tells BIND where to find the configuration files for each domain you own. This file usually has two zone areas:

Make two changes in this file
1] on listen port 53 line enter the IP Address of the Machine intended to be name server
2] In Allow Query Line enter “any”

Save & Exit


4] We need to edit the named.rfc1912.conf file
                In this file we will enter our domain name, in my case I have put “test.edu”
                And in the file line I have put new file name i.e. “forward.zone”

 

5] Next change will be putting reverse IP Address & new file name i.e “reverse.zone”.


6] Then we need to change the group of our newly created file i.e “forward.zone & reverse.zone”


7] After changing the group to named succesfully, now its time to edit forward.zone & reverse.zone files respectively.

Below is my forward.zone file after editing.


8]  Reverse.zone file after editing.


 9] After successfully configuring all the file  let us start the named service.


10] Running the command dig server.test.edu



No comments:

Post a Comment