To build the configuration documentation for the DNS master-slave server in Liunx

Source: Internet
Author: User
Tags domain name server

in the RHEL6.5 , the system CD comes with the BIND installation files for the service

Installation steps

Preparatory work:

Service iptables Stop # shutting down the firewall

S etenforce 0 off selinux

    1. Mounting discs

Mount/dev/cdrom /mnt

cd/mnt /packages

LS |grep ^bind

bind-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm

bind-chroot-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm

bind-dyndb-ldap-2.3-5.el6.x86_64.rpm

bind-libs-9.8.2-0.17.rc1.el6_4.6.i686.rpm

Bind-libs-9.8.2-0.17.rc1.el6_4.6.x86_64.rp

bind-utils-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm

( 1 ) bind: The main program and related documents of Domain name service are provided.

( 2 ) bind-utils : Provides a DNS the server's Test utility program, such as nslookup and so on.

( 3 ) Bind-libs : Provides a Bind . bind-utils Library functions that need to be used

( 4 ) Bind-chroot to be Bind The service provides a spoofed root directory that provides security.

The default is already installed bind-utils and the Bind-libs , so you only need to install Bind and the Bind-chroot can be.

2. Install bind

RPM-IVH bind-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm

RPM-IVH bind-chroot-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm

3. Modify the master configuration file

Vim/etc/named.conf

Options {

directory "/var/named"; # Define the default storage location for zone data files

};

               #

   type master;                &NBSP,    #master (master server)  

file " benet.com.zone"; # The zone data file is named benet.com

allow-update {none;};

};

zone "11.168.192.in-addr.arpa" in { # Reverse Region

type master ; # type is master(master server)

file "192.168.11.arpa";     

# The zone data file is named 192.168.11.arp a

};

4. Modify the zone configuration file

C d/var/named

(1) V im Benet.com.zone

$TTL 86400

@ SOA benet.com. Admin.benet.com (

20160301 update serial number

4H Refresh Time: The interval to re-download data

30M Retry delay: Retry interval after download failure

12H expiration time, more than that time still cannot download then discard

1D the lifetime of an invalid parse record

)

@ in NS 192.168.25.18. # here to write the IP Address of the DNS server, either the host name or the IP

www in A 192.168.11.1

HHH in A 192.168.11.11

The first line of the TTL configuration is used to set the default life cycle. That is, the effective time of the cache parsing result

The SOA Records section is used to set the zone name, manage mailboxes, and specify update parameters for the domain name server.

(2) Reverse zone configuration file

V im 192.168.11.arpa

$TTL 86400

@ SOA benet.com. Admin.benet.com (

20160301 Update serial number

4H Refresh Time: The interval to re-download data

30M Retry delay: Retry interval after download failure

12H expiration time, more than that time still cannot download then discard

1D the lifetime of an invalid parse record

)

In NS 192.168.25.43.

1 in PTR www.benet.com.

One in PTR hhh.benet.com.

Build from a domain name server

Options {

Directory "/var/named";

};

Zone "Benet.com" in {

Type slave;

Masters {192.168.18.177;};

File "Slaves/benet.com.zone";

};

Zone "11.168.192.in-addr.arpa" in {

Type slave;

Masters {192.168.18.177;};

File "Slaves/192.168.11.arpa";

};


This article is from the "light kiss your forehead ︶ㄣ purple Roses" blog, please be sure to keep this source http://1298411894.blog.51cto.com/11494198/1826105

To build the configuration documentation for the DNS master-slave server in Liunx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.