Deploy the BIND9 server from scratch: Deploy the cache server

Source: Internet
Author: User
Tags dnssec

All operations are performed on the 192.168.1.104

First, install BIND9:

Yum install-y bind

Second, modify the configuration file:

Cp/etc/named.conf{,.back} //Do backup first

Vim/etc/named.conf

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8C/52/wKiom1hqOj2CHUEcAAIIvK9tNW0151.png "title=" B.png " alt= "Wkiom1hqoj2chuecaaiivk9tnw0151.png"/>

Third, start the service:

chkconfig--level named on //Set boot up

Service named start

Verify:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/8C/4E/wKioL1hqOm3Do_r3AADYj5LmZ5s755.png "title=" B.png " alt= "Wkiol1hqom3do_r3aadyj5lmz5s755.png"/>

dig-t A www.souhu.com @192.168.1.104 //operate on the 192.168.1.0/24 host

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8C/52/wKiom1hqOoOTnHVQAABcK98PPUw645.png "title=" B.png " alt= "Wkiom1hqoootnhvqaabck98ppuw645.png"/>

dig-t A www.sina.com @192.168.1.104 //operate on a non-192.168.1.0/24 host

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8C/4E/wKioL1hqOpyxr35WAAC2iMdEH2s621.png "title=" B.png " alt= "Wkiol1hqopyxr35waac2imdeh2s621.png"/>

Report:

/etc/named.conf

//

named.conf

//

Provided byred Hat bind package To configure the ISC bind named (8) DNS

Server as acaching only nameserver (as a localhost, DNS resolver only).

//

See/usr/share/doc/bind*/sample/for example named configuration files.

//

// Custom ACLs

ACL MyNet {

192.168.1.0/24;

};

Options {

Listen-on Port 53 {192.168.1.104;127.0.0.1;};

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 {any;}; Allow any host query

recursion yes; Turn on recursive query function

allow-recursion {mynet;}; allow only the specified client to make a recursive query

dnssec-enable No; Turn off dnssec

Dnssec-validation No; Turn off dnssec

/* 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";


Deploy the BIND9 server from scratch: Deploy the cache 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.