DNS migration from the server (Windows-based, Linux is synchronized from implementation)

Source: Internet
Author: User
Tags dnssec

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)

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.