1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
  
     | 
    
      <pre>Network Working Group                                        C. Smith
Request for Comments: 2937                     Sun Microsystems, Inc.
Category: Standards Track                              September 2000
                <span class="h1">The Name Service Search Option for DHCP</span>
Status of this Memo
   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.
Copyright Notice
   Copyright (C) The Internet Society (2000).  All Rights Reserved.
Abstract
   This document defines a new Dynamic Host Configuration Protocol
   (DHCP) option which is passed from the DHCP Server to the DHCP Client
   to specify the order in which name services should be consulted when
   resolving hostnames and other information.
Introduction
   The Dynamic Host Configuration Protocol (DHCP)[<a href="#ref-1" title=""Dynamic Host Configuration Protocol"">1</a>] provides a
   framework for passing configuration information to hosts on a TCP/IP
   network.  <a href="./rfc2132">RFC 2132</a> [<a href="#ref-2" title=""DHCP Options and BOOTP Vendor Extensions"">2</a>] allows DHCP servers to specify configuration
   information for various kinds of name services to be passed to DHCP
   clients.  Many clients use multiple name services and have crafted
   their own conventions that allow an individual host to express the
   order among the various name services with which lookups are done.
   However, no search order can be specified via DHCP.  The purpose of
   this document is to allow DHCP servers to specify the search order to
   be used by DHCP clients.  To avoid the need for inventing and
   maintaining a separate name space for this option, we rely on the
   existence of previously-defined DHCP options that specify the IP
   address(es) of servers which provide name services whose order we
   wish to express.
<span class="grey">Smith                       Standards Track                     [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc2937">RFC 2937</a>        The Name Service Search Option for DHCP   September 2000</span>
Definitions
   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY" and "OPTIONAL" in this
   document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="#ref-3" title=""Key words for use in RFCs to indicate requirement levels"">3</a>].  This
   document also uses the following terms:
      "DHCP client"
         DHCP client or "client" is an Internet host using DHCP to
         obtain configuration parameters such as a network address.
      "DHCP server"
         A DHCP server or "server" is an Internet host that returns
         configuration parameters to DHCP clients.
   Name Service Search Option Format
     The code for this option is 117, and its minimum length is 2 bytes.
     A DHCP server SHOULD return, in its preferred order, the 16-bit,
     network byte order (big-endian [<a href="#ref-4" title=""On Holy Wars and a Plea for Peace"">4</a>]) integer option code for the
     name services (the earlier in the list, the more preferred the name
     service).
       Code            Length      Name Service Search Order in Sequence
   0                   1                   2                   3
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |     117       |     Len       |             ns1               |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |             ns2               |             ...               |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     In the above diagram, ns1 and ns2 are 16-bit integers corresponding
     to two DHCP options which specify the IP addresses of two different
     types of name server.  The current list of name services and their
     DHCP option codes, taken from <a href="./rfc2132">RFC 2132</a>, includes
       Name Service                                  Value
       Domain Name Server Option                       6
       Network Information Servers Option             41
       NetBIOS over TCP/IP Name Server Option         44
       Network Information Service+ Servers Option    65
<span class="grey">Smith                       Standards Track                     [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc2937">RFC 2937</a>        The Name Service Search Option for DHCP   September 2000</span>
       A name service option code of 0 is used to indicate that the
       client should refer to local naming information (e.g., an
       /etc/hosts file on a UNIX machine).
     A DHCP server wishing to express that a client should first search
     DNS, then NIS+, would send
      0                   1                   2                   3
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |     117       |      4        |              6                |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |              65               |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   DHCP Client Behavior
     The DHCP client will use this option to create a search list for
     name resolution.  The client may receive name services in this
     option that it does not support or has not been configured to
     access.  Likewise, a client may receive an option that lists name
     services for which no corresponding DHCP option was supplied.
     Clients will interpret this option in a system-specific manner
     whose specification is outside the scope of this document.
Security Considerations
   DHCP currently provides no authentication or security mechanisms.
   Potential exposures to attack are discussed in <a href="#section-7">section 7</a> of the DHCP
   protocol specification [<a href="#ref-1" title=""Dynamic Host Configuration Protocol"">1</a>].
IANA Considerations
   IANA has assigned a value of 117 for the DHCP option code described
   in this document.
<span class="grey">Smith                       Standards Track                     [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc2937">RFC 2937</a>        The Name Service Search Option for DHCP   September 2000</span>
References
   [<a id="ref-1">1</a>] Droms, R., "Dynamic Host Configuration Protocol", <a href="./rfc2131">RFC 2131</a>, March
       1997.
   [<a id="ref-2">2</a>] Alexander, S. and R. Droms, "DHCP Options and BOOTP Vendor
       Extensions", <a href="./rfc2132">RFC 2132</a>, March 1997.
   [<a id="ref-3">3</a>] Bradner, S., "Key words for use in RFCs to indicate requirement
       levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
   [<a id="ref-4">4</a>] Cohen, D., "On Holy Wars and a Plea for Peace", Computer, IEEE,
       October 1981.
Author's Address
   Carl Smith
   Sun Microsystems, Inc.
   901 San Antonio Road
   Palo Alto, CA 94043
   EMail:  cs@Eng.Sun.COM
<span class="grey">Smith                       Standards Track                     [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc2937">RFC 2937</a>        The Name Service Search Option for DHCP   September 2000</span>
Full Copyright Statement
   Copyright (C) The Internet Society (2000).  All Rights Reserved.
   This document and translations of it may be copied and furnished to
   others, and derivative works that comment on or otherwise explain it
   or assist in its implementation may be prepared, copied, published
   and distributed, in whole or in part, without restriction of any
   kind, provided that the above copyright notice and this paragraph are
   included on all such copies and derivative works.  However, this
   document itself may not be modified in any way, such as by removing
   the copyright notice or references to the Internet Society or other
   Internet organizations, except as needed for the purpose of
   developing Internet standards in which case the procedures for
   copyrights defined in the Internet Standards process must be
   followed, or as required to translate it into languages other than
   English.
   The limited permissions granted above are perpetual and will not be
   revoked by the Internet Society or its successors or assigns.
   This document and the information contained herein is provided on an
   "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
   TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
   BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
   HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
   Funding for the RFC Editor function is currently provided by the
   Internet Society.
Smith                       Standards Track                     [Page 5]
</pre>
 
     |