1, about/etc/host, hostname and IP configuration file Hosts-the static table lookup for host name (host-Name query-still tables) Hosts file is a Linux system responsible for the rapid resolution of IP address and domain name files, in ASCII format
Let's take a look at the original hosts file of the C:\WINDOWS\system32\drivers\etc\hosts system (not changed)Open the original Hosts file to view the original contentHost is a system file without extension, can be opened with a tool such as Notepad,
1,/Etc/hosts, Host name IPConfiguration file.
# Do not remove the following line, or various programs
# That require Network functionality will fail.
127.0.0.1 localhost. localdomain localhost
: 1 localhost6.localdomain6 localhost6
Hosts --- the
Linux/etc/hosts file function 1. for details about/etc/host, host name and IP configuration file Hosts: Thestatictablelookupforhostname (host name query static table) in Linux,/etc/hosts is the file that configures the IP address and its
Modify/etc/hosts in Linux and etchosts in linuxDirectory structure
Directory structure
Hosts file
Hosts format Configuration
Hosts file format
Hosts file Function
Hosts file
Hosts -- the static table lookup for host name (host name
1./etc/hosts
Hosts file, officially known as the static table lookup for host name, in Chinese for the host name query static tables. Hosts file is a Linux system in charge of IP address and domain name Fast resolution of the file, in ASCII format
Directory structure
Directory structure
Hosts file
Hosts format configuration
Hosts file format
Hosts file role
Hosts fileHosts--the static table lookup for host name (host name query for still tables).The
1, about/etc/host, hostname and IP configuration fileHosts-the static table lookup for host name (host-Name query-still tables)The Hosts file is a file that is responsible for the fast resolution of IP addresses and domain names in the Linux system,
How does the/etc/hosts file take effect after modification ?, Etchosts
After modifying/etc/hosts, it is normal that it takes effect immediately after being saved, but sometimes it is not. You can use uname-a to check the hostname and check whether
Hosts file hosts -- the static table lookup for host name (host name query static table) hosts file is a file on the Linux System for fast resolution of IP addresses and domain names, save it in the/etc/directory in ASCII format. The hosts file
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.