BlogLinux.ru » Техно блог » Hosts file

Hosts file: 60 фото

Вопросы и ответы

Windows users. In Windows 10 the hosts file is located at c:\Windows\System32\Drivers\etc\hosts. Right click on Notepad in your start menu and select “Run as Administrator”.
A Hosts file is a file that almost all computers and operating systems can use to map a connection between an IP address and domain names. This file is an ASCII text file. It contains IP addresses separated by a space and then a domain name. Each address gets its own line.
Windows
  1. Press the Windows key.
  2. Type Notepad in the search field.
  3. In the search results, right-click Notepad and select Run as. administrator.
  4. From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts.
  5. Make the necessary changes to the file.
  6. Select File > Save to save your changes.
Once you're logged in to a command prompt, do the following:
  1. Open the file with the nano text editor: nano /etc/hosts.
  2. Add the following line to the end of the file: 127.0. 0.1 www.example.com.
  3. Press CTRL+X and when prompted, type “Y” to save your changes and exit nano.
The /etc/hosts file contains the Internet Protocol (IP) host names and addresses for the local host and other hosts in the Internet network. This file is used to resolve a name into an address (that is, to translate a host name into its Internet address).

How To Edit Hosts File in Windows 10

How To Edit Hosts File in Windows 10. Modifying your hosts file enables you to override the domain name system (DNS) for a...

Просмотры: 453441
Youtube - @MDTechVideos