How do I fix a corrupted hosts file?

How do I fix a corrupted hosts file?

To reset the Hosts file back to the default yourself, follow these steps: Click Start, click Run, type Notepad, and then click OK. On the File menu, select Save as, type “hosts” in the File name box, and then save the file to the desktop. Select Start > Run, type %WinDir%\System32\Drivers\Etc, and then select OK.

Where is my host file Mac?

The Hosts file on a Mac is found in the /etc/hosts folder.

How do I reset my host file back to default?

To Reset Hosts File Back to Defaults in Windows, Navigate to the folder C:\Windows\System32\drivers\etc. Select “All Files” from the drop-down menu. Double-click the hosts file. Select all the file contents ( Ctrl + A ) and clear it (press Del ).

Why is my hosts file not working on my Mac?

Sometimes when you add too many entries to your Hosts file Mac might not process them correctly. It could be that some of the TCP/IP addresses are responding to the same domain name or you’ve deleted some other essential information.

How do I edit hosts file on Mac?

To edit Hosts file Mac features is not a difficult although completely non-obvious process. To open Hosts file on Mac, which is hidden, you need to use Terminal: Launch Terminal. Type sudo nano /etc/hosts and press Return. Enter your admin password. Now you’ll notice you’re in the Nano text editor, from where you can actually edit Mac’s Hosts file.

How can I make changes to my hosts file?

If you intend to make changes to your hosts file, we suggest that you first make a copy of it to revert to if necessary. Take special note of the localhost entry and the IP address of 127.0.0.1. This is the loopback address. Using this address simply returns control to the local machine.

What’s the IP address of the hosts file?

Take special note of the localhost entry and the IP address of 127.0.0.1. This is the loopback address. Using this address simply returns control to the local machine. This essentially blocks access to domains with an address of 127.0.0.1. You can create an extensive hosts file to exert control over how your computer access hosts over the network.