如何使用 Virtualbox 在 windows 上配置双 DHCP DNS 服务器?
How to config Dual DHCP DNS Server on windows with Virtualbox?
我有一个主机系统 Windows 10 OS。
我安装了一个 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
,但我不知道该怎么做。
当我的主机 OS 从路由器动态获取其 ip 时,我无法设置 Dual DHCP DNS Server
来侦听我的本地请求以将一些虚假域映射到该目标 ip 地址。
如有任何帮助,我们将不胜感激。
提前致谢。
使用 Acrylic DNS 代理。您可以使用通配符,也可以使用它进行动态回答。此处有更多详细信息:
我有一个主机系统 Windows 10 OS。
我安装了一个 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
,但我不知道该怎么做。
当我的主机 OS 从路由器动态获取其 ip 时,我无法设置 Dual DHCP DNS Server
来侦听我的本地请求以将一些虚假域映射到该目标 ip 地址。
如有任何帮助,我们将不胜感激。
提前致谢。
使用 Acrylic DNS 代理。您可以使用通配符,也可以使用它进行动态回答。此处有更多详细信息: