Trying to configure DNS using BIND package in Oracle Linux 6.6


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Trying to configure DNS using BIND package in Oracle Linux 6.6
# 1  
Old 05-26-2015
Trying to configure DNS using BIND package in Oracle Linux 6.6

Version: Oracle Linux 6.6

I am trying to set up DNS for forward and reverse lookups. I am new to BIND package.

I have installed the following packages.
bind (includes DNS server, named)
bind-utils (utilities for querying DNS servers about host information)
bind-libs (libraries used by the bind server and utils package)
The domain I am trying to configure : openhex.com
DNS Server IP : 10.194.135.185

This is for Oracle RAC cluster build.
I want the hostname rac-scan.openhex.com to resolve to the following 3 IPs . This is for the SCAN functionality in Oracle RAC

10.194.135.82
10.194.135.83
10.194.135.84

Following are the 3 configuration files I am using

1. /etc/named.conf
2. /var/named/openhex.com.zone (For foward lookup )
3. /var/named/135.194.10.in-addr.arpa (For reverse lookup )


#### 1. /etc/named.conf

Code:
[root@oem12cdns185 etc]# cat /etc/named.conf
options {
        listen-on port 53 {127.0.0.1; 10.194.135.185; };
        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     { 127.0.0.1; 10.194.135.185; };
        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";
};

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

zone "135.194.10.in-addr.arpa." IN {
type master;
file "135.194.10.in-addr.arpa";
allow-update { none; };
};

### 2. forward zone file
### /var/named/openhex.com.zone

Code:
[root@oem12cdns185 etc]# cat /var/named/openhex.com.zone
$TTL    86400
@               IN SOA  localhost root.localhost (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           localhost
localhost       IN A            127.0.0.1
pravda178-oravip.openhex.com  IN A  10.194.135.217
pravda179-oravip.openhex.com  IN A  10.194.135.218
rac-scan.openhex.com IN A  10.194.135.82
rac-scan.openhex.com IN A  10.194.135.83
rac-scan.openhex.com IN A  10.194.135.84

### 3. reverse zone file
####/var/named/135.194.10.in-addr.arpa

Code:
[root@oem12cdns185 etc]# cat /var/named/135.194.10.in-addr.arpa
$ORIGIN 135.194.10.in-addr.arpa.
$TTL 1H
@       IN      SOA     openhex.com. root.openhex.com.   (      2
3H
1H
1W
1H )
35.194.10.in-addr.arpa.         IN NS      openhex.com.
217 IN PTR pravda178-oravip.openhex.com.
218 IN PTR pravda179-oravip.openhex.com.
82 IN PTR rac-scan.openhex.com.
83 IN PTR rac-scan.openhex.com.
84 IN PTR rac-scan.openhex.com.

When I try to start the named service, I get the following error which seems to be related to reverse zone file:

Code:
[root@oem12cdns185 etc]# service named start
Starting named:
Error in named configuration:
zone openhex.com/IN: loaded serial 42
135.194.10.in-addr.arpa:8: ignoring out-of-zone data (35.194.10.in-addr.arpa)
zone 135.194.10.in-addr.arpa/IN: has no NS records
zone 135.194.10.in-addr.arpa/IN: not loaded due to errors.
_default/135.194.10.in-addr.arpa./IN: bad zone
                                                           [FAILED]
[root@oem12cdns185 etc]#

Output of named-checkconf and named-checkzone utilties

Code:
[root@oem12cdns185 etc]# named-checkconf /etc/named.conf
[root@oem12cdns185 etc]#
[root@oem12cdns185 etc]#
[root@oem12cdns185 etc]# named-checkzone openhex.com /var/named/135.194.10.in-addr.arpa
/var/named/135.194.10.in-addr.arpa:3: ignoring out-of-zone data (135.194.10.in-addr.arpa)
/var/named/135.194.10.in-addr.arpa:8: ignoring out-of-zone data (35.194.10.in-addr.arpa)
/var/named/135.194.10.in-addr.arpa:9: ignoring out-of-zone data (217.135.194.10.in-addr.arpa)
/var/named/135.194.10.in-addr.arpa:10: ignoring out-of-zone data (218.135.194.10.in-addr.arpa)
/var/named/135.194.10.in-addr.arpa:11: ignoring out-of-zone data (82.135.194.10.in-addr.arpa)
/var/named/135.194.10.in-addr.arpa:12: ignoring out-of-zone data (83.135.194.10.in-addr.arpa)
/var/named/135.194.10.in-addr.arpa:13: ignoring out-of-zone data (84.135.194.10.in-addr.arpa)
zone openhex.com/IN: has 0 SOA records
zone openhex.com/IN: has no NS records
zone openhex.com/IN: not loaded due to errors.
[root@oem12cdns185 etc]#
[root@oem12cdns185 etc]# named-checkzone openhex.com /var/named/openhex.com.zone
zone openhex.com/IN: loaded serial 42
OK
[root@oem12cdns185 etc]#

Any idea what is the root cause of this issue ?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Bind (DNS) error on EL 6.4

Gurus I have configured bind 9 on Red hat EL 6.4, it can resolve from hostname i.e from domain name (like cnn.com, bbc.com)but through IP its shows following error. Need your expert opinion to solve it. error 84.23.97.31 Server: 192.168.31.24 Address: 192.168.31.24#53 ** server can't... (1 Reply)
Discussion started by: smazshah
1 Replies

2. UNIX for Dummies Questions & Answers

Configure BIND

I know how to manage DNS once it's installed. I can edit named.conf and create zone files. I can sign the zones, use TSIG, etc. How do I take the BIND 9.9 tar ball from All Downloads | Internet Systems Consortium and install it and get it to work? Maybe I am not getting it. Can... (0 Replies)
Discussion started by: brianjb
0 Replies

3. Red Hat

Public dns bind 9

Hi Friends, I need help to understand how to publish my public dns to internet. I have configured bind 9 on thel5 server and it working fine. My question is, as i donot want to expose my orginal hostname to outside and my zone files are configured with the NS recorde of the orginal hostname,... (5 Replies)
Discussion started by: arumon
5 Replies

4. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

5. Solaris

How to Configure DNS bind 9 with Ldap back-end

My environmnet : solaris 10 u 7 sparc To configure DNS bind use Ldap as zone record database, I use bind 9.7.0 and sun directory 5.2 I do follow http://imil.net/docs/Configuring_DNS_zones_with_LDAP.txt and stuck at make install Error from bind log "database: error: unsupported database... (0 Replies)
Discussion started by: tien86
0 Replies

6. UNIX for Advanced & Expert Users

DNS Bind

Hello, I have a question about dns file zone. Every zone file begins like: @ 86400 IN SOA ns1.website.com. admin@website.com. ( It means that name server ns1 is responsible for this zone. At the ending I can add the records like mysite.com IN A 1.2.3.4 So it will... (2 Replies)
Discussion started by: mirusnet
2 Replies

7. Solaris

solaris - BIND / DNS

hi all forgive my ignorance, but when IVe set up DNS Ive put in the various server details in the /etc/resolv.conf and away I go. Suddenly Ive been reading about DNS, and I need to created a /etc/named.conf file. so, my question is this. DNS, what part does the /etc/resolv.conf play in... (3 Replies)
Discussion started by: sbk1972
3 Replies

8. UNIX for Dummies Questions & Answers

Dns/bind

Hi, Does anyone know anything about DNS/BIND? I need to tell my dns for every sub-domain foward on to my main domain.... so *.example.com gets sent to exmaple.com. Any ideas. I've looked at bind on my machine and theres about 10 files....i just don't know where to put the rule or exactly... (2 Replies)
Discussion started by: elduderino
2 Replies

9. IP Networking

Question on DNS/BIND

I have set up a BIND server running on Redhat AS 3.0 and the question I have is that I can point my laptop to that server and resolve all the hosts I have put in my .zone file but for the life of me I can resolve any outside information. I have verified the server can talk to the world. Any hints... (2 Replies)
Discussion started by: Acleoma
2 Replies

10. UNIX for Dummies Questions & Answers

BIND DNS replication

I have a RedHat 7.1 box that we use for DNS in our System Engineering lab. We have a Windows 2000 box that handles DNS in our main office. The Microsoft Admin and I have been given the task of making both of our domains accessible to each other. I had originally made his domain my forwarder, so... (5 Replies)
Discussion started by: Jody
5 Replies
Login or Register to Ask a Question