Developer

Get IT Done: Installing and configuring a DNS server in Windows 2000

How to configure a DNS server in Windows 2000


As many of you are probably aware, DNS is now the name resolution system of choice in Windows 2000. However, most Windows NT administrators are used to relying on WINS for name resolution on local area networks and some have little or no experience with DNS. If you fall into this category, read on. We’ll explain how to install, configure, and troubleshoot a Windows 2000 DNS server.

Installing DNS
You can install a DNS server from the Control Panel or when promoting a member server to a domain controller (DC). During the promotion, if a DNS server is not found, you will have the option of installing it.

To install a DNS server from the Control Panel, follow these steps:
  1. From the Start menu, select Settings | Control Panel | Add/Remove Programs.
  2. Click the Add/Remove Windows Components button to open the Windows Components Wizard window (Figure A).
  3. Select Networking Services and click the Details button.
  4. Click the Domain Name System (DNS) check box (Figure B).
  5. Click OK and then click Next. The DNS component you selected will be installed.

Figure A
The Add/Remove Windows Components Wizard


Figure B
The Networking Services option with DNS selected


Configuring DNS
After installing DNS, you can find the DNS console from Start | Programs | Administrative Tools | DNS. Windows 2000 provides a wizard to help configure your DNS.

When configuring your DNS server, you must be familiar with the following concepts:
  • Forward lookup zone
  • Reverse lookup zone
  • Zone types

A forward lookup zone is simply a way to resolve host names to IP addresses. A reverse lookup zone allows a DNS server to discover the DNS name of the host. Basically, it is the exact opposite of a forward lookup zone. A reverse lookup zone is not required, but it is easy to configure and will allow for your Windows 2000 Server to have full DNS functionality.

When selecting a DNS zone type, you have the following options: Active Directory (AD) Integrated, Standard Primary, and Standard Secondary. AD Integrated stores the database information in AD and allows for secure updates to the database file. This option will appear only if AD is configured. If it is configured and you select this option, AD will store and replicate your zone files.

A Standard Primary zone stores the database in a text file. This text file can be shared with other DNS servers that store their information in a text file. Finally, a Standard Secondary zone simply creates a copy of the existing database from another DNS server. This is primarily used for load balancing.

To open the DNS server configuration tool:
  1. Select DNS from the Administrative Tools folder to open the DNS console.
  2. Highlight your computer name and choose Action | Configure The Server to launch the Configure DNS Server Wizard.
  3. Click Next and choose the appropriate Root Server (Figure C).
  4. Click Next and then click Yes to create a forward lookup zone.
  5. Select the appropriate radio button to install the desired Zone Type (Figure D).
  6. Click Next and type the name of the zone you are creating.
  7. Click Next and then click Yes to create a reverse lookup zone.
  8. Repeat Step 5.
  9. Click Next and enter the information to identify the reverse lookup zone (Figure E).
  10. Click Next and review your selections.
  11. Click Finish.

Figure C
Choose a DNS root server.


Figure D
Select a zone type.


Figure E
Create a reverse lookup zone


Managing DNS records
You have now installed and configured your first DNS server, and you’re ready to add records to the zone(s) you created. There are various types of DNS records available. Many of them you will never use. We’ll be looking at these commonly used DNS records:
  • Start of Authority (SOA)
  • Name Servers
  • Host (A)
  • Pointer (PTR)
  • Canonical Name (CNAME) or Alias
  • Mail Exchange (MX)

Start of Authority (SOA) record
The Start of Authority (SOA) resource record is always first in any standard zone. The Start Of Authority (SOA) tab allows you to make any adjustments necessary. You can change the primary server that holds the SOA record, and you can change the person responsible for managing the SOA. Finally, one of the most important features of Windows 2000 is that you can change your DNS server configuration without deleting your zones and having to re-create the wheel (Figure F).

Figure F
The Start Of Authority (SOA) tab


Name Servers
Name Servers specify all name servers for a particular domain. You set up all primary and secondary name servers through this record.

To create a Name Server, follow these steps:
  1. Select DNS from the Administrative Tools folder to open the DNS console.
  2. Expand the Forward Lookup Zone.
  3. Right-click on the appropriate domain and choose Properties (Figure G).
  4. Select the Name Servers tab and click Add.
  5. Enter the appropriate FQDN Server name and IP address of the DNS server you want to add.

Figure G
Accessing the properties for your domain


Host (A) records
A Host (A) record maps a host name to an IP address. These records help you easily identify another server in a forward lookup zone. Host records improve query performance in multiple-zone environments, and you can also create a Pointer (PTR) record at the same time. A PTR record resolves an IP address to a host name.

To create a Host record:
  1. Select DNS from the Administrative Tools folder to open the DNS console.
  2. Expand the Forward Lookup Zone and click on the folder representing your domain.
  3. From the Action menu, select New Host.
  4. Enter the Name and IP Address of the host you are creating (Figure H).
  5. Select the Create Associated Pointer (PTR) Record check box if you want to create the PTR record at the same time. Otherwise, you can create it later.
  6. Click the Add Host button.

Figure H
Add a Host record.


Pointer (PTR) records
A Pointer (PTR) record creates the appropriate entry in the reverse lookup zone for reverse queries. As you saw in Figure H, you have the option of creating a PTR record when creating a Host record. If you did not choose to create your PTR record at that time, you can do it at any point.

To create a PTR record:
  1. Select DNS from the Administrative Tools folder to open the DNS console.
  2. Choose the reverse lookup zone where you want your PTR record created.
  3. From the Action menu, select New Pointer (Figure I).
  4. Enter the Host IP Number and Host Name (Figure J).
  5. Click OK.



Create a Pointer (PTR) record.




Set the Host Name and Host IP Number for the PTR record.


Canonical Name (CNAME) or Alias records
A Canonical Name (CNAME) or Alias record allows a DNS server to have multiple names for a single host. For example, an Alias record can have several records that point to a single sever in your environment. This is a common approach if you have both your Web server and your mail server running on the same machine.

To create a DNS Alias:
  1. Select DNS from the Administrative Tools folder to open the DNS console.
  2. Expand the Forward Lookup Zone and highlight the folder representing your domain.
  3. From the Action menu, select New Alias.
  4. Enter your Alias Name (Figure K).
  5. Enter the fully qualified domain name (FQDN).
  6. Click OK.

Figure K
Create an Alias (CNAME) record.


Mail Exchange (MX) records
Mail Exchange records help you identify mail servers within a zone in your DNS database. With this feature, you can prioritize which mail servers will receive the highest priority. Creating MX records will help you keep track of the location of all of your mail servers.

To create a Mail Exchange (MX) record:
  1. Select DNS from the Administrative Tools folder to open the DNS console.
  2. Expand the Forward Lookup Zone and highlight the folder representing your domain.
  3. From the Action menu, select New Mail Exchanger.
  4. Enter the Host Or Domain (Figure L).
  5. Enter the Mail Server and Mail Server Priority.
  6. Click OK.

Figure L
Create an MX record.


Other new records
You can create many other types of records. For a complete description, choose Action | Other New Records from the DNS console. Select the record of your choice and view the description.

Figure M
View other types of records.


Troubleshooting DNS servers
When troubleshooting DNS servers, the nslookup utility will become your best friend. This utility is easy to use and very versatile. It’s a command-line utility that is included within Windows 2000 (Figure N). With nslookup, you can perform query testing of your DNS servers. This information is useful in troubleshooting name resolution problems and debugging other server-related problems.

Figure N
Using nslookup from the command line


Author’s note on nslookup:
If a forward lookup zone is not available, nslookup will fail. If a reverse lookup zone is not available, nslookup will time out.

Summary
This article has covered much of the information needed to successfully install, configure, and troubleshoot a DNS server. The concepts you learn here will help deploy and manage a DNS server in Windows 2000.

Have you worked with Windows 2000 DNS yet?
Do you have tips for Win2K DNS management? We look forward to getting your input and hearing about your experiences regarding this topic. Join the discussion below or send the editor an e-mail.

 

Editor's Picks

Free Newsletters, In your Inbox