Install BIND in Red Hat 6 or CentOS 6

By | 2012/09/25

As of Red Hat 6 and CentOS 6, the DNS server bind is super easy to get up and running. Here’s how it works!

Install bind:

$ sudo yum install bind

Start bind – the service is called named

$ sudo /etc/init.d/named start
Generating /etc/rndc.key:                                  [  OK  ]
Starting named:                                            [  OK  ]


If you need to edit or make changes to named.conf, it is located at /etc/named.conf.

$ sudo nano /etc/named.conf

This is the default named.conf file provided by the vendor:

options {
        listen-on port 53 {; };
        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/";
                severity dynamic;

zone "." IN {
        type hint;
        file "";

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

After any changes, restart named:

$ sudo /etc/init.d/named restart

One thought on “Install BIND in Red Hat 6 or CentOS 6

  1. ashwin

    thanks for your tutorial but nothing I learnt.. :-p


Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.