can this be done with Windows DNS?

Matt 101 Reputation points

Hi All,

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


Thank you for the help!

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,455 questions
Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,032 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Alex Struck 1 Reputation point

    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?

  2. Gary Reynolds 9,401 Reputation points

    Hi @Matt

    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.


  3. Limitless Technology 39,476 Reputation points


    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.


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

    0 comments No comments