当前位置:网站首页>什么是局域网域名?如何解析?
什么是局域网域名?如何解析?
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文件以达到解析目的。缺点:每台都要设置,比较麻烦, 容易被杀毒软件误报拦截。
边栏推荐
- R language uses the quantile function to calculate the quantile of the score value (20%, 40%, 60%, 80%), uses the logical operator to encode the corresponding quantile interval (quantile) into the cla
- STM32 entry development write DS18B20 temperature sensor driver (read ambient temperature, support cascade)
- STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
- Design intelligent weighing system based on Huawei cloud IOT (STM32)
- 一度辍学的数学差生,获得今年菲尔兹奖
- In SQL, I want to set foreign keys. Why is this problem
- Internet Protocol
- Superscalar processor design yaoyongbin Chapter 8 instruction emission excerpt
- Detailed explanation of debezium architecture of debezium synchronization
- Test the foundation of development, and teach you to prepare for a fully functional web platform environment
猜你喜欢
![108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]](/img/c0/8a7b52c46eadd27cf4784ab2f32002.png)
108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]

What is cloud computing?

Stm32f1 and stm32subeide programming example -max7219 drives 8-bit 7-segment nixie tube (based on SPI)

Cmu15445 (fall 2019) project 2 - hash table details

聊聊SOC启动(六)uboot启动流程二

Talk about SOC startup (VII) uboot startup process III

The road to success in R & D efficiency of 1000 person Internet companies

Talk about SOC startup (VI) uboot startup process II

相机标定(1): 单目相机标定及张正友标定基本原理

Technology sharing | packet capturing analysis TCP protocol
随机推荐
Superscalar processor design yaoyongbin Chapter 8 instruction emission excerpt
本地navicat连接liunx下的oracle报权限不足
Half of the people don't know the difference between for and foreach???
How to add aplayer music player in blog
Enclosed please find. Net Maui's latest learning resources
一度辍学的数学差生,获得今年菲尔兹奖
Talk about SOC startup (IX) adding a new board to uboot
【系统设计】指标监控和告警系统
108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]
千人规模互联网公司研发效能成功之路
《通信软件开发与应用》课程结业报告
STM32 entry development NEC infrared protocol decoding (ultra low cost wireless transmission scheme)
Various uses of vim are very practical. I learned and summarized them in my work
R語言使用magick包的image_mosaic函數和image_flatten函數把多張圖片堆疊在一起形成堆疊組合圖像(Stack layers on top of each other)
【全栈计划 —— 编程语言之C#】基础入门知识一文懂
深度学习秋招面试题集锦(一)
R语言可视化分面图、假设检验、多变量分组t检验、可视化多变量分组分面箱图(faceting boxplot)并添加显著性水平、添加抖动数据点(jitter points)
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
Excel公式知多少?
STM32 entry development write DS18B20 temperature sensor driver (read ambient temperature, support cascade)