13.8. Creating a Stub Zone

Tip

Stub zones are a new feature in Windows Server 2003, so this recipe will not work on Windows 2000.

Problem

You want to create a stub zone to improve the efficiency of name resolution, avoid creating secondaries in some situations, or keep delegated zone information current without manual intervention.

Solution

Using a graphical user interface

  1. Open the DNS snap-in (dnsmgmt.msc).

  2. Connect to the DNS Server you want to modify. In the left pane, right-click on DNS and select Connect to DNS Server. Select The following computer and enter the target server name. Click OK.

  3. Expand the server in the left pane and click on Forward Lookup Zones.

  4. Right-click on Forward Lookup Zones and select New Zone.

  5. Click Next.

  6. Select the option beside Stub Zone and click Next.

  7. Enter the zone name and click Next.

  8. Fill out the information for the remaining screens, which vary depending on whether you are creating a file-based or Active Directory-integrated zone.

Using a command-line interface

To create a file-based stub zone, use the following command:

> dnscmd <ServerName> /zoneadd <ZoneName> /stub <ServerList> /file <FileName>

<ZoneName> should be the name of the zone you want to create the stub for; <ServerList> should be a space-separated list of IP addresses of servers that are authoritative for the stub; and the /file <FileName> parameter is optional for file-based stub zones only and should specify the filename where the zone information is stored.

Here is an example:

> dnscmd /zoneadd ...

Get Windows Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.