An error occurred while modifying the Host Name of LINUX5.

Source: Internet
Author: User
LINUX5 host name modification exception-general Linux technology-Linux technology and application information. The following is a detailed description. Changed to/etc/sysconfig/network
Change the HOSTNAME to mypc and then back to localhost.
After the host is restarted, the host name becomes bogon.
Hostname: bogon.
It is also bogon with sysctl kernel. hostname.

I can only modify the sysctl. conf file
Kernel. hostname = *** can be modified successfully.

Bashrc,. bashrc,. bash_profile
Rc. local has not been changed, and no bogon-related content can be found.
The hosts file has not been changed.

This is the case now:

1. My host name is automatically set to bogon. Which file will this bogon write in?
In the sysctl. conf file, the kernel. hostname is added after the bogon is displayed. It also has no hostname option.
2. If the hostname is modified in the/etc/sysconfig/network file, the host name is invalid after restart.
In addition to modifying sysctl. conf and adding kernel. name, how can this problem be solved?
3. Why? I also found out on the Internet that the linux host name may be bogon.

Thank you for your answers!

Contact 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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.