DNS reverse lookup issue

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat DNS reverse lookup issue
# 1  
Old 06-01-2014
DNS reverse lookup issue

Hi guys. Ok so let me lay out my configs. I can do a NSlookup from client to server BUT NOT a reverse lookup.

DNS server: Optimus.jaydomain.com
IP : 192.168.1.50

DNS Client: Megatron.jaydomain.com
IP : 192.168.1.60


On Sever:

Code:
[root@Optimus etc]# cat /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; 192.168.1.50; };
        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; 192.168.1.0/24; };
        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 "jaydomain.com" IN {
        type master;
        file "/var/named/fwd.jaydomain.com";
        allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
        type master;
        file "/var/named/rev.jaydomain.com";
        allow-update { none; };
};




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


Code:
[root@Optimus etc]# cat /var/named/fwd.jaydomain.com
$TTL 86400
@   IN  SOA     Optimus.jaydomain.com. root.jaydomain.com. (
        2011071001  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)
@ IN  NS      Optimus.jaydomain.com.

Optimus IN A 192.168.1.50


Code:
[root@Optimus etc]# cat /var/named/rev.jaydomain.com
$TTL 86400
@   IN  SOA     Optimus.jaydomain.com. root.jaydomain.com. (
        2011071001  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)
@ IN  NS      Optimus.jaydomain.com.

Optimus IN A 192.168.1.50

100       IN  PTR     Optimus.jaydomain.com.


Code:
[root@Optimus etc]# service named status
version: 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1
CPUs found: 1
worker threads: 1
number of zones: 21
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
named-sdb (pid  22191) is running...


On client:


Code:
[root@Megatron ~]# cat /etc/resolv.conf
search jaydomain.com

nameserver 192.168.1.50


From client:

Code:
[root@Megatron ~]# nslookup Optimus.jaydomain.com
Server:         192.168.1.50
Address:        192.168.1.50#53

Name:   Optimus.jaydomain.com
Address: 192.168.1.50

[root@Megatron ~]# nslookup 192.168.1.50
Server:         192.168.1.50
Address:        192.168.1.50#53

** server can't find 50.1.168.192.in-addr.arpa.: NXDOMAIN


What seems to be the problem ?
# 2  
Old 06-01-2014
Quote:
Originally Posted by Junaid Subhani

Code:
[root@Optimus etc]# cat /var/named/rev.jaydomain.com
$TTL 86400
@   IN  SOA     Optimus.jaydomain.com. root.jaydomain.com. (
        2011071001  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)
@ IN  NS      Optimus.jaydomain.com.

Optimus IN A 192.168.1.50

100       IN  PTR     Optimus.jaydomain.com.

Highlighted should be 50
This User Gave Thanks to Aia For This Post:
# 3  
Old 06-02-2014
It worked. Thank you. Can you brief me on why you did that. It will be highly appreciated Smilie

Im new to DNS.
# 4  
Old 06-02-2014
The reverse zone is the opposite to a forward zone, reversing as well the ip
Code:
50.1.168.192 IN  PTR Optimus.jaydomain.com.

For abbreviation sake, most of the time you'll see just the last octet of the unreversed ip.

Code:
50 IN PTR Optimus.jaydomain.com.

Based on that information, you figure out if
Code:
Optimus IN A 192.168.1.50

which you have in /var/named/rev.jaydomain.com belong there or not

Last edited by Aia; 06-02-2014 at 03:49 PM.. Reason: Clarification
# 5  
Old 06-02-2014
I see. Makes perfect sense. Thank you so much for your help Aia Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Reverse lookup issue

I came back to my solaris 10 system after a week of being gone and xterm no longer work. I checked into it and the system doesn't reverse lookup my client system. There is a manual entry for my system in the /etc/hosts file and a forward lookup works fine, but I still can't get reverse lookup. Any... (0 Replies)
Discussion started by: clogan1981
0 Replies

2. IP Networking

HOWTO: Linux multihomed dns client - reverse lookup

The following thread is closed: 133552-howto-linux-multihomed-dns-client (Sorry I am not allowed to post URLs) Therefore I write this append in an own thread. The HOWTO in the referenced thread helped me a lot and I only want to append how to make reverse lookup working for a local zone: ... (0 Replies)
Discussion started by: scheruga
0 Replies

3. UNIX for Advanced & Expert Users

[DNS] Reverse Lookup for 2 IP Addresses

Originally I had the server at home and on Comcast so I used dyndns.org for DNS. Once the server got a bit more popular, I leased a server at a colo facility. They set up the server name in their DNS so I didn't really have any reason to manage my own DNS. DynDNS was managing the domains and I... (7 Replies)
Discussion started by: BOFH
7 Replies

4. Shell Programming and Scripting

Reverse lookup

hey guys, can anybody help me out here on the following: grep '^\{1,3\}\.\{1,3\}\.\{1,3\}\.\{1,3\}$' ravi.txt mary.txt lisa.txt https://www.unix.com/images/misc/progress.gif i.e what i did was found ip addreses from different files and then i want... (1 Reply)
Discussion started by: ravis83
1 Replies

5. UNIX for Advanced & Expert Users

Clueless about how to lookup and reverse lookup IP addresses under a file!!.pls help

Write a quick shell snippet to find all of the IPV4 IP addresses in any and all of the files under /var/lib/output/*, ignoring whatever else may be in those files. Perform a reverse lookup on each, and format the output neatly, like "IP=192.168.0.1, ... (0 Replies)
Discussion started by: choco4202002
0 Replies

6. UNIX for Dummies Questions & Answers

telnet refused / reverse DNS issue?

I have users with laptops who may telnet from the local network one minute and then connect remotely a short time later from a different IP address. This causes a problem as the UnixWare 7.1.1 server appears to try to resolve the remote machine name (via our primary DNS server) to the IP... (4 Replies)
Discussion started by: rm -r *
4 Replies

7. IP Networking

Reverse lookup

Help having problems accesing various sites that require me to be a registered .gov domain. My IP is a registered as an .gov but my nameserver record has changed on my DNS configurartion(I don't know why) from something.gov to somethingelse.gov. Same IP, though. When a reverse lookup is... (1 Reply)
Discussion started by: jpalmer320
1 Replies

8. UNIX for Dummies Questions & Answers

Unix 8.2 and reverse Lookup

We have Unix configured as our external DNS, forward DNS is working properly, however Reverse lookup is not working. Any idea what the problem is? I have checked the named.boot and .rev file and everything seems to be correctly. However it appears that the reverse zone file in the named.boot... (2 Replies)
Discussion started by: cassy
2 Replies

9. IP Networking

reverse lookup again

our server (solaris, bind v 8.1.2) is suppose to be the authoritive or the master and our isp's server is suppose be the secondary. i've created a reverse lookup zone file and added an entry for it in my named.conf file. i've restarted the dns daemon and i don't have any errors in... (1 Reply)
Discussion started by: Westy564
1 Replies

10. IP Networking

reverse lookup for email

when we send email or try to telnet to a site that requires reverse lookup to be enabled the connection is refused. i have the O'Reilly book DNS and Bind and in it are examples of what the reverse zone file should look like. i don't see a line that defines an email server in the example. is... (1 Reply)
Discussion started by: Westy564
1 Replies
Login or Register to Ask a Question