question

HosseinMehrashian-8521 avatar image
0 Votes"
HosseinMehrashian-8521 asked SunnyQi-MSFT commented

DNS Priority in Win Server 2016

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-2016windows-dhcp-dns
· 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,

Just checking in to see if the information provided was helpful.

If yes, you may accept useful reply as answer, if not, welcome to feedback.

Best Regards,
Sunny

0 Votes 0 ·
SunnyQi-MSFT avatar image
0 Votes"
SunnyQi-MSFT answered

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.

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.

HosseinMehrashian-8521 avatar image
0 Votes"
HosseinMehrashian-8521 answered SunnyQi-MSFT commented

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

· 3
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,

Many thanks for your update. May I know if the issue was resolved by adding an A record "www" for the website?

If yes, I would suggest you could tell the visitors, when accessing the website please insert www.domain.com. Otherwise, I would suggest you configure Split-Brain DNS.

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 Votes 0 ·

The best solution is to install and run another DNS server without joining the server to any domains and add an A record to it, then in the clients domain you should add this DNS server as a conditional forwarder.

0 Votes 0 ·
SunnyQi-MSFT avatar image SunnyQi-MSFT HosseinMehrashian-8521 ·

Many thanks for your posting here and sharing the resolution in the forum as it would be helpful to anyone who encounters similar issues.

0 Votes 0 ·