RHEL 6.4 install DNS (bind-9.8)

Source: Internet
Author: User
Tags dnssec

RHEL 6.4 install DNS (bind-9.8)

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 "bkjia.com" IN {
Type master;
File "named.bkjia.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.bkjia.com

$ TTL 3600
@ In soa demo.bkjia.com. root.bkjia.com .(
2014102401
1 H
5 M
1 W
1D)
@ In ns demo.bkjia.com.
@ In mx 10 mail.bkjia.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.bkjia.com.
: Wq

Vim named.192.168.1

$ TTL 3600
@ In soa demo.bkjia.com. root.bkjia.com .(
2014102402
1 H
5 M
1 w
1D)
@ In ns demo.bkjia.com.
200 in ptr demo.bkjia.com.
200 in ptr mail.bkjia.com.
200 in ptr www.bkjia.com.
200 in ptr ftp.bkjia.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
> Bkjia.com

-------------------------------------- Split line --------------------------------------

Install Bind 9.6.1 In the source code of CentOS to build a DNS server

Use BIND to configure the DNS server

BIND + DLZ + MySQL smart DNS implementation of forward and reverse resolution

Domain Name Service BIND construction and application configuration

Ubuntu BIND9 wildcard domain name resolution Configuration

Install BIND9.6 in CentOS 5.2

DNS Server Configuration

-------------------------------------- Split line --------------------------------------

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.