当前位置:网站首页>域名映射到指定IP
域名映射到指定IP
2022-06-12 08:42:00 【junxuezheng】
在某些情况,我们希望通过域名访问ip,可以通过以下方式解决。
1、ip和域名关系
参考我的另外一篇博客:ip、DNS、域名、URL、hosts
2、如何实现ip和域名绑定
2.1、方案:修改hosts
还有其他的方案,比如使用开源工具:SwitchHosts,在此不做介绍,大家自行百度具体用法。
2.2、hosts位置
hosts件是在“c:\windows\system32\drivers\etc”
2.3、修改hosts
127.0.0.1 kinglog.com

2.4、验证是否设置成功
- ping kinglog.com

3、找不到hosts文件
- 3.1、hosts文件被隐藏了

- 3.2、被误删了
step1、在目录“C:\WINDOWS\system32\drivers\etc\”新建host.txt
step1、把host.txt重命名为host,点击“开始–运行"
ren C:\WINDOWS\system32\drivers\etc\hosts.txt C:\WINDOWS\system32\drivers\etc\hosts
边栏推荐
- Where does the driving force of MES system come from? What problems should be paid attention to in model selection?
- Never use MES as a tool, or you will miss the most important thing
- 处理异常数据
- Calling stored procedures in mysql, definition of variables,
- Code generation tool Autocode for XML Publishing
- Specify 404 and 500 error reporting pages.
- MSTP的配置与原理
- Background fixing effect
- 【动态内存管理】malloc&calloc和realloc和笔试题和柔性数组
- Error: ER_ NOT_ SUPPORTED_ AUTH_ MODE: Client does not support authentication protocol requested ... ...
猜你喜欢

JVM学习笔记:垃圾回收机制

Production scheduling status of manufacturing enterprises and solutions of APS system

(p17-p18) define the basic type and function pointer alias by using, and define the alias for the template by using and typedef

FDA reviewers say Moderna covid vaccine is safe and effective for children under 5 years of age

Priority issues

Close asymmetric key

Engineers learn music theory (II) scale and tendency

《MATLAB 神经网络43个案例分析》:第8章 GRNN网络的预测----基于广义回归神经网络的货运量预测

Loading font component loading effect
![[essence] explain in detail the memory management mechanism in QT](/img/7d/0d83158c6b0574dd3b3547b47af67e.jpg)
[essence] explain in detail the memory management mechanism in QT
随机推荐
(p15-p16) optimization of the right angle bracket of the template and the default template parameters of the function template
报错:文件夹在另一个程序中打开无法删除怎么办
Shell基本语法--数组
Record the first step pit of date type
Difference between binary GB and gib
[advanced pointer I] character array & array pointer & pointer array
Handling abnormal data
UMI packaging and subcontracting, and compressing to gzip
[dynamic memory management] malloc & calloc and realloc and written test questions and flexible array
Gets the number of occurrences of a character in a string
FDA审查人员称Moderna COVID疫苗对5岁以下儿童安全有效
2022.6.11-----leetcode.926
Ankerui fire emergency lighting and evacuation indication system
Lock mechanism in MySQL
Background position - exact units
Database foundation -- normalization and relational schema
了结非对称密钥
Webrtc series - mobile terminal hardware coding supports simulcast
Audio and video related links
判断对象是否为空