In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Search in resolv.conf is mainly used to complete hostname. Sometimes the domain name is too long and can be used as a short domain name as host name, but FQDN is needed for DNS resolution, and setting search in resolv.conf can complete it.
Vim / etc/hosts
42.120.7.71 www
Ping www can be reached, and the returned value is 42.120.7.71. Ping will parse hosts first.
Vim / etc/resolv.conf
Search firefoxbug.net
Nameserver 114.114.114.114
At this time, nslookup www
Server: 114.114.114.114
Address: 114.114.114.114#53
Non-authoritative answer:
Name: www.firefoxbug.net
Address: 42.120.7.71
See, the function of search is to complete the short domain name to be accessed.
The correct order for domain name resolution is:
1. Find / etc/hosts
two。 Find the domain name according to nameserver
3. If you can't find the domain name in nameserver, do search completion and go back to 1 / 2 steps.
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.