RHEL6.4 install DNS Service (bind-9.8) first install yum, use yum to install bindyuminstallbind * different operating systems rpm Packages may vary with bind-9.8.2-0.17.rc1.el6.x86_64bind-utils-9.8.2-0.17.rc1.el6.x86_64bind-
RHEL 6.4 install DNS (bind-9.8)
First install yum and use yum to install bind
Yum install bind *
Different operating systems may have different rpm packages.
Bind-9.8.2-0.17.rc1.el6.x86_64
Bind-utils-9.8.2-0.17.rc1.el6.x86_64
Bind-chroot-9.8.2-0.17.rc1.el6.x86_64
Bind-dyndb-ldap-2.3-2.el6.x86_64
Bind-libs-9.8.2-0.17.rc1.el6.x86_64
Edit named. conf after installing several rpm packages
Vim/etc/named. conf
Options {
Listen-on port 53 {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 {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 ";
};
Here is the custom Domain Name
Zone "linuxidc.com" IN {
Type master;
File "named.linuxidc.com ";
};
Zone "1.168.192.in-addr. arpa" IN {
Type master;
File "named.192.168.1 ";
};
Include "/etc/named. rfc1912.zones ";
Include "/etc/named. root. key ";
: Wq save and exit
Cd/var/named/
Vim named.linuxidc.com
$ TTL 3600
@ In soa demo.linuxidc.com. root.linuxidc.com .(
2014102401
1 H
5 M
1 W
1D)
@ In ns demo.linuxidc.com.
@ In mx 10 mail.linuxidc.com.
Mail in a 192.168.123.200
Demo in a 192.168.123.200
Www in a 192.168.123.200
Ftp in cname demo.linuxidc.com.
: Wq
Vim named.192.168.1
$ TTL 3600
@ In soa demo.linuxidc.com. root.linuxidc.com .(
2014102402
1 H
5 M
1 w
1D)
@ In ns demo.linuxidc.com.
200 in ptr demo.linuxidc.com.
200 in ptr mail.linuxidc.com.
200 in ptr www.linuxidc.com.
200 in ptr ftp.linuxidc.com.
Service named restart DNS service
Stopping named: [OK]
Starting named: [OK]
The DNS service has been started properly ..........................
Verify DNS Service:
[Root @ demo named] # nslookup
> Linuxidc.com
-------------------------------------- Split line --------------------------------------
Install Bind 9.6.1 In CentOS to build a DNS server http://www.linuxidc.com/Linux/2014-06/103660.htm
Use BIND to configure DNS servers-elementary http://www.linuxidc.com/Linux/2013-05/84920.htm
BIND + DLZ + MySQL intelligent DNS forward resolution and reverse resolution implementation method http://www.linuxidc.com/Linux/2013-04/82527.htm
Domain Name Service BIND construction and application configuration http://www.linuxidc.com/Linux/2013-04/82111.htm
Ubuntu BIND9 wildcard domain name resolution configuration http://www.linuxidc.com/Linux/2013-03/81928.htm
Install BIND9.6 http://www.linuxidc.com/Linux/2013-02/79889.htm under CentOS 5.2
DNS server configuration graphic explanation http://www.linuxidc.com/Linux/2012-10/72728.htm
-------------------------------------- Split line --------------------------------------
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-10/108516.htm