<?xml version="1.0"?>

<!DOCTYPE rfc SYSTEM "rfc2629.dtd">

<rfc number="2317"

     category="bcp"

     seriesNo="20">

<front>

<title>Classless IN-ADDR.ARPA delegation</title>

<author initials="H." surname="Eidnes" fullname="Havard Eidnes">

<organization>SINTEF RUNIT</organization>

<address>

<postal>

<street>N-7034 Trondheim</street>

<country>Norway</country>

</postal>

<phone>+47 73 59 44 68</phone>

<facsimile>+47 73 59 17 00</facsimile>

<email>Havard.Eidnes@runit.sintef.no</email>

</address>

</author>

<author initials="G." surname="de Groot" fullname="G. de Groot">

<organization>Software Design, Inc.</organization>

</author>
<author initials="P." surname="Vixie" fullname="Paul Vixie">
<organization>Internet Software Consortium</organization>
</author>

<date month="March" year="1998"/>

<area>Internet</area>
<keyword>IN-ADDR.ARPA</keyword>
<keyword>Advanced Research Projects Agency</keyword>

<keyword>Defense Advanced Research Projects Agency</keyword>

</front>

<middle>

<section title="Not Present in Original">
</section>
<!-- RFC original section: (2.) -->

<section title="Introduction">

<t>

   This document describes a way to do IN-ADDR.ARPA delegation on non-

   octet boundaries for address spaces covering fewer than 256

   addresses.  The proposed method should thus remove one of the

   objections to subnet on non-octet boundaries but perhaps more

   significantly, make it possible to assign IP address space in smaller

   chunks than 24-bit prefixes, without losing the ability to delegate

   authority for the corresponding IN-ADDR.ARPA mappings.  The proposed

   method is fully compatible with the original DNS lookup mechanisms

   specified in [1], i.e. there is no need to modify the lookup

   algorithm used, and there should be no need to modify any software

   which does DNS lookups.

</t>

<t>

   The document also discusses some operational considerations to

   provide some guidance in implementing this method.

</t>

</section>

<!-- RFC original section: (3.) -->

<section title="Motivation">

<t>

   With the proliferation of classless routing technology, it has become

   feasible to assign address space on non-octet boundaries.  In case of

   a very small organization with only a few hosts, assigning a full

   24-bit prefix (what was traditionally referred to as a "class C

   network number") often leads to inefficient address space

   utilization.
</t><t>
   One of the problems encountered when assigning a longer prefix (less

   address space) is that it seems impossible for such an organization

   to maintain its own reverse ("IN-ADDR.ARPA") zone autonomously.  By

   use of the reverse delegation method described below, the most

   important objection to assignment of longer prefixes to unrelated

   organizations can be removed.

</t>

<t>

   Let us assume we have assigned the address spaces to three different

   parties as follows:

</t>

<figure><artwork>

           192.0.2.0/25   to organization A

           192.0.2.128/26 to organization B

           192.0.2.192/26 to organization C

</artwork></figure>

<t>

   In the classical approach, this would lead to a single zone like

   this:

</t>

<figure><artwork>

   $ORIGIN 2.0.192.in-addr.arpa.

   ;

   1               PTR     host1.A.domain.

   2               PTR     host2.A.domain.

   3               PTR     host3.A.domain.

   ;

   129             PTR     host1.B.domain.

   130             PTR     host2.B.domain.

   131             PTR     host3.B.domain.

   ;

   193             PTR     host1.C.domain.

   194             PTR     host2.C.domain.

   195             PTR     host3.C.domain.

</artwork></figure>

<t>

   The administration of this zone is problematic.  Authority for this

   zone can only be delegated once, and this usually translates into

   "this zone can only be administered by one organization."  The other

   organizations with address space that corresponds to entries in this

   zone would thus have to depend on another organization for their

   address to name translation.  With the proposed method, this

   potential problem can be avoided.

</t>

</section>

<!-- RFC original section: (4.) -->

<section title="Classless IN-ADDR.ARPA delegation">

<t>

   Since a single zone can only be delegated once, we need more points

   to do delegation on to solve the problem above.  These extra points

   of delegation can be introduced by extending the IN-ADDR.ARPA tree

   downwards, e.g. by using the first address or the first address and

   the network mask length (as shown below) in the corresponding address

   space to form the the first component in the name for the zones.  The

   following four zone files show how the problem in the motivation

   section could be solved using this method.

</t>

<figure><artwork>

   $ORIGIN 2.0.192.in-addr.arpa.

   @       IN      SOA     my-ns.my.domain. hostmaster.my.domain. (...)

   ;...

   ;  &lt;&lt;0-127&gt;&gt; /25

   0/25            NS      ns.A.domain.

   0/25            NS      some.other.name.server.

   ;

   1               CNAME   1.0/25.2.0.192.in-addr.arpa.

   2               CNAME   2.0/25.2.0.192.in-addr.arpa.

   3               CNAME   3.0/25.2.0.192.in-addr.arpa.

   ;

   ;  &lt;&lt;128-191&gt;&gt; /26

   128/26          NS      ns.B.domain.

   128/26          NS      some.other.name.server.too.

   ;

   129             CNAME   129.128/26.2.0.192.in-addr.arpa.

   130             CNAME   130.128/26.2.0.192.in-addr.arpa.

   131             CNAME   131.128/26.2.0.192.in-addr.arpa.

   ;

   ;  &lt;&lt;192-255&gt;&gt; /26

   192/26          NS      ns.C.domain.

   192/26          NS      some.other.third.name.server.

   ;

   193             CNAME   193.192/26.2.0.192.in-addr.arpa.

   194             CNAME   194.192/26.2.0.192.in-addr.arpa.

   195             CNAME   195.192/26.2.0.192.in-addr.arpa.


</artwork></figure>
<figure><artwork>

   $ORIGIN 0/25.2.0.192.in-addr.arpa.

   @       IN      SOA     ns.A.domain. hostmaster.A.domain. (...)

   @               NS      ns.A.domain.

   @               NS      some.other.name.server.

   ;

   1               PTR     host1.A.domain.

   2               PTR     host2.A.domain.

   3               PTR     host3.A.domain.

   $ORIGIN 128/26.2.0.192.in-addr.arpa.

   @       IN      SOA     ns.B.domain. hostmaster.B.domain. (...)

   @               NS      ns.B.domain.

   @               NS      some.other.name.server.too.

   ;

   129             PTR     host1.B.domain.

   130             PTR     host2.B.domain.

   131             PTR     host3.B.domain.


</artwork></figure>
<figure><artwork>

   $ORIGIN 192/26.2.0.192.in-addr.arpa.

   @       IN      SOA     ns.C.domain. hostmaster.C.domain. (...)

   @               NS      ns.C.domain.

   @               NS      some.other.third.name.server.

   ;

   193             PTR     host1.C.domain.

   194             PTR     host2.C.domain.

   195             PTR     host3.C.domain.


</artwork></figure>
<t>

   For each size-256 chunk split up using this method, there is a need

   to install close to 256 CNAME records in the parent zone.  Some

   people might view this as ugly; we will not argue that particular

   point.  It is however quite easy to automatically generate the CNAME

   resource records in the parent zone once and for all, if the way the

   address space is partitioned is known.

</t>

<t>

   The advantage of this approach over the other proposed approaches for

   dealing with this problem is that there should be no need to modify

   any already-deployed software.  In particular, the lookup mechanism

   in the DNS does not have to be modified to accommodate this splitting

   of the responsibility for the IPv4 address to name translation on

   "non-dot" boundaries.  Furthermore, this technique has been in use

   for several years in many installations, apparently with no ill

   effects.

</t>

<t>

   As usual, a resource record like

</t>

<figure><artwork>

   $ORIGIN 2.0.192.in-addr.arpa.

   129             CNAME   129.128/26.2.0.192.in-addr.arpa.

</artwork></figure>
<t>

   can be convienently abbreviated to

</t>

<figure><artwork>

   $ORIGIN 2.0.192.in-addr.arpa.

   129             CNAME   129.128/26

</artwork></figure>
<t>
   Some DNS implementations are not kind to special characters in domain

   names, e.g. the "/" used in the above examples.  As <xref target="_XREF_3"/> makes clear,

   these are legal, though some might feel unsightly.  Because these are

   not host names the restriction of <xref target="_XREF_2"/> does not apply.  Modern clients

   and servers have an option to act in the liberal and correct fashion.

</t>

<t>

   The examples here use "/" because it was felt to be more visible and

   pedantic reviewers felt that the 'these are not hostnames' argument

   needed to be repeated.  We advise you not to be so pedantic, and to

   not precisely copy the above examples, e.g.  substitute a more

   conservative character, such as hyphen, for "/".

</t>

</section>

<!-- RFC original section: (5.) -->

<section title="Operational considerations">

<t>

   This technique is intended to be used for delegating address spaces

   covering fewer than 256 addresses.  For delegations covering larger

   blocks of addresses the traditional methods (multiple delegations)

   can be used instead.

</t>

<!-- RFC original section: (5.1) -->

<section title="Recommended secondary name service">

<t>

   Some older versions of name server software will make no effort to

   find and return the pointed-to name in CNAME records if the pointed-

   to name is not already known locally as cached or as authoritative

   data.  This can cause some confusion in resolvers, as only the CNAME

   record will be returned in the response.  To avoid this problem it is

   recommended that the authoritative name servers for the delegating

   zone (the zone containing all the CNAME records) all run as slave

   (secondary) name servers for the "child" zones delegated and pointed

   into via the CNAME records.

</t>

</section>

<!-- RFC original section: (5.2) -->

<section title="Alternative naming conventions">

<t>

   As a result of this method, the location of the zone containing the

   actual PTR records is no longer predefined.  This gives flexibility

   and some examples will be presented here.

</t>

<t>

   An alternative to using the first address, or the first address and

   the network mask length in the corresponding address space, to name

   the new zones is to use some other (non-numeric) name.  Thus it is

   also possible to point to an entirely different part of the DNS tree

   (i.e. outside of the IN-ADDR.ARPA tree).  It would be necessary to

   use one of these alternate methods if two organizations somehow

   shared the same physical subnet (and corresponding IP address space)

   with no "neat" alignment of the addresses, but still wanted to

   administrate their own IN-ADDR.ARPA mappings.
</t>
<t>

   The following short example shows how you can point out of the IN-

   ADDR.ARPA tree:

</t>

<figure><artwork>

   $ORIGIN 2.0.192.in-addr.arpa.

   @       IN      SOA     my-ns.my.domain. hostmaster.my.domain. (...)

   ; ...

   1               CNAME   1.A.domain.

   2               CNAME   2.A.domain.

   ; ...

   129             CNAME   129.B.domain.

   130             CNAME   130.B.domain.

   ;


</artwork></figure>
<figure><artwork>

   $ORIGIN A.domain.

   @       IN      SOA     my-ns.A.domain. hostmaster.A.domain. (...)

   ; ...

   ;

   host1           A       192.0.2.1

   1               PTR     host1

   ;

   host2           A       192.0.2.2

   2               PTR     host2

   ;

   etc.


</artwork></figure>
<t>

   This way you can actually end up with the name-&gt;address and the

   (pointed-to) address-&gt;name mapping data in the same zone file - some

   may view this as an added bonus as no separate set of secondaries for

   the reverse zone is required.  Do however note that the traversal via

   the IN-ADDR.ARPA tree will still be done, so the CNAME records

   inserted there need to point in the right direction for this to work.

</t>

<t>

   Sketched below is an alternative approach using the same solution:

</t>

<figure><artwork>

   $ORIGIN 2.0.192.in-addr.arpa.

   @                  SOA     my-ns.my.domain. hostmaster.my.domain. (...)

   ; ...

   1                  CNAME   1.2.0.192.in-addr.A.domain.

   2                  CNAME   2.2.0.192.in-addr.A.domain.


</artwork></figure>
<figure><artwork>

   $ORIGIN A.domain.

   @                  SOA     my-ns.A.domain. hostmaster.A.domain. (...)

   ; ...

   ;

   host1              A       192.0.2.1

   1.2.0.192.in-addr  PTR     host1

   host2              A       192.0.2.2

   2.2.0.192.in-addr  PTR     host2


</artwork></figure>
<t>

   It is clear that many possibilities exist which can be adapted to the

   specific requirements of the situation at hand.

</t>

</section>

<!-- RFC original section: (5.3) -->

<section title="Other operational issues">

<t>

   Note that one cannot provide CNAME referrals twice for the same

   address space, i.e. you cannot allocate a /25 prefix to one

   organisation, and run IN-ADDR.ARPA this way, and then have the

   organisation subnet the /25 into longer prefixes, and attempt to

   employ the same technique to give each subnet control of its own

   number space. This would result in a CNAME record pointing to a CNAME

   record, which may be less robust overall.

</t>

<t>

   Unfortunately, some old beta releases of the popular DNS name server

   implementation BIND 4.9.3 had a bug which caused problems if a CNAME

   record was encountered when a reverse lookup was made.  The beta

   releases involved have since been obsoleted, and this issue is

   resolved in the released code.  Some software manufacturers have

   included the defective beta code in their product. In the few cases

   we know of, patches from the manufacturers are available or planned

   to replace the obsolete beta code involved.

</t>

</section>

</section>

<!-- RFC original section: (6.) -->

<section title="Security Considerations">

<t>

   With this scheme, the "leaf sites" will need to rely on one more site

   running their DNS name service correctly than they would be if they

   had a /24 allocation of their own, and this may add an extra

   component which will need to work for reliable name resolution.

</t>

<t>

   Other than that, the authors are not aware of any additional security

   issues introduced by this mechanism.

</t>

</section>

<!-- RFC original section: (7.) -->

<section title="Conclusion">

<t>

   The suggested scheme gives more flexibility in delegating authority

   in the IN-ADDR.ARPA domain, thus making it possible to assign address

   space more efficiently without losing the ability to delegate the DNS

   authority over the corresponding address to name mappings.

</t>

</section>

<!-- RFC original section: (8.) -->

<section title="Acknowledgments">

<t>

   Glen A. Herrmannsfeldt described this trick on comp.protocols.tcp-

   ip.domains some time ago.  Alan Barrett and Sam Wilson provided

   valuable comments on the newsgroup.

   We would like to thank Rob Austein, Randy Bush, Matt Crawford, Robert

   Elz, Glen A. Herrmannsfeldt, Daniel Karrenberg, David Kessens, Tony

   Li, Paul Mockapetris, Eric Wassenaar, Michael Patton, Hans Maurer,

   and Peter Koch for their review and constructive comments.

</t>

</section>

</middle>

<back>

<!-- BEGIN INCLUDE REFERENCES ** DO NOT REMOVE -->
<references>
<reference anchor="_XREF_1">
<front>
<title>Domain Names - Concepts and Facilities</title>
<author initials="P." surname="Mockapetris" fullname="P. Mockapetris">
<organization/>
</author>
<date month="November" year="1987"/>
</front>
<seriesInfo>STD 13</seriesInfo>
<seriesInfo>RFC 1034</seriesInfo>
</reference>
<reference anchor="_XREF_2">
<front>
<title>DoD Internet Host Table Specification</title>
<author initials="K." surname="Harrenstien" fullname="K. Harrenstien">
<organization/>
</author>
<author initials="M." surname="Stahl" fullname="M. Stahl">
<organization/>
</author>
<author initials="E." surname="Feinler" fullname="E. Feinler">
<organization/>
</author>
<date month="October" year="1985"/>
</front>
<seriesInfo>RFC 952</seriesInfo>
</reference>
<reference anchor="_XREF_3">
<front>
<title>Clarifications to the DNS Specification</title>
<author initials="R." surname="Elz" fullname="R. Elz">
<organization/>
</author>
<author initials="R." surname="Bush" fullname="R. Bush">
<organization/>
</author>
<date month="July" year="1997"/>
</front>
<seriesInfo>RFC 2181</seriesInfo>
</reference>
</references>
<!-- END INCLUDE REFERENCES ** DO NOT REMOVE -->

</back>

</rfc>
