Configuring DNS with BIND on Oracle Linux 6

Before start, I configured this based on other examples on web and I am configuring to being use for Single Client Access Name (SCAN) on Oracle RAC configuration. This DNS configuration is for a test environment, this is for make SCAN work. if you are using virtual machines I recommend you to install the DNS on separete virtual machine or your host machine.

I am using domain so if you are using different domain or localhost you have to change according to your DNS configuration files.

DNS Installation

[root@dns ~]# yum install bind-libs bind bind-utils -y

DNS Configuration files

Now we have to configure the following files

  • DNS configuration file
  • domain zone file
  • reverse dns zone file
  • Resolv file


[root@dns ~]# cat /etc/named.conf

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

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic";
                forwarders {;; };

logging {
        channel default_debug {
                file "data/";
                severity dynamic;

zone "" IN {
        type master;
        file "";
        allow-update { none; };

zone "" IN {
        type master;
        file "";
        allow-update { none; };

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


description of the IPs to be configure in this file

Public host01 host02 host03
Private host01-priv1 host02-priv1 host03-priv1 host01-priv2 host02-priv2 host03-priv2
Virtual host01-vip host02-vip host03-vip
SCAN cluster01-scan cluster01-scan cluster01-scan
[root@dns ~]# cat /var/named/
$TTL    86400
@               IN SOA
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS 
dns                     IN A
host01          IN A
host02          IN A
host03          IN A
host01-priv1    IN A
host02-priv1    IN A
host03-priv1    IN A
host01-priv2    IN A
host02-priv2    IN A
host03-priv2    IN A
host01-vip      IN A
host02-vip      IN A
host03-vip      IN A
cluster01-scan  IN A
cluster01-scan  IN A
cluster01-scan  IN A


[root@dns ~]# cat /var/named/
@       IN      SOA (      2
                                                1H )         IN NS

101     IN PTR
102     IN PTR
103     IN PTR
111     IN PTR
112     IN PTR
113     IN PTR
121     IN PTR
122     IN PTR
123     IN PTR

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s