LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2005, 01:12 PM   #1
jon3k
Member
 
Registered: Jun 2003
Posts: 52

Rep: Reputation: 15
named classless reverse zone


Having some problems w/ a classless reverse zone (/23).

Redhat FC2, bind 9.3.0

From my named.conf:
Code:
zone "0/23.z.y.x.in-addr.arpa" {
        type master;
        file "db.x.y.z";
        allow-update { none; };
        allow-query { any; };
};
And the db.x.y.z file:
Code:
$TTL 86400
$ORIGIN 0/23.z.y.x.in-addr.arpa.
@       IN SOA ns2.domain.com. postmaster.domain.com. (
                        2005030702 ; serial
                        3600       ; refresh (1 hour)
                        1800       ; retry (30 minutes)
                        604800     ; expire (1 week)
                        86400 )   ; minimum (1 day)

                        IN NS   ns1.domain.com.
                        IN NS   ns2.domain.com.

4                       IN PTR  ns1.domain.com.
11                      IN PTR  mail.domain.com.
According to syslog it loads the zone w/o any errors, but I get a SERVFAIL when trying to dig -x x.y.z.4 @localhost

I can, of course, resolve other forward and reverse zones on the same nameserver (zones which it is authoritative for or not, doesn't matter). Its just this one reverse zone. The other reverse zones are classful (/24 networks).

EDIT: Just for SnG's, I changed it to a /24 by changing named.conf from:
zone "0/23.z.y.x.in-addr.arpa" {
to:
zone "z.y.x.in-addr.arpa" {

And just changing the origin in the zone file. It resolves perfectly fine now. So apparently something with the way I'm defining it as a classless /23 is causing the problem.

Last edited by jon3k; 03-07-2005 at 01:28 PM.
 
Old 03-08-2005, 09:57 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Normally, you would use something like /24 but I don't think you even need or want that on the zones. Here's what mine looks like...

zone "1.0.168.192.in-addr.arpa" {
type master;
file "/var/named/192.168.0.1.rev";
};
 
  


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 tool for automatically generating reverse zone files p0rt Linux - General 0 01-07-2005 04:33 AM
double entries at reverse zone by BIND 9 ccc Linux - Networking 0 01-08-2004 12:49 PM
DDNS and 2 reverse zones - not at top of zone mule Linux - Networking 2 08-22-2003 01:06 AM
reverse zone mapping ssrikant Linux - Networking 2 04-28-2003 01:32 PM
The reverse zone?? eXor Linux - Networking 1 10-15-2002 08:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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