【问题标题】:How to config Dual DHCP DNS Server on windows with Virtualbox?如何使用 Virtualbox 在 Windows 上配置双 DHCP DNS 服务器?
【发布时间】: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 服务器,例如 BindDual DHCP DNS Server,但我不知道该怎么做。 由于我的主机操作系统从路由器动态获取其 ip,我无法设置 Dual DHCP DNS Server 来监听我的本地请求以将一些假域映射到该目标 ip 地址。

任何帮助将不胜感激。

提前致谢。

【问题讨论】:

    标签: dns virtualbox


    【解决方案1】:

    使用 Acrylic DNS 代理。您可以使用通配符和动态答案。更多细节在这里:

    http://stackoverflow.com/questions/138162/wildcards-in-a-windows-hosts-file
    

    【讨论】:

      猜你喜欢
      • 2014-03-09
      • 1970-01-01
      • 2023-04-05
      • 1970-01-01
      • 1970-01-01
      • 2016-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多