我在 VirtualBox 中有 Ubuntu 来宾操作系统,使用 eth0 的默认 NAT。
除了在家中使用办公室 VPN 时,在办公室和家里都可以正常工作。
当主机操作系统 (Windows 7) 连接到 VPN 时,DNS 查找在 Virtualbox 来宾中不起作用。DNS 查找在主机上很好。在 Virtualbox 中,我可以在 VPN 内部和外部直接 ping IP,因此这不是连接问题。
它看起来像Ubuntu客户为localhost使用的DNS切入点,根据/etc/resolv.conf
和nslookup
。所以看起来本地的东西然后分派到其他底层DNS。
我该如何解决这个问题?