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
Open the DNS snap-in (dnsmgmt.msc).
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.
Expand the server in the left pane and click on Forward Lookup Zones.
Right-click on Forward Lookup Zones and select New Zone.
Click Next.
Select the option beside Stub Zone and click Next.
Enter the zone name and click Next.
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.