Building and configuration of DNS master server and slave server

Source: Internet
Author: User
Tags dnssec

1. DownloadDNSService

Yum-y Install bind bind-chroot bind-util bind-libs

2. Configure the primaryDNSServer 

Step One: VI /etc/named.conf

Modify listen-on Port: (any;};

allow-query {any;}

As shown in the following:

650) this.width=650; "title=" 1.png "alt=" wkiol1xjx2aw98tpaafpyremjk8811.jpg "src=" http://s3.51cto.com/wyfs02/M02/ 71/36/wkiol1xjx2aw98tpaafpyremjk8811.jpg "/>

The overall configuration is as follows:

options { listen-on port 53 { any; }; listen-on-v6 port 53  { none; }; directory   "/var/named"; dump-file   "/var/named/data/ Cache_dump.db ";    statistics-file "/var/named/data/named_stats.txt ";     memstatistics-file  "/var/named/data/named_mem_stats.txt"; allow-query      { any; }; recursion yes; dnssec-enable yes; dnssec-validation  yes; dnssec-lookaside auto; /* Path to ISC DLV key */  bindkeys-file  "/etc/named.iscdlv.key"; managed-keys-directory  "/var/named/dynamic";}; logging {        channel default_debug {                 file  "Data/named.run" ;                 severity dynamic;         };}; include  "/etc/named/clients.acl";//zone  "."  IN {// type hint;// file  "named.ca";//}; #include   "/etc/named.rfc1912.zones "; #include  "/etc/named.root.key ";view " nj01 " { match-clients { localhost;  nj01;  }; allow-update { nj01; }; recursion yes;include  "/etc/ Named/named.conf ";include "/etc/named/named_nj01.conf ";};

    1. Options: Control global configuration options for the server and set default values for other statements.

    2. The directory "/var/name" defines bind's working directory as/var/name, and all of the relative paths used in the configuration file refer to the directories configured here, such as file "Archermind.org.hosts" in the following configuration files.

    3. The conf files that need to be added as needed are modified and not listed here.

Named.rfc1912.zones file:

Zone "Localhost.localdomain" in {type Master; file "Named.localhost"; allow-update {none;};}; Zone "localhost" in {type Master; file "Named.localhost"; allow-update {none;};}; Zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" in {type Master; file " Named.loopback "; allow-update {none;};}; Zone "1.0.0.127.in-addr.arpa" in {type Master; file "Named.loopback"; allow-update {none;};}; Zone "0.in-addr.arpa" in {type Master; file "Named.empty"; allow-update {none;};};

Step Two: Modify/etc/named/clients.acl (preferably all clients.acl together, including Var directory and slave server)

Add your IP from DNS server, such as:

650) this.width=650; "title=" 2.png "alt=" wkiom1xjx_sgapdhaacjavcelm4994.jpg "src=" http://s3.51cto.com/wyfs02/ M01/71/3a/wkiom1xjx_sgapdhaacjavcelm4994.jpg "/>

Step Three: Modify the/etc/named/named.conf as follows

Zone "archermind.com" in {type forward; forwarders {192.168.100.101; 192.168.100.102; }; forward only;}; Zone "archermind.cn" in {type Master; file "Archermind.cn.hosts"; allow-transfer {slaves;};}; Zone "archermind.org" in {type Master; file "Archermind.org.hosts"; allow-transfer {slaves;};};  Zone "amtbaas.com" in {type forward; forwarders {192.168.100.101;  192.168.100.102; };};

1.type forward is the forwarding domain name to other server analytics.

2. The primary server type is set to master, and if there is a DNS from the server, set Allow-transfer.

3.zone: Defines a domain, such as a positive and inverse domain.

Step Four:

Service named restart after all settings are complete.

.

3. Configuration fromDNSServer 

Step One: vi/etc/resolv.conf

650) this.width=650; "title=" 3.png "alt=" wkiol1xjajjtb6vnaab2j_3khbc968.jpg "src=" http://s3.51cto.com/wyfs02/M02/ 71/37/wkiol1xjajjtb6vnaab2j_3khbc968.jpg "/>

The above is the native IP

The following is the DNS master server IP

Step Two:

    1. Same as the primary server configuration/etc/named.conf

    2. Configure/etc/name/named.conf

Zone "archermind.com" in {type forward; forwarders {192.168.100.101; 192.168.100.102; }; forward only;};         Zone "archermind.cn" in {type slave; Masters {10.20.70.71;}; File "Archermind.cn.hosts";        };zone "archermind.org" in {type slave; Masters {10.20.70.71;}; File "Archermind.org.hosts"; };

Similar to the primary DNS server, the type is not filled in the same way.

Step Three:

Service DHCPD Restart

3. Verifying DNS domain name resolution from the server 

Cmd->nslookup->server XXX (from server IP), enter the URL.

Such as:

650) this.width=650; "title=" 4.png "alt=" wkiom1xjbjhst0s0aacuqp-ysuy186.jpg "src=" http://s3.51cto.com/wyfs02/M02/ 71/3c/wkiom1xjbjhst0s0aacuqp-ysuy186.jpg "/>

This article is from the "7582964" blog, please be sure to keep this source http://7592964.blog.51cto.com/7582964/1683586

Building and configuration of DNS master server and slave server

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.