non-24 bit subnets

Alex McKenzie alex at chem.umass.edu
Wed Oct 6 18:43:36 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

  I'm setting up a new DNS server for internal use in the two
departments I support.  Up until very recently, all our subnets have had
24 bit masks, which has made configuring bind very easy.  However, we
now have three sizes, and may have more later:  for right now, though,
it's 22, 24, and 25 bit.  There are reasons for splitting things up that
way, some good, some bad, and all irrelevant to the discussion at hand.

  The question is, how do I do it?  Is there a simple way?  With 24-bit,
I would define the files using:

zone "200.12.10.in-addr.arpa" {
        type master;
        file "/var/cache/bind/200.12.10.in-addr.arpa.zone";
};

zone "test.chem.cns" {
        type master;
        file "/var/cache/bind/test.chem.cns.zone";
};


Then in 200.12.10.in-addr.arpa.zone hosts are defined with:

11		PTR	test1.test.chem.cns.

and in test.chem.cns they're defined with:

test1		IN	A	10.12.200.11


That works, and works reliably.

  But how do I deal with larger or smaller subnets?  Clearly I can't use
exactly the same notation, but I assume there has to be a way.  If
anyone can even point me at some documentation, I'd appreciate it --
I've been looking for a few days, and everything I've found assumes a
/24 subnet.


Thanks,
  Alex McKenzie
  alex at chem.umass.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkysw1gACgkQWFYfIucpZ2OcagCcDqlti0H2j6QSY8nrBqt2NmSC
aH4AmgJUu/Ux8jOcY5wsV2xJWQgI3WoD
=o909
-----END PGP SIGNATURE-----



More information about the bind-users mailing list