question

Matt-5439 avatar image
0 Votes"
Matt-5439 asked GaryReynolds commented

can this be done with Windows DNS?

Hi All,

We have DNS round robin set with two different IPs below on windows 2016 DNS servers. Is it possible to set 10.1.1.1
to be used always first?

app1 10.1.1.1
app1 10.2.2.2

Thank you for the help!

windows-serverwindows-dhcp-dns
5 |1600 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.

AlexStruck-0026 avatar image
0 Votes"
AlexStruck-0026 answered Matt-5439 commented

I have not found a way to prioritize A Records in Windows DNS, but setting them as primary and secondary DNS servers in DHCP or in the NIC may work?

· 1
5 |1600 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.

thank you! this is not about DNS servers, it's about app using DNS round robin with two IPs. I guess no way to prioritize it?

0 Votes 0 ·
GaryReynolds avatar image
0 Votes"
GaryReynolds answered GaryReynolds commented

Hi @Matt-5439

You haven't mentioned why the service has two IP address and in what scenario would like the second IP address to be returned. You could look at the DNS Policies which are available in Windows 2016 and later, but this does have limited in capability. Have a look at this page.

The DNS Policies doesn't provide a health check capability to return the other IP address in case the first IP address is not available. You will need to purchase a 3rd party load-balancer to do that, or you could use Azure DNS to do the same for cloud based services.

Gary.



· 1
5 |1600 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.

Hi @Matt-5439

Just checking if there is any update or progress on this one?

0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello

Thank you for your question and reaching out.

I can understand you wish to set priorities in DNS having same hostname with different ips.

You can try to see if it works in your scenario

  1. Service (SRV) records provide information on available services for your systems. A SRV record has a unique system for naming.
    Priority – This acts the same way as the MX Level / preference in the MX record. The lower the number in the priority field, the more desirable the associated target. 0 is the highest priority (lowest number).
    Weight – Allows the zone administrators to distribute load to multiple targets (load balance)

  2. Use DNS Policy : When you have deployed multiple instances of an application, you can use DNS policy to balance the traffic load between the different application instances, thereby dynamically allocating the traffic load for the application.

https://docs.microsoft.com/en-us/windows-server/networking/dns/deploy/app-lb





--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 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.