How Update etc hosts file Linux?
- Open a Terminal window.
- Enter the following command to open the hosts file in a text editor: sudo nano /etc/hosts.
- Enter your domain user password.
- Make the necessary changes to the file.
- Press Control-X.
- When you are asked if you want to save your changes, enter y.
Do you need to reboot after modifying hosts file? You don’t need to reboot. Any changes you make to the hosts file are immediate. You used to need to reboot for changes to take effect in Windows 9x. That is no longer the case.
How do I flush my hosts file?
- Click the Windows logo while holding the R key at the same time. The run box appears.
- In the run box, type cmd and then hit the ‘Enter’ key.
- In the command prompt that pops up, enter: C:Usersusername> ipconfig /flushdns.
- Type exit , and then press the ‘Enter’ key to close the window.
How do I restore etc hosts? 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%System32DriversEtc, and then select OK.