question

EricSoiset-8099 avatar image
0 Votes"
EricSoiset-8099 asked ·

DNS Policy and load balancing with multiple servers in multiple sites

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

windows-server-powershellwindows-dhcp-dns
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered ·

DNS isn't a load-balancing service. The way you propose to set up the DNS zone will provide an IP address in a round-robin fashion for each of your two zones. But if one of the servers at those IP addresses goes off-line, DNS will continue to serve up the IP address of the unavailable server. The same is true if one of the machines becomes bogged down and its response times become unacceptably slow.

What you haven't shown is how you set up the DNS client subnets. If this is an internal-only DNS server that won't be too difficult. If it's exposed to the Internet you'll have more work to do. :-) Oh, and for internal DNS you may want to consider that IPv6 is also used by Windows machines.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the reply. This is for an internal only system. I am taking a look at this as a replacement for the current round robin system, but it looks like it won't give us much more than that.

Kind of what I was expecting after going through the docs, but wanted some experts to validate my novice understanding.
Thanks for the IPv6 reminder, the last work I did with DNS/DHCP was in the early 2000s so it still hasn't sunk in yet :)

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered ·

Something here may help.
https://forums.iis.net/t/1247879.aspx?IIS+10+WEB+FARM+ARR+

or also reach out to subject matter experts here in dedicated IIS forums.
https://forums.iis.net/

--please don't forget to Accept as answer if the reply is helpful--






· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is more of a question if I can do this with DNS Policy rather than using a web farm or anything IIS related like the link you put in.
We have a very basic DNS round robin right now, with just four A records in our basic DNS zone.

I think we would want to weight them at some point, so trying to get DNS policy set up.

0 Votes 0 ·