Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Host file change

Shulou Source: shulou.com Published: 2022-06-01 04:04:36 10月06日 Update

First, attach the link: https://github.com/liuker0x007/hosts

Principle

When a browser visits a website, it is necessary to resolve the domain name of the website to be visited into a unique IP address through the DNS server before the browser can locate the website and access its data.

The operating system stipulates that before making a DNS request, check to see if there is a mapping between the domain name and IP in its own Hosts file. If so, directly access the network location specified by the IP address, and if not, make a domain name resolution request to the known DNS server. In other words, Hosts has a higher priority for IP parsing than DNS.

Tags: Domain name website address server browser service browse file operating system that is priority location principle response data system network link location Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Xiaomi Shulou Technology Linux macOS