DNS Redundancy

M_M 21 Reputation points
2020-11-19T08:59:56.02+00:00

Hi,

Internal AD integrated DNS.
I need a domain name to resolve to IP #1.
If IP #1 is unavailable I want the domain name to resolve to IP #2.

As far as I understand, if I create two A records as below, round robin will occur and clients will connect to one IP then the other.
domain_nameA - IP #1
domain_nameA - IP #2

I need clients to always resolve to IP #1 unless it is unavailable.
Only when IP #1 is unavailable, do I want clients to resolve to IP #2.

Any help appreciated.

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,039 questions
{count} votes

Accepted answer
  1. Sunny Qi 11,046 Reputation points Microsoft Vendor
    2020-11-20T03:25:53.683+00:00

    Hi,

    Thanks for posting in Q&A.

    Before we go further, I would like to know if the IP #1 and IP #2 were in same subnet?

    If they are in the same subnet, to accomplish your goal, I would suggest disable round robin and netmask ordering in Properties of DNS server since if Round robin and Subnet Prioritization are both enabled, they will work together, however, Round Robin will be superseded. Meanwhile, please make sure the A record of IP #1 is always on the top of IP #2's A record.

    41303-image-1.jpg

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-11-19T13:33:25.067+00:00

    Simplest is to have your DHCP server hand out IP #1 as primary DNS and IP #2 as secondary.

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

    0 comments No comments

  2. M_M 21 Reputation points
    2020-11-20T08:39:14.873+00:00

    Thanks Sunny,

    The disabling of round robin looks to be just what I needed.
    What is the purpose of enabling Netmask ordering?

    Thank you.


  3. M_M 21 Reputation points
    2020-11-20T09:22:28.62+00:00

    Hi Sunny,

    Yes, they are consecutive IP addresses in the same subnet.

    Thanks,

    Mike

    0 comments No comments

  4. Sunny Qi 11,046 Reputation points Microsoft Vendor
    2020-11-20T10:01:44.987+00:00

    Hi @M_M ,

    Thanks for your prompt reply. You could disable Round Robin and Network ordering in DNS server to achieve your goal.

    I have done a test in my lab and here is the result for your reference.

    A. I create 2 A records whose IP addresses are in the same subnet in DNS zone as below.

    41483-image-3.jpg

    B. When Round Robin and Netmask ordering are enabled, the result of nslookup hostname is as below.

    41433-image-2.jpg

    41456-image-7.jpg

    C. When Round Robin is disabled but Netmask ordering is enabled, the result of nslookup hostname is as below.

    41418-image-1.jpg
    41434-image-5.jpg

    D. When both Round Robin and Netmask ordering are disabled, the result of nslookup hostname is as below.

    41426-image-8.jpg

    41427-image-6.jpg

    Hope my answer will help you.

    Best Regards,
    Sunny

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.