Hello
I have the following setup
A Windows 2019 Domain Controller with DNS installed
A Windows 10 domain joined client computer point to the Domain Controller for DNS
I have a Dummy DNS records called Dummy.MyDomain.Local with an IP address or 10.10.10.10 (on the DNS Server)
I want to override this do when the Windows 10 client wants to resolve Dummy.MyDomain.Local it resolves to some other address e.g. 10.20.10.10
Therefore I added an entry to the Client on hosts files
Dummy.MyDomain.Local 10.20.10.10
Then rebooted,
When I do a IPConfig /DisplayDNS on the client it shows Dummy.MyDomain.Local resolved to 10.20.10.10 as I would want
if I do a Ping Dummy.MyDomain.Local it tries to reach 10.20.10.10 (OK so far)
if I do an NSLookup Dummy.MyDomain.Local it returns 10.10.10.10 (not want I want)
I then look at the local DNS cache again on the client IPConfig /DisplayDNS and it still shows 10.20.10.10 (and there is no entry for 10.10.10.10). Therefore the DNS cache on the client appears to be being ignored when using NSLookup? I always thought the DNS cache would be used 'first' and if it cannot find the record it would go to hosts/DNS in that order.
I then added the hosts files to the Domain Controller, but experienced the same issue as above (no matter that the host file says or the fact the hosts file entry in in the DNS cache, it always returns the entry in the DNS database).
Can someone please assist me in resolving this issue
Thanks in advance
Charlie