Hosts file

xiaoxiao2021-04-01  246

Hosts files in the C: / Windows / System32 / DRivers / etc directory in the Windows2000 / XP system. This file is actually a plain text file, which can be opened with ordinary text editing software such as notepad.

This file works according to the standard of TCP / IP for Windows, which is a mapping relationship that contains IP addresses and host names. It is a regulation that maps IP addresses and Hostname (host names). The segment can only include a mapping relationship, the IP address is placed at the forefront of each segment, and then writes the Host Name (host name) that is written after the space.

The relationship between the domain name and IP address is saved in the Host file. Typically, when we entered a domain name in the browser's address bar, the browser first checks the corresponding IP in the Host file, if there is, The domain name is parsed directly into the IP address in the Host file, and if you don't query to the DNS server.

You may not be able to access when you enter the other machine name access, you can add mappings in HOSTS:

127.0.0.1 Localhost 192.168.30.1 Machine name

转载请注明原文地址:https://www.9cbs.com/read-131232.html

New Post(0)