内网访问内网网站域名地址的解决办法
2010-11-25 17:20
302 查看
单位的互联网通过联想网御上10M光纤。在局域网内架设了一Web站点,并申请了域名地址。奇怪的是,在公网上访问域名地址没有什么问题,但在单位的局域网上访问域名地址就打不开网站了。记得以前在哪里看到过一篇文章,说增加hosts的IP地址对应域名地址的记录可以快速解析域名。修改C:\WINDOWS\system32\drivers\etc下的hosts文件,文件内容如下:
# Copyright (c) 1993-1999 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
127.0.0.1 localhost
192.168.1.240 XXXX.XXXXXX.com
加入上面红色的那一行,就可实现在内网以域名方式访问内网网站。
当然这只是临时的解决办法,要彻底的解决这个问题,还必须修改网御上的nat配置。详情请见http://wenku.baidu.com/view/fe71d62458fb770bf78a553a.html。
本文出自 “追梦人” 博客,请务必保留此出处http://wuhaoshu.blog.51cto.com/845270/432412
# Copyright (c) 1993-1999 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
127.0.0.1 localhost
192.168.1.240 XXXX.XXXXXX.com
加入上面红色的那一行,就可实现在内网以域名方式访问内网网站。
当然这只是临时的解决办法,要彻底的解决这个问题,还必须修改网御上的nat配置。详情请见http://wenku.baidu.com/view/fe71d62458fb770bf78a553a.html。
本文出自 “追梦人” 博客,请务必保留此出处http://wuhaoshu.blog.51cto.com/845270/432412
相关文章推荐
- IIS发布的网站,内网和外网不能访问的解决办法
- (IIS)网站本地放置,域名虚拟,权限设置,局域网访问网站图片无法显示之解决办法
- IPsec配置,连接成功后无法访问网站的解决办法, 以及本人参考配置的地址。
- ubuntu无线连接使用ip可以访问网站,但是使用域名却不可以访问的解决办法
- 火狐无法访问本机IIS部署的网站,弹出:此地址使用了一个通常用于网络浏览以外目的的端口.出于安全原因,Firefox 取消了该请求 的解决办法
- IIS发布的网站,内网和外网不能访问的解决办法
- 关于pix.asa防火墙内网通过域名访问内部服务器的解决办法
- 分离的DNS服务及其部署(解决外网可域名访问,内网不能域名访问问题)
- “域名访问提示"解决办法
- XP系统中IIS访问无法显示网页,目前访问网站的用户过多。终极解决办法
- 解决为什么内网不能用公网地址访问内网服务器
- 【火狐访问所有HTTPS网站显示连接不安全】【解决办法!】
- apache提示网站目录或文件没有权限访问的解决办法
- 阿里云服务器重启后网站无法访问解决办法
- IIS部署asp.net报404错误 iis与Framework安装顺序造成无法访问网站的解决办法
- 访问jira网站中已解决问题链接时跳转到另一IP的解决办法
- IIS中网站弹出登陆框之匿名访问权限问题解决办法
- XP系统中IIS访问无法显示网页,目前访问网站的用户过多。终极解决办法
- [Linux] 无法访问国外网站,完成epel源安装的解决办法--待续
- XP系统中IIS访问无法显示网页,目前访问网站的用户过多。终极解决办法