Considerations for binding domain names to host files

Source: Internet
Author: User

If a domain name is bound multiple times in the hosts file, the domain name is the first valid domain name to be bound. Other bindings are invalid.

Eg:

The hosts file contains the following lines of content:

127.0.0.1 chinapay.com.cn 127.0.0.1 beta.chinapay.com. cn192.168.0.110 chinapay.com. CNS

The domain name binding in the third line is invalid.

You can bind one IP address to multiple domain names in hosts.

Eg:

127.0.0.1 chinapay.com.cn beta.chinapay.com.cn chinapay.com.cn

Note: If the hosts file is modified, sometimes ie cannot be detected. You need to re-open IE to use the bound domain name for access.

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.