Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

314 lines
11 KiB

  1. The Microsoft DNS Server is currently beta software.
  2. -------
  3. Release
  4. -------
  5. The MS NT DNS server will ship as part of NT Server 4.0.
  6. (The latest public version is the NT4.0 beta 2 release.)
  7. There will no official NT3.51 release of the MS DNS server and no
  8. support for the MS DNS on NT 3.51.
  9. The dnsbeta and dnsbug aliases are no longer monitored. As this is now
  10. an official release, all support issues should be addressed through the
  11. standard NT4.0 beta channels:
  12. For support and bug reports regarding NT 4.0 DNS beta, use the WINNT40
  13. beta forum on Compuserve, and post in the Networking/Protocols section.
  14. For Microsoft Developer Network (MSDN) customers that receive NT 4.0
  15. Server, use the MSDNLIB forum, section Winnt40.
  16. ------------
  17. Installation
  18. ------------
  19. For WindowsNT 4.0 (SUR) Beta, the DNS server is part of the normal setup
  20. process and may be installed, during network services installation. If
  21. not installed during setup, DNS may be installed using the network control
  22. panel applet. After services control panel applet may be used to set
  23. the startup mode of the DNS service. I recommend using manual startup.
  24. If you have previously installed the MS DNS service, and are simply
  25. updating to a later release:
  26. 1. Stop the DNS service. Type "net stop DNS" on the command line, or
  27. use the services manager in the control panel.
  28. 2. Copy all DNS binaries to the system32 directory.
  29. 3. Run dnssetup.exe. This configures your registry to properly
  30. start the DNS service.
  31. 4. Copy any database files to system32\dns directory. If using DNS
  32. manager to configure your site, copy cache.dns to system32\dns.
  33. A valid cache file is the minimum requirement to boot the server
  34. and be able to configure it with the DnsAdmin.
  35. 5. "net start dns" will restart your DNS service.
  36. -------------
  37. Configuration
  38. -------------
  39. You must have a set of database files in place in order for the
  40. DNS service to start.
  41. All database files MUST be in %SystemRoot%\system32\dns.
  42. Required:
  43. - A cache file (named cache.dns)
  44. OR
  45. - A boot file and the database files specified by in the boot file.
  46. You are encouraged to use the DnsAdmin tool to configure the DNS database
  47. files for your site. If you have existing database files, the DnsAdmin
  48. can have the DNS server read those files in.
  49. OR if you have an existing BIND installation at your site, you can
  50. simply use your existing BOOT file and database files, place them in the
  51. system32\dns directory and be ready to run.
  52. NOTE: sample files are included if you wish to edit files manually, but
  53. you are encouraged to use the DNS admin tool.
  54. ---------------
  55. WINS Resolution
  56. ---------------
  57. The MS DNS server now contains fast, asynchronous resolution through WINS
  58. lookup.
  59. In some settings, particularly installations with DHCP enabled WindowsNT,
  60. Windows95 or WFW3.11 clients, it will be advantageous to enable the DNS
  61. service to lookup unresolved names through WINS.
  62. First you must decide which DNS zones have WINS clients. Then on the
  63. DNS server for that zone, enable WINS resolution, pointing the DNS
  64. server at the appropriate WINS server(s) that serves the hosts in that
  65. zone.
  66. For example, you might have DHCP configured WINS clients in the domain
  67. "place.dom." Then with WINS lookup if a query for "testhost.place.dom."
  68. that was NOT found in the place.dom database file, WINS servers would be
  69. queried for "TESTHOST" resolving the host's address.
  70. - Setup:
  71. For each forward lookup domain in which you wish to attempt WINS
  72. resolution of hostnames, add the "WINS" resource record. See the
  73. example in place.dom sample file.
  74. For each reverse lookup domain in which you wish to attempt reverse WINS
  75. resolution, use the "WINS-R" RR.
  76. WINS resolution is setup for a zone through the zone properties dialog
  77. in the DNS manager. (Right click on the zone you wish to configure for
  78. WINS or WINS Reverse resolution.)
  79. - How WINS lookup works:
  80. When the DNS server gets an address query for a name in an
  81. authoritative zone configured for WINS lookup, and there is NO A record
  82. for the queried name, then the DNS server queries the WINS server. The
  83. query is done for the workstation name so for a machine to be found by
  84. DNS through WINS, it MUST have the workstation service running (it is on
  85. by default) and be using one of the WINS servers used by the DNS server.
  86. When the WINS server responds the name and address(es) is cached for 10
  87. minutes. The short caching time allows the DNS to respond rapidly when
  88. machines change there IP address through DHCP.
  89. Note that these cached A records from WINS lookup are NOT transfered
  90. during a zone transfer. They are not permanent and are not complete.
  91. The correct "transfer" is to have the secondary DNS servers also running
  92. WINS lookup. The WINS record itself may be configured to be included in
  93. the zone transfer.
  94. - How WINS-R (reverse WINS) lookup works:
  95. When the DNS server gets a PTR query for a name in an authoritative
  96. reverse lookup zone configured for NBSTAT lookup, and there is NO PTR
  97. record for the queried name, then the DNS server does a netBIOS node
  98. status query on the IP address through NBT. When netBIOS returns, DNS
  99. checks through the registered names and picks the "best" one. Priority
  100. is given to the workstation name, then the server name, then any unique
  101. name. The resulting name is appended with the NBSTAT result domain name
  102. and a PTR record with the IP to name mapping is cached for 10 minutes.
  103. Note that as in the case of WINS, the cached PTR records themselves are
  104. not sent in a zone transfer. The NBSTAT record itself will be sent in
  105. the zone transfer unless the "LOCAL" flag is set.
  106. - Zone transfer of WINS / WINS-R
  107. There is an additional flag for the WINS and WINS-R directives in the
  108. zone transfer file to allow better interoperability with UNIX during a
  109. corporate rollout and handle remote sites more efficiently.
  110. In the DNS Manager under zone properties WINS / WINS-R dialog check the
  111. box "Settings only affect local server", to avoid sending these records
  112. in a zone transfer.
  113. To set this flag can be set in the database files, specify the LOCAL
  114. flag immediately after the WINS or WINS-R record type. For example:
  115. @ WINS LOCAL 1.1.1.1 1.1.1.2
  116. On the primary DNS server, this directive keeps the record from being
  117. sent in a zone transfer. On the secondary DNS server, it keeps the
  118. record around even after a zone transfer is sent. This allows you to be
  119. a secondary to a UNIX DNS, or to specify different WINS servers for a
  120. secondary which may be at a remote site away from the primary.
  121. --------------------
  122. Problems + Reminders
  123. --------------------
  124. -> Consult the eventlog.
  125. The DNS server logs numerous errors, warnings and useful information to the
  126. event log. If a problem is encountered be sure to check the eventlog.
  127. -> Error 13: The data is invalid.
  128. The DNS service will return this error when it is unable to load the
  129. database.
  130. 1) The location for the DNS database files is now hardcoded to the
  131. %SystemRoot%\system32\dns directory. DNS configuration and zone files
  132. will not be read from the %system32%\drivers\etc directory or from a
  133. directory indicated by the $DIRECTORY directive.
  134. 2) Consult the event log. Most error conditions are reported in the
  135. eventlog. Those involving problems loading the files usually include
  136. file and line number.
  137. -> Doubled domain names.
  138. A common DNS error is double domain names caused by failing to place
  139. trailing periods (".") at the end of fully qualified DNS names.
  140. If the error goes away when you ping the IP address (e.g., pinging
  141. foobar's IP address gives the correct name), then the problem must
  142. involve either a CNAME or A record (or both) for foobar with a
  143. fully-qualified (totally spelled out) domain name on the right hand
  144. side, that does not end in 'dot'.
  145. Otherwise, the problem is two-fold:
  146. 1) The reverse-lookup file for the in-addr.arpa domain has the wrong
  147. domain name in the SOA record, in this case, "dc-tbc.microsoft.com."
  148. instead of "xxx.in-addr.arpa."
  149. 2) The PTR record for that IP number has an FQDN on the
  150. right-hand-side (as it generally must) and does not end in 'dot'.
  151. Generally, If you type the trailing dot on the command line and the
  152. lookup fails, but it succeeds with a short name, your database files
  153. have missing dots at the end of FQDNs.
  154. - Nslookup Incompatibilities
  155. Some versions of nslookup require server support of the IQUERY opcode,
  156. which is a deprecated method of looking up an IP number.
  157. An example session with such an nslookup follows:
  158. machine# nslookup
  159. *** Can't find server name for address 1.2.3.4: Not implemented
  160. *** Can't find initialize address for server : Timed out
  161. Default Server: localhost
  162. Bus error (core dumped)
  163. machine#
  164. The solution to this problem is to upgrade to a newer version of
  165. nslookup, which is publicly available on the internet.
  166. A work-around to this problem is to point nslookup to a BIND name server
  167. at startup and then issue the "lserver" command to change servers. Most
  168. nslookup versions support the syntax: "nslookup - initial_server". Be
  169. sure to specify the initial server as an IP number.
  170. -----
  171. Notes
  172. -----
  173. - Auto-created reverse lookup zones:
  174. The DNS server will automatically create the 0.in-addr.arpa,
  175. 127.in-addr.arpa and 255.in-addr.arpa zones if your database setup does
  176. not include them.
  177. These zones answer bogus queries for 0.0.0.0, 127.0.0.1 and
  178. 255.255.255.255 IP addresses, keeping these queries from being recursed
  179. to the root name servers. You are encouraged to simple allow the DNS to
  180. create these zones and not bother creating themselves.
  181. - Statistics
  182. The DNS server provides some statistics on server behavior.
  183. The DNS manager exposes a very limited subset of these. For viewing and
  184. clearing the full set of statistics use the DnsCmd.exe tool.
  185. - Address sorting
  186. No attempt is made to sort addresses of multi-homed hosts (hosts with
  187. multiple addresses). The DNS server round robins the address list of
  188. all multi-homed hosts. This is the simplest solution for handling load
  189. balancing to a multi-homed server. If this solution is insufficient for
  190. or causes problems at your site, please send a bug report explaining the
  191. issue. Optionally providing alternatives to round robinning is under
  192. consideration.
  193. - SNMP + Perfmon
  194. The DNS does not currently export its counters through SNMP or Perfmon.
  195. This support will be added after the NT4.0 release.
  196. - Unsupported directives:
  197. * directory directive (all database files must be in system32\dns)
  198. * sortlist directive
  199. * $INCLUDE directive
  200. - Supported resource records:
  201. A, PTR, NS, SOA, CNAME, MX, MB, MR, MG, HINFO, TXT, MINFO, RT, RP, X25,
  202. ISDN, WKS, AFSDB, AAAA are fully supported.
  203. Note the AAAA is only supported as record data. It is NOT SUPPORTED as
  204. a DNS host address, i.e. it is NOT returned as additional record data
  205. during a query for NS or other record types.
  206. The MD and MF resource types are not supported in database files. These
  207. record types are obsolete, and references to them should be change to
  208. the MX type. Occurences of these types in database files are logged to
  209. the EventLog.
  210. - Learning about DNS:
  211. I recommend reading "DNS and BIND" by Paul Albitz and Cricket Liu
  212. (publisher: O'Reilly and Associates). This book is a great introduction
  213. to the Domain Name System, and to configuring BIND database files.
  214. ------
  215. Thanks
  216. ------
  217. Thank you for participating in the DNS Server beta program, your bug
  218. reports and suggestions have been most helpful.
  219. jim