【发布时间】:2016-03-24 02:18:50
【问题描述】:
我有一个装有 Windows 10 操作系统的主机系统。
我安装了一个 Virtualbox,并将一个 Ubuntu 服务器 15.10 作为来宾系统。
我的 Virtualbox 上有一个 Apache。
我的主机通过路由器连接到互联网。
通常我主机上的 LAN 有这样的 IP 地址:
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::687b:c091:96f:731c%7
IPv4 Address. . . . . . . . . . . : 172.16.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.1.1
我的virtualbox通过网桥有这个ip:172.16.1.101
当我想访问虚拟框中的网页时,输入就足够了
172.16.1.101:8080
在浏览器中,然后我在主机中看到我的 index.html 页面。
我想通过example.lcl 之类的假域名访问此地址
我不想通过c:\Windows\System32\Drivers\etc\hosts 文件这样做。
我想使用一些本地 dns 服务器,例如 Bind 或 Dual DHCP DNS Server,但我不知道该怎么做。
由于我的主机操作系统从路由器动态获取其 ip,我无法设置 Dual DHCP DNS Server 来监听我的本地请求以将一些假域映射到该目标 ip 地址。
任何帮助将不胜感激。
提前致谢。
【问题讨论】:
标签: dns virtualbox