13.9. Configuring Conditional Forwarding


Conditional forwarding is a new feature in Windows Server 2003, so this recipe will not work on Windows 2000.


You want to configure conditional forwarding to streamline name resolution in your environment.


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. Right-click on the server and select Properties.

  4. Click the Forwarders tab.

  5. To configure a global forwarder, make sure All other DNS domains is selected under DNS domain, type an IP under Selected domain's forwarder IP address list, click Add, and Apply.

  6. To configure a forwarder for a specific domain, click the New button.

  7. Enter the domain name and click OK.

  8. Add IPs as described for global forwarders.

  9. From the Forwarders tab, you can also set the number of seconds the server waits before forward queries times out, and you can disable the use of recursion for certain domains. Both of these can be set on a per-domain basis.

Using a command-line interface

The following command sets the default forwarders. Replace <IPsOfForwarders> with a space-separated list of IP addresses for the name servers to forward requests to:

> dnscmd <ServerName> /resetforwarders <IPsOfForwaders>

For example:

> dnscmd dns01 /resetforwarders

The following command creates a domain-based forwarder: ...

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.