Updating windows hosts file
These scripts are a safe, easy way to do that, especially in the case where you need to update multiple machines at the same time.
The scripts do this by adding (or removing) entries to (or from) the hosts file and they do this idempotently, so you don't need to write any checks when adding or removing.I hope they can help you in a somewhat less stressful scenario. You can set IP addresses for a domain on your local system through editing hosts file that can overrule the authoritative DNS.:)Editing the file requires elevated privileges for the text editor process, so you’ll need to run it as an administrator. Changes to hosts should take effect immediately, but Windows caches name resolution data so for some time the old records may be used.Open a command line (Windows R, Show Symbol) so you can easily inspect the number and kind of whitespace characters.