In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Hosts file path C:\ Windows\ System32\ drivers\ etc
The priority of the hosts file is higher than that of the DNS server. You can open the hosts file through notepad. There are some examples in the file that tell us how to add a domain name resolution record to it, such as "127.0.0.1 localhost", that is, the name "localhost" corresponds to the "127.0.0.1" IP.
We can add records to the hosts file according to the above format, such as adding a record "202.108.22.5 www" that corresponds to the IP "202.108.22.5".
Let's do a test. Delete the preferred DNS server in the locally connected TCP/IP settings, because there is no DNS server for domain name resolution, so in theory, we will not be able to access any websites. But open the IE browser, enter www.baidu.com in the address bar, and find that you can still visit the Baidu website, which is why the hosts file is at work.
The function of this hosts file is still very powerful, in some situations where the DNS server does not work, we can use it temporarily instead of the DNS server. We can also use it to block malicious websites and map the URLs of malicious websites to some wrong or non-existent IP, then these websites will not be accessible. Hosts files can also be used by some malware to correspond the URLs of some normal websites to the IP addresses of some illegal websites, so check the contents of hosts files frequently, or use software such as hosts security guards to protect them.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.