Where is the location of the hosts file?

藏色散人
Release: 2019-12-27 11:33:07
Original
8078 people have browsed it

Where is the location of the hosts file?

Where is the location of the hosts file?

In MAC systems, the location of the hosts file is: ~/private/etc

In Windows systems, the location of the hosts file is: C:\Windows\System32\drivers\etc

hosts file introduction:

hosts is a system file without extension, its basic function is Establish an associated "database" between some commonly used URL domain names and their corresponding IP addresses. When the user enters a URL that needs to be logged in in the browser, the system will first automatically search for the corresponding IP address from the hosts file. Once found, the system will immediately open the corresponding web page. If not found, the system will submit the URL to DNS. The domain name resolution server performs IP address resolution.

The above is the detailed content of Where is the location of the hosts file?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template