LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-05-2008, 10:52 AM   #1
n03x3c
Member
 
Registered: Aug 2008
Location: India
Distribution: Fedora, RedHat
Posts: 101

Rep: Reputation: 17
Unhappy BIND forward zone OK, reverse zone NOT OK!


Hello Friends, I've got some problem with my BIND that I can not find. Damn IDK what the hell that prob is. Here's my sys nfo and BIND conf.

OS: RHEL 5
Arch: I386
Bind version: 9.3.3
My machine IP: 192.168.1.11
eth0:1 IP: 192.168.1.15

named.conf
Code:
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";
	query-source    port 53;	
	query-source-v6 port 53;
	allow-query     { localhost; 192.168.1.0/24; };
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
view localhost_resolver {
	match-clients 	   { localhost; };
	match-destinations { localhost; };
	recursion yes;
	include "/etc/named.rfc1912.zones";
};

view public {
	match-clients { localhost; 192.168.1.0/24; };
	match-destinations { localhost; 192.168.1.0/24; };
	recursion yes;
	include "/etc/named.rfc1912.zones";
};
named.rfc1912.zones
Code:
...
... 
...

zone "example.org" IN {
	type master;
	file "fwd.example.org";
	allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
	type master;
	file "rev.example.org";
	allow-update { none; };
};
fwd.example.org

Code:
$TTL	86400
@		IN SOA	rhel5.example.org.       root.rhel5.example.org. (
					42		; serial (d. adams)
					3H		; refresh
					15M		; retry
					1W		; expiry
					1D )		; minimum

	        IN NS		rhel5
		IN MX 10	mail
rhel5		IN A		192.168.1.11
mail		IN A		192.168.1.15
rev.example.org
Code:
$TTL	86400
@       IN      SOA     rhel5.example.org. 	root.rhel5.example.org.  (
                                      43         ; Serial
                                      3H         ; Refresh
                                      15M        ; Retry
                                      1W         ; Expire
                                      1D )       ; Minimum
;
		IN NS		rhel5
11		IN PTR		rhel5.example.org.
15		IN PTR		mail.example.org.
The worse thing is, forward zone works but not reverse zone! I don't know why... localhost reverse zone working perfect though even if I add new PTR record...

Can someone tell me what is wrong with me/BIND ?
 
Old 11-05-2008, 10:11 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally Posted by n03x3c View Post
rev.example.org
Code:
$TTL	86400
@       IN      SOA     rhel5.example.org. 	root.rhel5.example.org.  (
                                      43         ; Serial
                                      3H         ; Refresh
                                      15M        ; Retry
                                      1W         ; Expire
                                      1D )       ; Minimum
;
		IN NS		rhel5
11		IN PTR		rhel5.example.org.
15		IN PTR		mail.example.org.
Your NS record needs to be fully qualified. Right now it's resolving to rhel5.1.168.192.in-addr.arpa.
 
Old 11-05-2008, 10:31 PM   #3
n03x3c
Member
 
Registered: Aug 2008
Location: India
Distribution: Fedora, RedHat
Posts: 101

Original Poster
Rep: Reputation: 17
Thx buddy problem solved!
 
  


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
why is bind updating reverse zone with updating zone 202.1.168.192.1.168.192.in-addr marcobjorge Linux - Networking 5 10-12-2008 04:53 AM
XDMCP from global zone to Brandz zone coolster Solaris / OpenSolaris 2 03-03-2008 07:15 AM
DNS Zone x-fer - From one zone to another / Debian 3.1 + BIND9 kenwoodgt Linux - Software 0 11-01-2006 10:28 AM
BIND DNS -- Zone inescapeableus Linux - Networking 17 10-08-2006 03:46 PM
linux firewall with internet zone, dmz and trusted zone ikhwan98 Linux - Security 1 11-27-2001 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:05 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