I've recently migrated some 2012 R2 servers to Server 2022, including some domain controllers.
Everything appears to be fine except that one of the VMs is behaving strangely when attempting name resolution.
The behaviour:
I first noticed something strange when trying to ping other servers on the network, a ping would take a few seconds to resolve an IP address, and sometimes timeout. This was obviously uncharacteristic, as even external hosts usually resolve in under a second. This would explain why some of the scripts we run are failing, i.e. cannot connect to a SQL server, unable to resolve external API endpoint URLs, and so on.
It also appears that it's not maintaining local cache, for example, when it does resolve, it seems to take half a second longer than it should, another example are recently resolved internal addresses that don't resolve a few minutes later.
However, when I use nslookup with the same nameservers (I've tried the internal DCs and 8.8.8.8) it is working as expected, there's no sign of any issue.
I installed WireShark on this problem-host and the name server, I can see requests being made and received, however I do notice that the domain controller doesn't appear to respond to all of the requests (that might be expected, I'm no DNS expert), but when it does then it makes it back and the client is happy.
What I've tried:
- netsh resets of IP and winsock.
- ipconfig /flushdns
- changing IP addresses of the host
- using 8.8.8.8 instead of the internal nameservers
- disabling the firewall
- disable AV software (Defender)
- re-installed NIC
For now, I've got critical hosts listed in the hosts file and it seems OK.
I'm baffled by this, any ideas would be great. Thanks