Linux hostname hostname is always changed to broad principle analysis and recovery

Source: Internet
Author: User

After the IP address is bound, The hostname of Linux I changed back to Localhost.localdomain, after the restart is to become 237.99.135.219.broad.fs.gd.dynamic.163data.com.cn this string of ghosts, 650) this.width=650; "Src=" http://s4.51cto.com/wyfs02/M02/85/FE/wKiom1exqtTSzXcmAAA_2hBghpo337.png-wh_500x0-wm_3-wmp _4-s_977616473.png "title=" 12.png "alt=" Wkiom1exqttszxcmaaa_2hbghpo337.png-wh_50 "/>

After a lot of data found that when the hostname of localhost Localhost.localdomain, Linux will have a DNS reverse parsing process, and the resolution of the domain name to be assigned to hostname

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/85/FE/wKioL1exro_Qe50NAACYBjFQ4d0392.png-wh_500x0-wm_3 -wmp_4-s_4281455514.png "title=" 13.png "alt=" Wkiol1exro_qe50naacybjfq4d0392.png-wh_50 "/>

I do test, will hostname in/etc/sysconfig/network change to other, see if will be changed to that Broad hostname,650) this.width=650; "src="/HTTP// S2.51cto.com/wyfs02/m00/85/fe/wkiom1exry2bnhfhaaamvtqwjmm304.png-wh_500x0-wm_3-wmp_4-s_3484113842.png "Title=" 15.png "alt=" Wkiom1exry2bnhfhaaamvtqwjmm304.png-wh_50 "/>

OK, yes, no problem;

So I'm going to change the hostname= variable in the/etc/rc.sysinit to something else or delete it and try it out.

-_-! Do not dare to kill Delete, just comment out, (has changed the/etc/sysconfig/network hostname to hostname)

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/85/FE/wKioL1extQ-yGXBsAABMtk6ha5U287.png-wh_500x0-wm_3 -wmp_4-s_2492767534.png "title=" 17.png "alt=" Wkiol1extq-ygxbsaabmtk6ha5u287.png-wh_50 "/>

------------

-_-! frightened father, in the start interface card 10 minutes, somehow still go in, hurriedly change back

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/85/FE/wKioL1extS_CSy_VAABLObOeOuc790.png-wh_500x0-wm_3 -wmp_4-s_2109020418.png "title=" 16.png "alt=" Wkiol1exts_csy_vaabloboeouc790.png-wh_50 "/>

But after the change, it still became the Read-only file system;

Only emergency will mount-o REMOUNT,RW/after immediately change back, finish, normal

------------

Modify/etc/hosts bind IP address domain name to solve this problem

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/85/FF/wKiom1exvo_ztsJ9AAAhfPFTX2I500.png-wh_500x0-wm_3 -wmp_4-s_565705392.png "title=" 19.png "alt=" wkiom1exvo_ztsj9aaahfpftx2i500.png-wh_50 "/>650) this.width=650;" Src= "http://s1.51cto.com/wyfs02/M02/85/FE/wKioL1exvvThFM9BAAAXYRYHfQ4257.png-wh_500x0-wm_3-wmp_4-s_462541049. PNG "title=" Qq20160815210700.png "alt=" Wkiol1exvvthfm9baaaxyryhfq4257.png-wh_50 "/>

Linux hostname hostname is always changed to broad principle analysis and recovery

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.