We host our application in two data centers. During a production update, we point the customer traffic to datacenter1 and test the update by adding datacenter2 IP in our hosts file, where the update is being done to our domain name. This has been working fine until windows 10. ping returns the datacenter2 IP but not nslookup. Is there a configuration/registry to change the order of dns servers to first look at the hosts file?
I researched several posts like hosts file ignored, how to troubleshoot?, Nslookup not using hosts file, HOSTS file being ignored, etc. but to no avail. Among other things, I tried recreating hosts file with no extension, in the format "<space/tab>".
Any help is greatly appreciated.