Skip to content

Double love | Dating site to meet singles find real love!

Double love

Menu
  • Sample Page
Menu

hosts file (method of hosts file)

Posted on December 28, 2022

Hosts file (method of hosts file)

1 What is a hosts file?

Hosts is a system file without an extension. Its basic function is to establish an associated “database” between some commonly used website domain names and their corresponding IP addresses. When the user enters the 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, Youyou. If not found, the system will submit the URL to the DNS domain name resolution server for IP address resolution.

2 The role of the host file

2.1 Speed ​​up domain name resolution

For frequently visited websites, we can configure the mapping relationship between domain name and ip in the hosts file, Improve the resolution speed of domain names. Because of the mapping relationship, when we enter a domain name, the computer can quickly resolve the ip address without requesting the DNS server on ***.

2.2 Establish a mapping relationship

Many units have their own local area network and provide different servers to company members. However, DNS servers are rarely set up in the LAN, so when accessing these servers, you need to enter IP addresses that are difficult to remember, which is quite troublesome for everyone. So we can give each of these servers an easy-to-remember name, and then set up IP mapping in the hosts file, so that when accessing later, just enter the name of this server and it will be OK!

3.3 Block spam sites

Now there are many websites that install various plug-ins Anyyouyou resources into our computers without our consent, including viruses and Trojan horses. For these websites, we can use the hosts file to map the domain name of these websites to a wrong IP or the IP address of the local computer, so that the purpose of prohibiting access can be achieved!

4 ways to modify the hosts file

Because the hosts file is a system file, you need administrator privileges to modify it.

One method: first modify the authority to administrator authority, and then modify it.

The second method: first copy the hosts file to the desktop, and then you can modify it without administrator privileges. After modification, drag it back to the original directory and replace it!

In the iOS system, the location of the hosts file is: ~/private/etc.

On the Windows system, the location of the hosts file is: c:\Windows\system32\drivers\etc.

Example of host file modification:

202.108.22.5·www.baidu.com

One

As shown above, we are locally The Baidu IP address and Baidu IP address are established in the hosts file.The mapping relationship of the domain name plays the role of “speeding up domain name resolution”, because there is no need to request the DNS server anymore! Also, if we want to comment on it, just add a # sign in front of it, for example:

# 202 . 108 . 22 . 5 www.baidu.com

Recent Posts

  • The toilet is clogged (Ten tricks to unclog the toilet)
  • rh negative blood (Rh negative blood (panda blood) ins and outs)
  • Driving skills (these few driving skills)
  • Ways to wear couple rings (do you know how many ways to wear couple rings?)
  • What does ssl mean (what is an ssl certificate made of?)

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019

Categories

  • Emotional zone
  • Love sign
  • Love Skills
  • Marriage management
  • popular science knowledge
  • Uncategorized
©2023 Double love | Dating site to meet singles find real love! | Design: Newspaperly WordPress Theme