Subject: Re: DNS lookup for internal adresses
To: None <netbsd-users@netbsd.org>
From: henry nelson <netb@irm.nara.kindai.ac.jp>
List: netbsd-users
Date: 03/14/2002 10:12:41
Fantastic.  I've been wondering about this for a long time.  Maybe just
a little more help?

I've got 10+ IPs assigned to me spread throughout say 192.168.192.0/24.
Do I have to make 254 files, or can I set up zone files for the 10+ IPs
in my sub-domain, and then lump the others with a "slave" setup after
them?  Something like the following in named.conf:

zone "55.192.168.192.in-addr.arpa" {
        type master;
        file "labo.zone";
};

zone "118.192.168.192.in-addr.arpa" {
        type master;
        file "zemi.zone";
};

[and so on for the rest of the machines in my sub-domain.  And then ...]

zone "192.168.192.in-addr.arpa" {
        type slave;
        file "campus.rev";
        masters {
                192.168.192.22;     <<== the school's name server, not mine
        };
};

Thanks much.

henry nelson

On Wed, Mar 13, 2002 at 06:42:54AM +0100, Michael Kukat wrote:
> Hi !
> 
> On Tue, 12 Mar 2002 kpneal@pobox.com wrote:
> > Is it possible to use bind to do reverse lookups for small nets like
> > 192.168.192.0/27 and similar? Where my ISP does normal reverse for
> > the normal IP block, and I just want my DNS to do reverse for my small
> > chunk of the block?
> 
> Yes! In todays classless networking, this is exactly what you have to do, and
> i also configured such a DNS thing, which was checked by RIPE afterwards and
> found to be okay. The trick is: Just create a zone for every IP address. It
> is evil with a /25 network, /27 is also lots of files, but this is the only
> way to just resolve single addresses.
> 
> So create a zone entry in named.conf for the zone
> 
> 55.192.168.192.in-addr.arpa
> 
> and for this "zone", create a zone table containing
> 
> 55.192.168.192.in-addr.arpa.	IN	PTR	blah.junk.com.