Linux sir.org;
What is the host name used? In a LAN, each machine has a host name for easy distinction between the host and the host, you can set a host name for each machine, to facilitate mutual access in a way that is easy to remember. For example, we can name each machine based on its functions in the LAN. Configuration file related to the Host Name:/etc/hosts
26.3 "Linux Learning is not difficult " Linux network configuration file (3):/etc/hosts fileWhen the computer starts, the computer needs to query for some hostname-to-IP address matching before DNS can be queried. These matching information is stored in the/etc/hosts
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 in the "/etc" directory, th
Hosts file
Hosts--the static table lookup for host name (host name query for static tables).
The Hosts file is the last file in the Linux system responsible for fast resolution of IP
There are 3 ways to copy files between different Linux: ①ftpis one of the Linux installation FTP Server, so you can use another FTP program to copy files.② Using Samba Servicesis similar to the Windows file copy way to operate, relatively simple and convenient.③ uses the SCP command to copy files.SCP is a security mechanism for
and domain names in Linux systems.Storage :Saved in ASCII format in the "/etc" Directory , the file name "hosts" (different versions of Linux, this configuration file may also be different.) For example, Debian's counterpart file
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, and is stored in the "/etc" directory in ASCII format.The
1. About/etc/host, hostname and IP profile hosts:the static table lookup for Host name (hostname query static table) Linux/etc/hosts is the configuration IP address and It corresponds to the hostname of the file, where you can log the machine or other host IP and its corresponding host name. Different versions of Linux
Hosts file often hear, change the hosts what, but the real role of this file? The online interpretation of this document is always a theory that is too long to see. Let me see the dizziness.First, the basic theory of the hostsIn fact, the hosts
Hosts file
Hosts--the static table lookup for host name (host name query for static tables).
The Hosts file is the last file in the Linux system responsible for fast resolution of IP
Linux binds a domain name, such as modifying the hosts file to bind a domain name IP address in windows. Windows linux binds a domain name hosts file. in windows, you only need to modify the C: WindowsSystem32driversetchostshosts
... telnet:connect to address10.72.16.62: Connection timed outtrying101.226.212.27... Connected to Api.weixin.qq.com.Escape character is'^]'. Connection closed by foreign host.You can see that 10.72.16.60, 62 are inaccessible, and finally resolved to 101.226. on the 212.27.But there will be a time-out. Connection timed outConclusion: As long as the local parsing profile opens multion, it can be a domain name for multiple IPConfigure configuration files for a
Linux under the Hosts file 1, host name: both on the LAN or the Internet, each host has an IP address, is to distinguish between this host and the host, that is, the IP address is the host's number. Public network: The IP address is not easy to remember, so there is a domain name. Domain names exist only in the public network (the INtERNET), each domain name corr
A detailed description of the Hosts file under Linux
Host Name:Whether on the LAN or the Internet, each host has an IP address to differentiate between this host and its host, that is, the IP address is the host's number.Public network: The IP address is not easy to remember, so there is a domain name. Domain names exist only in the public network (the INtERN
separately, so that the three LAN machines can be accessed through hostname.3. The difference between host name (Hostname) and domain name (domains)Hostname is the name of the machine itself, the domain name is used to resolve to the IP. But it is worth saying that in the local area network, the hostname can also be resolved to the IP, such as the example we said earlier;Display host Name:# HostnameRoot1The host name of this host is ROOT1, and no parameter is the hostname of the host that is us
We usually know the hosts file in Windows (C:\WINDOWS\SYSTEM32\DRIVERS\ETC), which is used to map the domain name.Of course there are Linux, usually under the/etc/hosts.When working on the project, in the development machine, there are various domain name jumps at the time. Sometimes the file cannot be found, it is pos
Configure Remote DesktopPermanently turn off the fire wall.Service Iptables StopChkconfig iptables offModifying the boot kernel level# VI Etc/inittabId:5:initdefault;Modify Configure Remote Desktop# vi/etc/gdm/custom.conf[XDMCP]Enable=1[Security]Allowremoteroot=trueRestarting the serverConfiguring Hosts IP Address and modify hosts file# vi/etc/
inotifywait, and initiate the synchronization process when the event is triggered:#!/bin/bash#desthost=172.16.100.6desthostdir=/www/htdocs/srcdir=/www/htdocs/INOTIFYWAIT-MR--timefmt '%d/%m/%y%h:%m '--format '%T%w%f '-E close_write,modify,delete,create,attrib $SRCDIR | While read DATE time DIR FILE; DoFilechange=${dir}${file}Rsync-avz--password-file=/etc/rsync.pa
Tags: server min Memory Eve Start Row detailed access LinuA detailed description of the Hosts file under Linux
Host Name:Whether on the LAN or the Internet, each host has an IP address to differentiate between this host and its host, that is, the IP address is the host's number.Public network: The IP address is not easy to remember, so there is a domain name.
separately, so that the three LAN machines can be accessed through hostname.3. The difference between host name (Hostname) and domain name (domains)Hostname is the name of the machine itself, the domain name is used to resolve to the IP. But it is worth saying that in the local area network, the hostname can also be resolved to the IP, such as the example we said earlier;Display host Name:# HostnameRoot1The host name of this host is ROOT1, and no parameter is the hostname of the host that is us
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.