concept conditional forwarding in category powershell

appears as: conditional forwarding
PowerShell in Practice

This is an excerpt from Manning's book PowerShell in Practice.

We may also want to create a shortcut. If we know the IP addresses of the DNS servers for a particular domain, we can configure conditional forwarding. This will immediately cause the DNS servers to forward requests for IP addresses in the given domain to a specific set of servers. The question is how do we configure this?

The way that we configure conditional forwarding is closely related to how we create a DNS zone. Compare listing 9.4 with listing 9.6 where we investigate how to create a DNS zone. Examining the conditional forwarders in the DNS manager console shows that they’re specialized zones that only contain the IP addresses of DNS servers authorative for that zone.

Listing 9.4. Configure conditional forwarding
$ip = "192.168.40.1", "192.168.40.2" $z = [WMIClass]"\\dc02\root\MicrosoftDNS:MicrosoftDNS_Zone" $z.CreateZone("cond.com", 3, $false, $null, $ip)