DNS Priority in Win Server 2016

Hossein Mehrashian 1 Reputation point
2021-07-08T06:38:53.907+00:00

I have two servers, one of them is Linux Ubuntu 20.04 that is my website server (192.168.20.11) and the other one is Win server 2016 which is my DC and DNS server (192.168.20.10). The name of my website and Domain Name are the same (spsco.net). In DNS manager-->Forward Lookup Zones-->spsco.net, I have two "same as a parent folder" records which one of them is created dynamically and one of them is created Statically by me. So when I want to ping my website in local network, there are two records for the same domain name, and it causes latency in loading the website. is there any solution for that? can I prioritize between in these DNS records?

DNS Forward lookup zones
==>>spsco.net

(same as a parent folder) Host(A) 192.168.20.10 2021-11-11 4:35 -->DC
(same as a parent folder) Host(A) 192.168.20.11 Static -->Website

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,416 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,030 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sunny Qi 10,916 Reputation points Microsoft Vendor
    2021-07-08T08:48:54.453+00:00

    Hi,

    Welcome to Q&A platform.

    My understanding is your domain name is same as the website name. If there is any misunderstanding, please correct me.

    The workaround is create an A record in the DNS zone named "www.domain name" without the quotes and point it to the website.

    Or you could configure Split-Brain DNS, for more details you could refer to the following articles:

    Use DNS Policy for Split-Brain DNS in Active Directory

    Split Zone or no Split Zone – Can’t Access Internal Website with External Name
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    And here is a similar thread discussed before, you could have a look:

    DNS (internal domain has same name as external website)

    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.

    0 comments No comments

  2. Hossein Mehrashian 1 Reputation point
    2021-07-12T10:31:29.653+00:00

    I have already created an A record "www" for my website, but how can I redirect visitors over WAN from non-www to www?