Tip and Trick for activities around DNS on windows.
Disabling DNS caching in windows.
To disable dns caching momentarily (until your windows is restarted), run below command in command prompt as :
net stop dnscache
sc servername stop dnscache
To disable the dns caching permanently on your windows , we have to use Services tool to disable the DNS Client service. DNS client service can be disabled by following below steps.
- Click on Start on your desktop and click on Run.
- Type Services.msc in the Run command box.
- A services window will pop up. Look for a service called DNS Client.
- Double click on the listed DNS Client service and click Stop.