Strange Hosts file

Source: Internet
Author: User

It should have happened twice,

The appearance is that the edited/etc/hosts file cannot be used.

Ping host name, no response.

That is, the record is invalid.

It all looks normal, and the first feeling should be a special character.

Vim: Set list, you can see that there is an empty and ^i behind the IP (indicates \ t)

I can't see what's coming.

================

Then delete the "empty", manually fill a space,

Then the problem is solved.

Oh? Md5sum after the results are different oh,

So hexdump-c to see the difference between the two, found that there is a problem in the place of more than a C2 a0

That's 10 binary 194 and 160.

This is the legendary UTF8 space.

Strange Hosts file

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.