当前位置:网站首页>什么是局域网域名?如何解析?
什么是局域网域名?如何解析?
2022-07-07 10:01:00 【聚名网】
什么是局域网和局域网域名?据了解局域网是指局部地区形成的一个区域网络,其特点就是分布地区范围有限,是一种私有网络。
而局域网域名是每个局域网内部网络地址,比如将192.168.1.123这个局域网IP配置到一个虚拟域名上面,如123.com,通过hosts文件可以添加相应规则。这样,我们可以在局域网内访问123.com,仅在局域网内有效。
局域网域名,可以使用任意一个域名地址,比如abc、qq、Baidu等都可以,因为仅能在局域网使用,不会影响到外部真实域名。
如何解析局域网域名?
1、正常申请域名,正常做解析就可以。 国际域名是支持解析到如192.168.1.100这样的内网IP的。
这种情况在公网电脑会出现无法访问, 因为公网上没有192.168.1.100
但是在内网电脑是可以正常打开192.168.1.100。缺点,需要购买域名,有一定成本。
2、通过路由器Hosts功能解析
如果路由器支持Hosts功能,可以在路由器上设置将某域名解析到192.168.1.100. 无须购买域名,甚至可以把百度解析到192.168.1.100
这种有情况有效范围仅限内网主机, 貌似达到你的要求了。缺点:内网电脑需要通过DHCP获取IP。 如自定义过DNS,解析无效。需要路由器功能支持。
3、修改每台电脑Hosts文件以达到解析目的。缺点:每台都要设置,比较麻烦, 容易被杀毒软件误报拦截。
边栏推荐
- 聊聊SOC启动(六)uboot启动流程二
- [shortest circuit] acwing 1127 Sweet butter (heap optimized dijsktra or SPFA)
- 软件内部的定时炸弹:0-Day Log4Shell只是冰山一角
- 18 basic introduction to divider separator component of fleet tutorial (tutorial includes source code)
- Easyui学习整理笔记
- Cmu15445 (fall 2019) project 2 - hash table details
- QT | multiple windows share a prompt box class
- [filter tracking] comparison between EKF and UKF based on MATLAB extended Kalman filter [including Matlab source code 1933]
- [filter tracking] strapdown inertial navigation pure inertial navigation solution matlab implementation
- Half of the people don't know the difference between for and foreach???
猜你喜欢
How much do you know about excel formula?
Excel公式知多少?
Tsinghua Yaoban programmers, online marriage was scolded?
浙江大学周亚金:“又破又立”的顶尖安全学者,好奇心驱动的行动派
相机标定(2): 单目相机标定总结
Summed up 200 Classic machine learning interview questions (with reference answers)
【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
SwiftUI Swift 内功之如何在 Swift 中进行自动三角函数计算
[extraction des caractéristiques de texture] extraction des caractéristiques de texture de l'image LBP basée sur le mode binaire local de Matlab [y compris le code source de Matlab 1931]
人大金仓受邀参加《航天七〇六“我与航天电脑有约”全国合作伙伴大会》
随机推荐
SwiftUI 教程之如何在 2 秒内实现自动滚动功能
How to add aplayer music player in blog
超标量处理器设计 姚永斌 第10章 指令提交 摘录
powershell cs-UTF-16LE编码上线
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
.NET MAUI 性能提升
《论文阅读》Neural Approaches to Conversational AI(1)
SwiftUI Swift 内功之如何在 Swift 中进行自动三角函数计算
从工具升级为解决方案,有赞的新站位指向新价值
Common SQL statement collation: MySQL
[shortest circuit] acwing 1127 Sweet butter (heap optimized dijsktra or SPFA)
Various uses of vim are very practical. I learned and summarized them in my work
Superscalar processor design yaoyongbin Chapter 9 instruction execution excerpt
Electron adding SQLite database
Test the foundation of development, and teach you to prepare for a fully functional web platform environment
Some opinions and code implementation of Siou loss: more powerful learning for bounding box regression zhora gevorgyan
Le Cluster kubernets en cours d'exécution veut ajuster l'adresse du segment réseau du pod
Fleet tutorial 14 basic introduction to listtile (tutorial includes source code)
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
Complete collection of common error handling in MySQL installation