Hostname configuration/etc/sysconfig/network hostname can not be changed to the form of the domain nameShell>vim/etc/sysconfig/networkNetworking=yesNetworking_ipv6=noHostname=mail1.gz.comLocal domain name resolution configuration is often used for testing, of course, in a sy
1. Modify the/etc/sysconfig/network configuration fileVi/etc/sysconfig/networkModify hostnameHostname=new-hostname.domainnameMy network changed to:Hostname=redhat5.xiaomu.com.2. Modify the local domain name resolution file/etc/hosts, so that the native application can resolve the new host name.Vi/etc/hostsWill 127.0.0.1 Localhost.localdomain localhostInstead: 127.0.0.1 new-hostname.domainname new-
1. Modify the/etc/sysconfig/network configuration fileVi/etc/sysconfig/networkModify hostnameHostname=new-hostname.domainnameMy network changed to:Hostname=redhat5.xiaomu.com.2. Modify the local domain name resolution file/etc/hosts, so that the native application can resolve the new host name.Vi/etc/hostsWill 127.0.0.1 Localhost.localdomain localhostInstead: 127.0.0.1 new-hostname.domainname new-
A recordThe A (Address) record is used to specify the IP address record corresponding to the Host Name (or domain name. You can direct the website server under this domain name to your web server. You can also set a subdomain name
1. The phenomenon of problems
Host name (hostname) is displayed as unknown
2. How to Solve
My environment is for unknown, one is not set host name, two are using DHCP assigned IP mode
The workaround steps are described below:
First procedure: Modifying the hostname configuration file and creating a new node file
V
1. query the IP address of the domain name. Query by using network tools such as ping or ip138.com on the local machine.2. Use the IP address direction query tool to obtain the list of domain names bound to this IP address.Chinese keywords:Domain name Direction QueryOrIP reverse query
A record
Quote:The A (Address) record is used to specify the IP address record corresponding to the Host Name (or domain name. You can direct the website server under this domain name to your web server. You can also set a subdomain na
Linux uses the hostname command to modify the host name.
An example of modifying a hostname in Linux.
Run directly hostname can view the current host name, to view the hostname of other command parameters, run
Apacherewrite redirection rules, rewrite regular expressions, second-level domain names point to first-level domain names, multiple domain names point to one domain name, IP to domain name
The hostname of the Linux command I used-show or set host nameThis article link: http://codingstandards.iteye.com/blog/804648 (reproduced please specify the source)Description of UseThe hostname command can be used to display or set the hostname (show or set the system's host name). The environment variable
, which gets the name of the system each time it is started by reading the file.Iii. about/etc/hostsNetwork host name, you can redirect the IP that the domain name points to by modifying the Hosts file. Before this method can be viewed outside the colorful, as if these two years, haha, you understand.[Plain]View PlainC
. It is the host name automatically initialized from/etc/hostname at startup. The "transient" host name is a temporary host name allocated during system operation, such as through DHCP or mDNS server. Both the static host name and the transient host
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"#
, although modifying the/etc/sysconfig/network configuration file (this file still exists, but it is empty) may take effect, however, you have to consider whether some Linux software uses the source file or the environment variable $ HOSTNAME.
In CentOS or RHEL, there are three defined host names: a, static (static), B, transient (transient), and c, flexible (pretty ). The "static" host name is also called
When the Inux is installed, its default hostname is localhost.
It takes 3 steps to modify the Linux host name:
1. Modify the current host name using hostname.Hostname new-hostname
2. Modify the/etc/sysconfig/network configuration file so that the new hostname is used the
Start Guide for domain name parking services
What is the domain name Parking service (Domains Parking services)?
If you have an ideal domain name or a domain
Linux host name hostname setting in Linux is troublesome, and even modifying the host name is no exception. After Linux is installed, its default host name is localhost. Three steps are required to modify the Linux host name. Use hostnam
The domain name proxy platform handles the domain name transfer the concrete operation as follows:
Use Passport and Password login Oray official website, in turn into "My console"-"Product Management"-"Domain name management", in
Summary: Apache support Chinese domain name binding, Apache support Chinese domain name binding, teach you how to let Apache support Chinese domain name binding , according to my actual experience, how to let Apache support Chines
Centos6
Two places need to be modified: One is/etc/sysconfig/network, the other is/etc/hosts, and modifying any one of these will cause the system to boot abnormally. First switch to root user.
/etc/sysconfig/networkOpen the file, which has a line of ' Hostname=localhost.localdomain, modify localhost.localdomain for your host name.
/etc/hostsOpening the file, there will be a row 127.0.0.1 localhost.local
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.