LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2012, 09:57 AM   #1
m0ke
LQ Newbie
 
Registered: Jan 2012
Distribution: SuSE Linux Enterprise Server 11
Posts: 2

Rep: Reputation: Disabled
Question BIND 9: issues with reverse lookup


Hello.

i have set up DNS zone for forward and backward resolutions.

here the content of the respective files:

forware zone:
Code:
$TTL 2d
@               IN SOA          thewho.bsc-solutions.corp.      root.thewho.bsc-solutions.corp. (
                                2012010601      ; serial
                                3h              ; refresh
                                1h              ; retry
                                1w              ; expiry
                                1d )            ; minimum

sap.bsc-solutions.corp. IN NS           thewho.bsc-solutions.corp.
hagen.sap.bsc-solutions.corp.   IN A            192.168.0.17

reverse zone:
Code:
$TTL 2d
$ORIGIN .
0.168.192.in-addr.arpa. IN SOA  thewho.bsc-solutions.corp       (
                                2012010600      ; serial
                                3h              ; refresh
                                1h              ; retry
                                1w              ; expiry
                                3h )            ; minimum

0.168.192.in-addr.arpa. IN NS           thewho.bsc-solutions.corp.
17              IN PTR          hagen.sap.bsc-solutions.corp.

forward name resolution is working fine, but reverse lookups fail.

here the output of "nslookup 192.168.0.17":
Code:
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server
Server:         ::1
Address:        ::1#53

** server can't find 17.0.168.192.in-addr.arpa: SERVFAIL

the reverse zone file seems to be buggy, but i cannot find the error.

here the output of "named-checkzone" for the respective reverse zone domain/file:
Code:
dns_rdata_fromtext: /var/lib/named/192.168.0.zone:4: near '3h': not a valid number
/var/lib/named/192.168.0.zone:11: ignoring out-of-zone data (17)
zone 0.168.192.in-addr.arpa/IN: loading from master file /var/lib/named/192.168.0.zone failed: not a valid number
where is the mistake? "3h" seems to be a valid number from my point of view, this value is also used in other config files i found in www.

i am running BIND 9.5.0-P2

thanks for any input on this issue!
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-07-2012, 10:45 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You miss the admin's email address in the SOA record.
Also the $ORIGIN is wrong. You can omit it, or use the actual zone name instead of the ".":
Code:
$TTL 2d
$ORIGIN 0.168.192.in-addr.arpa.
0.168.192.in-addr.arpa. IN SOA  thewho.bsc-solutions.corp    root.thewho.bsc-solutions.corp.    (
                                2012010600      ; serial
                                3h              ; refresh
                                1h              ; retry
                                1w              ; expiry
                                3h )            ; minimum

0.168.192.in-addr.arpa. IN NS           thewho.bsc-solutions.corp.
17              IN PTR          hagen.sap.bsc-solutions.corp.
Regards

Last edited by bathory; 01-07-2012 at 04:15 PM. Reason: typos
 
2 members found this post helpful.
Old 01-07-2012, 10:51 AM   #3
m0ke
LQ Newbie
 
Registered: Jan 2012
Distribution: SuSE Linux Enterprise Server 11
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks bathory,

you have solved my problem!

thank you very very much!
--M0KE
 
Old 01-08-2012, 04:07 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by m0ke View Post
Thanks bathory,

you have solved my problem!

thank you very very much!
--M0KE
Please mark the tread as SOLVED. Find this action under the "Thread Tools" menu showing right above the first post. This way, people with a similar or like issue can see from a glance that this is the thread to read to find the solution (as opposed to a thread where a bunch of speculation and "me too" posts are found).
 
1 members found this post helpful.
Old 09-10-2012, 07:45 AM   #5
IvanMP
LQ Newbie
 
Registered: Sep 2012
Posts: 8

Rep: Reputation: Disabled
Hi all,

I have the similarly problem and i have the next zones ....

Quote:
$ttl 38400
tm.example.com.cm. IN SOA tm.example.com.cm. ivan.tm.example.com.cm. (
1347276249
10800
3600
604800
38400 )
tm.example.com.cm. IN NS tm.example.com.cm.
tm.example.com.cm. IN MX 10 tm.example.com.cm
tm.example.com.cm. IN A 192.168.100.131
and the revers

Quote:
$ttl 38400
131.100.168.192.in-addr.arpa. IN SOA tm.example.com.cm. ivan.tm.example.com.cm. (
1347276298
10800
3600
604800
38400 )
131.100.168.192.in-addr.arpa. IN NS tm.example.com.cm.
131.100.168.192.in-addr.arpa. IN PTR tm.example.com.cm.
So now when i try nslookup for tm.example.com.cm its ok ... but when i try the revers nslookup fro example nslookup 192.168.100.131 i get this error

;; Got SERVFAIL reply from 192.168.100.131, trying next server

He goes to the next dns server and who know about Ubuntu server (this server tm.example.com.cm) so he back the name the hostname of it ... i dont know why he cant back the answer of its own ...


Here its the output of named-chekzone

Quote:
root@tm:/etc/bind# named-checkzone db.192 db.192
db.192:2: ignoring out-of-zone data (131.100.168.192.in-addr.arpa)
db.192:8: ignoring out-of-zone data (131.100.168.192.in-addr.arpa)
db.192:9: ignoring out-of-zone data (131.100.168.192.in-addr.arpa)
zone db.192/IN: has 0 SOA records
zone db.192/IN: has no NS records
zone db.192/IN: not loaded due to errors.
but i cant understand what im doing wrong

sorry for bad language i hope you understand if not pls ask me ...

Tnx in advance ....
 
Old 09-10-2012, 09:08 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
@IvanMP

Please don't hijack others' threads. You should start your own giving more details about your distro, config files (like named.conf) etc.
Quote:
Here its the output of named-chekzone

Quote:
root@tm:/etc/bind# named-checkzone db.192 db.192
Note that the above is not correct. You have to run the following to test your zone file:
Code:
named-checkzone 131.100.168.192.in-addr.arpa db.192
Regards
 
1 members found this post helpful.
Old 09-10-2012, 10:16 AM   #7
IvanMP
LQ Newbie
 
Registered: Sep 2012
Posts: 8

Rep: Reputation: Disabled
Sorry for hijack bathory i open new thread
and for the named-checkzone i did that and same error ...
 
  


Reply



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 reverse lookup mattyg007 Linux - Networking 1 12-08-2011 12:11 PM
[SOLVED] bind reverse zone; no name with reverse lookup deadeyes Linux - Server 3 10-12-2009 09:54 AM
bind reverse lookup thesnaggle Linux - Software 1 03-11-2004 06:19 PM
Bind reverse lookup Kostko Linux - Networking 2 12-07-2002 09:06 AM
Cant get a reverse lookup in BIND to work phek Linux - Networking 2 10-23-2001 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:50 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
Open Source Consulting | Domain Registration