LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2013, 12:33 PM   #1
mouthpiec
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Rep: Reputation: Disabled
Question rDNS Config Problem - not found: 3(NXDOMAIN)


Hi,
I use this forum several times to troubleshoot my problems and usually from old posts I manage to find my solution ... but this time I have to post this question although it seems relatively easy.

I am using a BIND DNS installed on a CentOS V6 and I am trying to configure Reverse DNS (normal DNS is working fine).

Details of my problem below:

Server IP Config
Code:
[root@testserver named]# ifconfig | grep "inet addr"
          inet addr:172.16.243.16  Bcast:172.16.243.255  Mask:255.255.255.0
          inet addr:127.0.0.1  Mask:255.0.0.0
Hostname
Code:
[root@testserver]# hostname
testserver.intra
Error I am getting
Code:
[root@testserver named]# host 172.16.243.16
Host 16.243.16.172.in-addr.arpa. not found: 3(NXDOMAIN)
Config in named.conf
Code:
[root@testserver named]# more /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

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";
};

zone "open-ims.test" IN {
        type master;
        file "open-ims.dnszone";
        allow-transfer { none; };
        allow-update { 127.0.0.1; };
};

// zone "0.0.127.in-addr.arpa" {
//         type master;
//         file "0.0.127.in-addr.arpa";
// };

zone "243.16.172.in-addr.arpa" {
       type master;
       file "243.16.172.in-addr.arpa";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
Config in Reverse DNS Zone File
Code:
[root@testserver named]# more 243.16.172.in-addr.arpa
@               IN      SOA     testserver.intra.      root.testserver.intra. (
                        2013000016 ; serial
                        1H ; refresh
                        15M ; retry
                        14D ; expire
                        12H ; default_ttl
                        )
@               IN      NS      testserver.intra.
16              IN      PTR     testserver.intra.

Hope the above is enough to help you help me
thanks in advance!
 
Old 04-07-2013, 03:31 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,903

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Hi and welcome to LQ,

The 243.16.172.in-addr.arpa zone file looks good.
Are you sure you've increased the serial after editing it. What gives:
Code:
named-checkconf -z
 
Old 04-07-2013, 05:09 PM   #3
mouthpiec
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks for the reply!

result here:
Code:
zone open-ims.test/IN: loaded serial 2006101001
243.16.172.in-addr.arpa:1: no TTL specified; using SOA MINTTL instead
zone 243.16.172.in-addr.arpa/IN: loaded serial 2013000018
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
also it seems that by changing the serial the change is being noted by the process:
Code:
243.16.172.in-addr.arpa:1: no TTL specified; using SOA MINTTL instead
zone 243.16.172.in-addr.arpa/IN: loaded serial 2013000016
zone 0.in-addr.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
243.16.172.in-addr.arpa:1: no TTL specified; using SOA MINTTL instead
zone 243.16.172.in-addr.arpa/IN: loaded serial 2013000017
zone 0.in-addr.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
243.16.172.in-addr.arpa:1: no TTL specified; using SOA MINTTL instead
zone 243.16.172.in-addr.arpa/IN: loaded serial 2013000018
 
Old 04-07-2013, 05:20 PM   #4
mouthpiec
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
added TTL to remove that warning. Warning removed but IP not being resolved

Code:
zone open-ims.test/IN: loaded serial 2006101001
zone 243.16.172.in-addr.arpa/IN: loaded serial 2013000019
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0

Code:
# host 172.16.243.16
Host 16.243.16.172.in-addr.arpa. not found: 3(NXDOMAIN)
 
Old 04-07-2013, 06:21 PM   #5
mouthpiec
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thumbs up

hi again ... issue was solved

I had to configure it as a DNS server for my machine by modifying /etc/resolv.conf file

Code:
vi /etc/resolv.conf
nameserver 127.0.0.1
search open-ims.test
domain open-ims.test
Still cannot understand the reason behind this but issue was solved.

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind problem. ** server can't find example.com: NXDOMAIN DarkSlayer Linux - Server 2 06-26-2011 11:41 AM
gtk-config and glib-config scripts not found? Frustin Linux - General 17 12-26-2008 03:14 PM
problem installing PHP 5 xml2-config not found SpinningCone Linux - Newbie 5 02-21-2007 08:06 AM
rDNS looping problem jfall Linux - Networking 0 04-11-2006 09:51 PM
pkg-config problem, gaim.pc not found ncharoe Linux - Software 1 01-12-2005 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration