Read about hostname and domain name difference, The latest news, videos, and discussion topics about hostname and domain name difference from alibabacloud.com
1, check the hostname of the machine#hostname2, modify the hostname of the machine#hostname newnameTakes effect immediately after running (restarting the shell), but changes are lost after the system restarts, and if you want to permanently change
The difference between a level two domain name and a first-level domain name:Level two domain name is dependent on the existence of a domain name exists, that is, the top-level domain name disappears, two-level domain name will no longer exist,
Just installed a Ubuntu operating system under VMware, opened the terminal and found that the host name of this long ah, the entire window is fully occupied.To modify the hostname using hostname, run the command: "hostname new host name"#hostname
Ubuntu down SCP Error: ssh:could not resolve hostname devsrv:name or service not known
Workaround:
You need to add the Devsrv IP to the filename/etc/hosts.
Additional
/etc/hosts file function:
1. About/etc/hosts, host name and IP configuration
In the Ubuntu system, there are several ways to quickly view the hostname:One, open a GNOME terminal window, you can see the host name at the command prompt, the hostname is usually after the "@" symbol;Second, enter the command in the terminal
In the Ubuntu system, the host name setting involves two files:/etc/hostname:hostname settings/etc/hosts:hostname IP Address correspondence1. View Host NameIt can be viewed through hostname, or through uname-n.2. Temporarily modify host nameCommand
Many applications will involve FQDNsWhat is the difference between a fqnd and a host that the salt gets to be different?The FQDNYou can ' t change the FQDN (as returned by hostname--fqdn) or the DNS domain name (as returned by DnsDomainName) with
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
/etc/resolv.confThe file is a configuration file for DNS domain name resolution, and its format is simple, with each line beginning with a keyword followed by configuration parameters.There are four key words in resolv.conf, namely:NameServer
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.