1.[root@zh888 ~] #yum-y install bind*//Install all bind software with Yum
2.[root@zh888 ~]# rpm-qa|grep bind//query all software installed by bind
bind-9.7.3-8.p3.el6_2.2.i686
bind-libs-9.7.3-8.p3.el6_2.2.i686
bind-sdb-9.7.3-8.p3.el6_2.2.i686
bind-devel-9.7.3-8.p3.el6_2.2.i686
bind-utils-9.7.3-8.p3.el6_2.2.i686
3.[root@zh888 ~]# cat/etc/named.conf//view named.conf main configuration file
//
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 {any;///Open Listening ports 53, accept any IP connection
&NBS P;listen-on-v6 Port 53 {:: 1;};
directory "/var/named";//This is the directory forward to the reverse zone are all created in this directory
&NBS P 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 {0.0.0.0/0;//// allow arbitrary IP queries here can also be modified to any if not modified will appear in Nslookup Error refused denied
forward only; //Add forwarding function
&N Bsp forwarders {
202.101.172.35; //zhejiang DNS server address
202.101.172.46;
recursion Yes;
Dnssec-enable Yes;
Dnssec-validation Yes;
Dnssec-lookaside Auto;
/* Path to ISC DLV Key * *
Bindkeys-file "/etc/named.iscdlv.key";
};
Logging {
Channel Default_debug {
File "Data/named.run";
Severity dynamic;
};
};
Zone "." in {
Type hint;
File "named.ca";
};
Include "/etc/named.rfc1912.zones"; Primary configuration file
The 4.//named.rfc1912.zones:///etc/named.rf1912.zones configuration file is as follows: Add forward and reverse zone files at the end
//
Provided by Red Hat Caching-nameserver Package
//
ISC BIND named zone configuration for zones recommended by
RFC 1912 Section 4.1:localhost TLDs and address zones
and Http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
(c) 2007 R W Franks
//
See/usr/share/doc/bind*/sample/for example named configuration files.
//