LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   named classless reverse zone (https://www.linuxquestions.org/questions/linux-software-2/named-classless-reverse-zone-298786/)

jon3k 03-07-2005 01:12 PM

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.

homey 03-08-2005 09:57 PM

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";
};


All times are GMT -5. The time now is 09:58 AM.