Вы находитесь на странице: 1из 8

Chuan Wei (Cambodia) Co.

,Ltd


Prepared by NIL Thoren Page 1















Table of Contents
I. Configure DNS Master on Server 1 ...................................................................................................... 2
a. Definition .......................................................................................................................................... 2
b. Install Master DNS ............................................................................................................................ 2
II. Configure DNS Slave on Server 2 ......................................................................................................... 5
a. Definition: A Slave DNS gets its zone data using a zone transfer operation (typically from a zone
master) and it will respond as authoritative for those zones for which it is defined to be a 'slave' and
for which it has a currently valid zone configuration. It is impossible to determine from a query result
that it came from a zone master. ............................................................................................................. 5
b. Install DNS Slave ............................................................................................................................... 5
III. Configure update zone on Forward lookup zone ............................................................................ 8

Chuan Wei (Cambodia) Co.,Ltd


Prepared by NIL Thoren Page 2

I. Configure DNS Master on Server 1
a. Definition
DNS stands for Domain Name Services which means to translate computer names to IP
Address. A Master DNS defines one or more zone files for which this DNS is Authoritative ('type
master'). The zone has been delegated (via an NS Resource Record) to this DNS.
b. Install Master DNS
Step 1: We have to install the these packages to run DNS Server as command below:



Step2 : We have to go to this path and change file name: named.rfc1912.zones to
named.conf:




Step 3: Edit named.conf as below:








Step 4: We go to this path and change it to zone that we edit in named.conf as below:

Chuan Wei (Cambodia) Co.,Ltd


Prepared by NIL Thoren Page 3

Step 5: Edit by: vi thoren.com.zone as below:








Step 6: Edit in 192.168.53.zone as below:






Step 7: Change ownership and give permission to file named.conf as below:

Chuan Wei (Cambodia) Co.,Ltd


Prepared by NIL Thoren Page 4

c. Step 8: We start service of DNS Server as belows:




Step 9: Start testing of our DNS by using nslookup:

Chuan Wei (Cambodia) Co.,Ltd


Prepared by NIL Thoren Page 5


II. Configure DNS Slave on Server 2
a. Definition: A Slave DNS gets its zone data using a zone transfer operation (typically
from a zone master) and it will respond as authoritative for those zones for which it is
defined to be a 'slave' and for which it has a currently valid zone configuration. It is
impossible to determine from a query result that it came from a zone master.
b. Install DNS Slave
Step 1: We have to install packages as Master DNS Server
# yum install bind bind-utils bind-chroot caching-nameserver
Step 2: We go to change file named.rfc1912.zone to named.conf as Master DNS






Step 3: Edit in file named.conf as below:











Chuan Wei (Cambodia) Co.,Ltd


Prepared by NIL Thoren Page 6

Step 4: We start service of DNS as below:





Step 5: Start testing DNS in Slave Machine by using nslookup









Step 6: When we go to this path we will see zone of DNS that they transfers from
Master DNS:





Step 7: I want to test update zone, so I remove zone and start service of DNS again.

Chuan Wei (Cambodia) Co.,Ltd


Prepared by NIL Thoren Page 7

Step 7: I check in thoren.com.zone it will be showed like that.








Step 8: Check in 192.168.53.zone it will be showed like that.








Step 9: Test DNS Slave Server








Chuan Wei (Cambodia) Co.,Ltd


Prepared by NIL Thoren Page 8

III. Configure update zone on Forward lookup zone
Step 1: I have added one hostname (hello) to my Forward lookup zone: thoren.com.zone,
and we have to update serial number in it. On Master DNS Server







Step 2: We have to start zone by using this command




Step 4: Vim Forward lookup zone: thoren.com.zone you will see update like that. On Slave
DNS and we can do like that on Reverse lookup zone.








Finished!

Вам также может понравиться