Lesson 2: Installing DNS

Microsoft DNS is an RFC-compliant DNS server. As a result, it creates and uses standard DNS zone files and supports all standard resource record types. It is interoperable with other DNS servers and includes the DNS diagnostic utility NSLOOKUP. Microsoft DNS is tightly integrated with Windows Internet Name Service (WINS) and is administered through the graphical administration utility called DNS Manager. In this lesson, you install the DNS service on Windows 2000.


After this lesson, you will be able to

  • Install the Microsoft DNS Server service
  • Troubleshoot DNS with NSLOOKUP

Estimated lesson time: 45 minutes


Before installing the Microsoft Windows 2000 DNS Server service, it is important that the Windows 2000 server's TCP/IP protocol be configured correctly. The DNS Server service obtains the default settings for the host name and domain name through the Microsoft TCP/IP Properties dialog box. The DNS Server service creates default SOA, host, and NS records based on the specified domain name and host name. If the host name and domain name are not specified, only the SOA record is created.

Practice: Installing the DNS Server Service

In this practice, you install the Microsoft DNS Server service. You will configure DNS in a later lesson.

NOTE


Before you continue with the lesson, run the Ch10A.exe demonstration file located in the Media folder on the Supplemental Course Materials CD-ROM that accompanies this book. The file provides an overview of installing the DNS Server service.

NOTE


Complete this procedure from the computer you designate as the DNS server.

Exercise 1: Verifying DNS Client Settings

Before you install DNS, you need to verify that the client computer has the appropriate settings and specify what DNS server to use.

  1. Right-click My Network Places, and then click Properties.

    The Network And Dial-Up Connections dialog box appears.

  2. Right-click the connection (typically the Local Area Network properties) for which you want to configure the DNS server, and then click Properties.

    The Connection Properties dialog box appears.

  3. Click Internet Protocol (TCP/IP), then click Properties.

    The Internet Protocol (TCP/IP) Properties dialog box appears.

  4. On the Internet Protocol (TCP/IP) Properties page, type in the IP address of the existing DNS server in the Preferred DNS Server field.

    You can also add the IP address of an alternate DNS server in the Alternate DNS Server field.

  5. If you need to specify more than one alternate DNS server, click Advanced, click the DNS tab, and then enter the servers in the DNS Server Addresses box.
  6. Click OK to close the TCP/IP Properties dialog box.
  7. Click OK to close the Connection Properties dialog box.

Exercise 2: Installing the DNS Server Service

Once the client is properly configured, you can install DNS Server service.

  1. In Control Panel, double-click Add/Remove Programs, and then click Add/Remove Windows Components.

    The Windows Components wizard appears.

  2. Click Networking Services, and then click Details.

    The Networking Services dialog box appears.

  3. If it is not already selected, select the check box next to Domain Name System (DNS), as illustrated in Figure 10.2, and then click OK.

    Figure 10.2 Domain Name System (DNS) check box in Networking Services

  4. Click Next.

    Windows 2000 installs DNS.

  5. Click Finish.

Troubleshooting DNS with NSLOOKUP

NSLOOKUP is a useful tool for troubleshooting DNS problems such as host name resolution. When you start NSLOOKUP, it shows the host name and IP address of the DNS server that is configured for the local system, and then displays a command prompt for further queries. If you type a question mark (?), NSLOOKUP shows all available commands. You can exit the program by typing exit. To look up a host's IP address using DNS, type the host name and press Enter. NSLOOKUP defaults to using the DNS server configured for the computer on which it is running, but you can focus it on a different DNS server by typing server <name> (where <name> is the host name of the server you want to use for future lookups). Once another server is specified, anything entered after that point is interpreted as a host name.

NSLOOKUP Modes

NSLOOKUP has two modes: Interactive and Noninteractive. If a single piece of data is needed, use Noninteractive or Command-line mode. If more than one piece of data is needed, Interactive mode can be used.

NSLOOKUP Syntax

NSLOOKUP.EXE is a command-line administrative tool for testing and troubleshooting DNS servers. The following syntax is used to run the NSLOOKUP utility:

nslookup [-option ...] [computer-to-find | - [server]]

SyntaxDescription
-option ...Specifies one or more NSLOOKUP commands. For a list of commands, use the help option inside NSLOOKUP.
computer-to-findIf computer-to-find is an IP address and the query type is host or PTR, the name of the computer is returned. If computer-to-find is a name and does not have a trailing period, the default DNS domain name is appended to the name. To look up a computer outside the current DNS domain, append a period to the name. If a hyphen (-) is typed instead of computer-to-find, the command prompt changes to NSLOOKUP Interactive mode.
serverUse this server as the DNS name server. If the server is omitted, the currently configured default DNS server is used.

Follow these steps to use NSLOOKUP in Command-line mode:

  1. At a command prompt, modify the properties so that the command prompt window has a screen buffer size of 50.

    As illustrated in Figure 10.3, use the Layout property page to do this. When prompted, you should apply this change to all future instances of the command-prompt window; this will be needed in later lessons.

    Figure 10.3 Command Prompt Properties dialog box

  2. Type the following command:

     nslookup hostx 

    where hostx is a host in your domain.

  3. NSLOOKUP returns the IP address of the computer hostx because the information is stored in the DNS database.
  4. Exit the command prompt.

Follow these steps to use NSLOOKUP in Interactive mode:

  1. At a command prompt, type nslookup and then press Enter.

    The > prompt appears.

  2. Type set all at the > prompt.

    This command lists all of the current values of the NSLOOKUP options.

  3. Use the following set commands to change the timeout value to 1 second and the number of retries to 7, as illustrated in Figure 10.4.

     Set ti=1 Set ret=7 

    Figure 10.4 Setting the timeout and retry values in NSLOOKUP

  4. Use Set All to verify that the defaults were changed.
  5. Type the names of the other computers, one at a time, at the > prompt. Press Enter after each name.
  6. Exit the command prompt.

Lesson Summary

Microsoft DNS is interoperable with other DNS servers. Before installing the DNS Server service, you should make sure that the Windows 2000 server's TCP/IP protocol is configured correctly.

The NSLOOKUP utility is the primary diagnostic tool for DNS. It allows you to display resource records on DNS servers.



MCSE Training Kit(c) Microsoft Windows 2000 Accelerated 2000
MCSE Training Kit(c) Microsoft Windows 2000 Accelerated 2000
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 244

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net