System environment:
CentOS Release 6.6 (Final)
Linux 2.6.32-504.el6.x86_64
DNS Master: 192.168.10.251 (Windows)
DNS from: 192.168.10.250 (Linux)
Installing the BIND service
# yum Install bind-libs bind-utils bind
To edit a configuration file:
# vim/etc/named.conf
Options {
Listen-on Port 53 {127.0.0.1;192.168.10.251;};
# Listen-on-v6 Port 53 {:: 1;};
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 {localhost;};
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;
};
};
Zone "." in {
Type hint;
File "named.ca";
};
Include "/etc/named.rfc1912.zones";
#include "/etc/named.root.key";
To add a zone that needs to be synchronized from the server
Add the following configuration after the/etc/named.rfc1912.zones file
Zone "hepaidai.org" in {
Type slave;
Masters {192.168.10.250;};
File "Slaves/hepaidai.org.zone";
};
Zone "langbank.org" in {
Type slave;
Masters {192.168.10.250;};
File "Slaves/langbank.org.zone";
};
Zone "longbank.org" in {
Type slave;
Masters {192.168.10.250;};
File "Slaves/longbank.org.zone";
};
Zone "zhijiaoyi.org" in {
Type slave;
Masters {192.168.10.250;};
File "Slaves/zhijiaoyi.org.zone";
};
Enable DNS master server (WinDOS) zone transfer for each zone
As shown
650) this.width=650; "class=" Confluence-embedded-image "src=" http://wiki.langbank.org/download/attachments/655593 /1.jpg?version=1&modificationdate=1432024275000&api=v2 "alt=" 1.jpg?version=1&modificationdate= 1432024 "/>
and perform the same operation on the other zone
Restart DSN from the server
#/etc/init.d/named Restart
This article is from the Linux tours blog, so be sure to keep this source http://openlinuxfly.blog.51cto.com/7120723/1689210
DNS migration from the server (Windows-based, Linux is synchronized from implementation)