Updating windows hosts file potassium argon is an example of a relative dating technique

to handle your specific domain, add a new line with the IP specified by your customer and the domain name.

This post describes how to fix possible issues with Windows hosts-file.

notepad c:\windows\system32\drivers\etc\hosts STEP 3: When notepad is open you can edit the hosts file. To block Facebook just enter following the line after the # mark in the hosts file.

0.0.0.0 4: Now you have edited your Hosts file and save it.

But what if you're dealing with a cluster of machines? I needed to do this on several machines in a production environment and I wanted to make it as safe as possible.

Supposedly, Windows doesn’t actually support putting the hosts file in other locations, but you might want to check. If everything is blank and “Automatically detect settings” is checked, you aren’t using a proxy.(This may also resolve proxy issues.)Go to your network connections properties, then TCP/IP settings, and change the first DNS server to Antti Koskela is a proud digital native nomadic millennial full stack developer (is that enough funny buzzwords? ), who works as a Solutions Architect for Valo Intranet, the product that will make you fall in love with your intranet.

STEP 5: Now observe if we try to reach Facebook in IE browser we can’t get to the page.

STEP 6: We also were not able to access it in Google Chrome.

Summary In this article I present a couple of simple Power Shell scripts which will modify the hosts file on one (or more) Windows machines, so that you can route traffic destined for certain domains to specific IP addresses with minimal fuss.

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.

Leave a Reply