【杂】host文件

Copyright © 1993-2009 Microsoft Corp.

This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

This file contains the mappings of IP addresses to host names. Each

entry should be kept on an individual line. The IP address should

be placed in the first column followed by the corresponding host name.

The IP address and the host name should be separated by at least one

space.

Additionally, comments (such as these) may be inserted on individual

lines or following the machine name denoted by a '#' symbol.

For example:

102.54.94.97 rhino.acme.com # source server

38.25.63.10 x.acme.com # x client host

localhost name resolution is handled within DNS itself.

127.0.0.1 localhost

::1 localhost

host文件是一个用来映射IP地址和Host name的规定,为了提高网络域名的解析效率,避免DNS域名解析与返回IP的时间,直接将要访问的域名与其ip地址进行静态的绑定

相关推荐
大侠归来10 分钟前
Docker 部署 Dolibarr:从零开始的完整指南
运维·docker·容器
KING-WU51218 分钟前
Linux GDB 调试实战指南:从编译到断点调试
linux·运维·服务器
傲世仙尊22 分钟前
类和对象中-构造函数与析构函数把初始化清理自动化
java·运维·自动化
七月吃橘子28 分钟前
WSL2+Docker+Ollama,本地部署大模型实践(Qwen1.8b)
运维·docker·容器
影视飓风TIM35 分钟前
Linux 进程信号原理与剖析
linux·运维·服务器
缘友一世1 小时前
开源 Linux截图工具闪构(SnapForge)
linux·运维·ubuntu·开源·截图
iCxhust1 小时前
先想好如何测试:让测试驱动你的程序设计
运维·服务器·软件工程·编程的艺术
Philtell1 小时前
突然连接不上内网服务器的问题
运维·服务器
做运维的阿瑞1 小时前
Docker常见故障全方位排查指南
运维·docker·云原生·容器
木子欢儿2 小时前
Zabbix 7.4 Alpine 版 Docker Compose 部署
android·运维·docker·容器·zabbix