Accessing VPN host by name from VirtualBox guest

user105352

I have an Ubuntu guest running under VirtualBox on a W10 host with a VPN. I have set up both a host-only adapter and a NAT adapter as recommended in other answers here, and everything works perfectly. The only problem is from the guest I cannot access hosts on the VPN network by name (IP addresses are fine). For instance, the name foo.bar.local exists on the VPN network, but is not accessible from the guest (ping gives "unknown host"). Any straightforward solution?

Cole

That's because the guest isn't making contact with a DNS server that's on the VPN network. Only way to fix this would be to run a DNS server inside the VPN network and then edit the guest network DNS settings to also include the IP of the DNS server. Make sure to only add this DNS server, don't make it the only one or unless you properly configure everything in the DNS server, the guest won't see the outside world.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Accessing VirtualBox guest via VPN

From Dev

Accessing virtualbox guest from LAN

From Dev

Windows host with SSTP VPN, VirtualBox guest cannot access VPN resources

From Dev

Accessing Ubuntu guest (VirtualBox) node.js server from Windows host

From Dev

Setting up networking on Virtualbox Guest to access Host VPN

From Dev

VirtualBox - guest Ubuntu loses DNS when host connects to VPN

From Dev

VirtualBox guest OS accessing local server on host OS

From Dev

Use VirtualBox to access site on host from guest?

From Dev

Connect to the host machine from a VirtualBox guest OS?

From Dev

Access Virtualbox guest from computer that is NOT host

From Dev

VirtualBox Host ssh to Guest

From Dev

Accessing VirtualBox localhost from host machine

From Dev

virtualbox guest os through vpn

From Dev

Is there danger in accessing a third partition from my virtualbox guest installed on a partition

From Dev

Use Host VPN in Guest VM

From Dev

How to copy & paste from Ubuntu VirtualBox guest to Windows host?

From Java

Share folders from the host Mac OS to a guest Linux system in VirtualBox

From Dev

Virtualbox: Mount a shared folder in Guest FreeBSD from Host Ubuntu

From Dev

Virtualbox: Mount a shared folder in Guest FreeBSD from Host Ubuntu

From Dev

Using Samba to share a folder from a Linux guest with a Windows host in VirtualBox

From Dev

How to start script in VirtualBox Linux guest from Windows host?

From Dev

How to copy & paste from Ubuntu VirtualBox guest to Windows host?

From Dev

Troubleshoot VirtualBox Linux Ubuntu guest access from Windows host

From Dev

Connecting to VirtualBox guest (ubuntu) from host (osx) via NAT?

From Dev

VirtualBox: get access to command prompt of Windows host from Linux guest

From Dev

SSH to the Ubuntu host machine from a Ubuntu VirtualBox guest?

From Dev

Run commands on an Ubuntu guest in VirtualBox VM from Windows host

From Dev

How to fix/setup routing from host to guest on VirtualBox?

From Dev

Can not ping from guest (Red Hat) to host on VirtualBox

Related Related

  1. 1

    Accessing VirtualBox guest via VPN

  2. 2

    Accessing virtualbox guest from LAN

  3. 3

    Windows host with SSTP VPN, VirtualBox guest cannot access VPN resources

  4. 4

    Accessing Ubuntu guest (VirtualBox) node.js server from Windows host

  5. 5

    Setting up networking on Virtualbox Guest to access Host VPN

  6. 6

    VirtualBox - guest Ubuntu loses DNS when host connects to VPN

  7. 7

    VirtualBox guest OS accessing local server on host OS

  8. 8

    Use VirtualBox to access site on host from guest?

  9. 9

    Connect to the host machine from a VirtualBox guest OS?

  10. 10

    Access Virtualbox guest from computer that is NOT host

  11. 11

    VirtualBox Host ssh to Guest

  12. 12

    Accessing VirtualBox localhost from host machine

  13. 13

    virtualbox guest os through vpn

  14. 14

    Is there danger in accessing a third partition from my virtualbox guest installed on a partition

  15. 15

    Use Host VPN in Guest VM

  16. 16

    How to copy & paste from Ubuntu VirtualBox guest to Windows host?

  17. 17

    Share folders from the host Mac OS to a guest Linux system in VirtualBox

  18. 18

    Virtualbox: Mount a shared folder in Guest FreeBSD from Host Ubuntu

  19. 19

    Virtualbox: Mount a shared folder in Guest FreeBSD from Host Ubuntu

  20. 20

    Using Samba to share a folder from a Linux guest with a Windows host in VirtualBox

  21. 21

    How to start script in VirtualBox Linux guest from Windows host?

  22. 22

    How to copy & paste from Ubuntu VirtualBox guest to Windows host?

  23. 23

    Troubleshoot VirtualBox Linux Ubuntu guest access from Windows host

  24. 24

    Connecting to VirtualBox guest (ubuntu) from host (osx) via NAT?

  25. 25

    VirtualBox: get access to command prompt of Windows host from Linux guest

  26. 26

    SSH to the Ubuntu host machine from a Ubuntu VirtualBox guest?

  27. 27

    Run commands on an Ubuntu guest in VirtualBox VM from Windows host

  28. 28

    How to fix/setup routing from host to guest on VirtualBox?

  29. 29

    Can not ping from guest (Red Hat) to host on VirtualBox

HotTag

Archive