LinuxQuestions.org
Review your favorite Linux distribution.
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 08-21-2011, 02:15 AM   #1
antnish
LQ Newbie
 
Registered: Feb 2011
Location: California
Posts: 19
Blog Entries: 1

Rep: Reputation: 0
my reverse lookup is not working from another network.


I have configured my DNS in Centos5, every thing is working fine, bt whenever i try to nslookup reverse than,the reply will be
***ns1.abc.net.np cant find 202.38.7.217:non-existent domain bt the forward lookup works perfectly. But at he same time reverse lookup works perfectly from our pool of ip address.

In my named.conf file evry thing is fine, here is my conf file..


//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver 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.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
listen-on port 53 {127.0.0.1; 202.38.7.219; };
# forwarders {8.8.8.8; 165.21.83.88; };
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";

// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;

allow-query { any;};
allow-query-cache { any; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};

channel named_file
{
file "/var/log/named.log" versions 99 size 10m;
print-time yes;
print-category yes;
print-severity yes;
};

channel log_requests
{
file "/var/log/queries.log" versions 99 size 30m;
print-time yes;
print-category yes;
print-severity yes;
};

category queries
{
log_requests;
};

category default
{
named_file;
};

};

view localhost_resolver {
match-clients { any; };
match-destinations { any; };
recursion yes;
include "/etc/named.rfc1912.zones";
};

file named.rfc1912.zones


[root@ns1 chroot]# cat /etc/named.rfc1912.zones
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
type hint;
file "named.ca";
};

zone "airwave.net.np" IN {
type master;
file "airwave.net.np.zone";
allow-transfer { yy.yy.yy.yy; yy.yy.yy.yy; };
allow-update { none; };
};

#zone "airwave.com.np" IN {
# type master;
# file "airwave.com.np.zone";
# allow-transfer { yy.yy.yy.yy; yy.yy.yy.yy; };
# allow-update { none; };
#};

zone "7.38.202.in-addr.arpa" IN {
type master;
file "reverse.myreversefile";
allow-transfer { yy.yy.yy.yy; yy.yy.yy.yy; };
allow-update { none; };
};

Please reply...Due to this problem some of my mail bounch...
 
Old 08-21-2011, 02:57 AM   #2
timur91
Member
 
Registered: Aug 2011
Posts: 42

Rep: Reputation: Disabled
Are you sure you have control over the PTR record of your IP?

It's your ISP that should set up the PTR record

java socket

Last edited by timur91; 01-05-2012 at 06:30 AM.
 
Old 08-22-2011, 04:14 AM   #3
antnish
LQ Newbie
 
Registered: Feb 2011
Location: California
Posts: 19
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by timur91 View Post
Are you sure you have control over the PTR record of your IP?

It's your ISP that should set up the PTR record


yes I am sure..I set up the PTR record.
 
Old 08-22-2011, 05:00 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,890

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
Quote:
dig -x 202.38.7.217 @202.38.7.219

; <<>> DiG 9.8.0-P4 <<>> -x 202.38.7.217 @202.38.7.219
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 41935
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;217.7.38.202.in-addr.arpa. IN PTR
<-snip->
As you see from the above dig output, your dns refuses the query for the reverse zone (the same goes for the forward zone)
So, I guess you need to remove or comment out the view localhost_resolver, so your dns starts acting as an authoritative dns

Regards
 
Old 08-22-2011, 06:37 AM   #5
antnish
LQ Newbie
 
Registered: Feb 2011
Location: California
Posts: 19
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Thankx,
Bt the view locahost_resolver is already comment out..
 
Old 08-22-2011, 06:56 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,890

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
It is not:
Quote:
view localhost_resolver {
match-clients { any; };
match-destinations { any; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
 
Old 08-25-2011, 02:15 AM   #7
antnish
LQ Newbie
 
Registered: Feb 2011
Location: California
Posts: 19
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Thankx a lot for your concern. The problem has been solved.The main issue is from the APENIC. The configuration was fine but the reverse lookup was not updated from the APENIC. That is the reason why the lookup was refused through the internet.
Thankx again
 
  


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
Reverse-IP Lookup LInxia Linux - Networking 4 05-08-2011 05:31 AM
reverse ip lookup marsques General 1 09-27-2010 01:27 AM
[SOLVED] bind reverse zone; no name with reverse lookup deadeyes Linux - Server 3 10-12-2009 10:54 AM
reverse lookup problem while using a private classless network ID lectricjunky Linux - Enterprise 4 05-05-2008 01:20 PM
Reverse lookup enabled and bittorrent stopped working Fluxxdog Linux - Networking 0 05-04-2006 03:40 PM

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

All times are GMT -5. The time now is 04:59 AM.

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