I looked through the DNS Policy overview docs and was wondering how to go about setting up load balancing for a website that has two servers in each of two datacenters.
I think I would set up the zones like this:
Add-DnsServerZoneScope -ZoneName "myorg.org" -Name "USZoneScope"
Add-DnsServerZoneScope -ZoneName "myorg.org" -Name "EUZoneScope"
Then add the records like so:
Add-DnsServerResourceRecord -ZoneName "myorg.org" -A -Name "website" -IPv4Address "InternalIP" -ZoneScope "USZoneScope"
Add-DnsServerResourceRecord -ZoneName "myorg.org" -A -Name "website" -IPv4Address "InternalIP" -ZoneScope "USZoneScope"
Add-DnsServerResourceRecord -ZoneName "myorg.org" -A -Name "website" -IPv4Address "InternalIP" -ZoneScope "EUZoneScope"
Add-DnsServerResourceRecord -ZoneName "myorg.org" -A -Name "website" -IPv4Address "InternalIP" -ZoneScope "EUZoneScope"
How would I set up the Policy to split the traffic between them all evenly?
I see the Add-DnsServerQueryResolutionPolicy command to split between ZoneScopes, but is there a way to split it between servers as well?
Or would I have to create a ZoneScope for each server like USZoneScope1,USZoneScope2,EUZoneScope1,EUZonescope2 then create the Policy like:
Add-DnsServerQueryResolutionPolicy -Name "websitepolicy" -Action ALLOW -ZoneScope "EUZoneScope1,1;USZoneScope1,1,EUZoneScope2,1;USZoneScope2,1" -ZoneName "myorg.org"
Or would this be a case of having to put up a NLB machine and having the resource records point to the NLBs?
Thanks for your time