Centos6.4 Installing the BIND DNS server

Source: Internet
Author: User
Tags dnssec

First, Introduction

  

1) Centos6.4 64bit minimal

2) bind-9.8.2-0.30.rc1.el6_6.3.x86_64

Second, installation

$ yum install-y bind Bind-utils

Third, the configuration

A) Bind master configuration file

$ vi/etc/named.conf ////named.conf////provided by Red Hat bind package To configure the ISC bind named (8) DNS//server as a caching only nameserver (as a localhost, DNS resolver only).////see/usr/share/doc/bind*/sample/for example named configuration files.//Options {Listen-on Port -{172.31.100.82; }; #listen-ON-V6 Port -{ ::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 {172.31.100.0/ -; };    recursion Yes;    Forward only; Forwarders {114.114.114.114;1.2.4.8; }; DNSSEC-enable no; DNSSEC-validation No; //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";}; Zone"moniter.com"In {type master; File"Moniter.com.zone"; allow-update {none;};}; Include"/etc/named.rfc1912.zones"; include"/etc/named.root.key";

B) Configure the DNS zone file

$ CP-RFV/var/named/named.localhost/var/named/moniter.com.zone$ vi /var/ named/ moniter.com.zone$TTL -@ in SOA master.moniter.com. root.master.moniter.com. (                                        0; serial 1D; Refresh 1H ; Retry 1W; Expire 3H); minimum@ in A172.31.100.46@ in NS ns.moniter.com. In MXTenMail.moniter.com.ns in A172.31.100.82Mail in A172.31.100.82www in A172.31.100.46

Four, the operation

$/etc/init.d/named start$ chkconfig named on

V. Inspection

$ ps aux|  -ntlp| grep named$ dig www.moniter.com

Centos6.4 Installing the BIND DNS 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.