21.1.18
Easily Edit the Hosts File in Windows 10
Most operating systems, including Microsoft Windows versions, use the
hosts file to translate computer names. Also known as “host names” to
numerical IP addresses, the hosts file is similar to using a phone book
to find the matching phone number of a specific person’s name.
While Domain Name System – or DNS – is mostly used for this function (being a centralized and half-automatically managed name resolution system), the HOSTS file can be used as a local name resolution mechanism, and when used in conjunction with other name resolution mechanisms such as DNS, the HOSTS file takes precedence over them.
This is why many users still edit the HOSTS file and add names and IP addresses of servers, websites and other computers they frequently access to it.
Link
While Domain Name System – or DNS – is mostly used for this function (being a centralized and half-automatically managed name resolution system), the HOSTS file can be used as a local name resolution mechanism, and when used in conjunction with other name resolution mechanisms such as DNS, the HOSTS file takes precedence over them.
This is why many users still edit the HOSTS file and add names and IP addresses of servers, websites and other computers they frequently access to it.
Link