Multiple virtual hosts - This site can’t be reached Vagrant/Virtualbox

I'm having problem setting multiple virtual domains. Tried so many solutions, nothing worked.
I'm just missing something but have no clue what. It's been frustrating journey say the least.
I have set up 2 virtual boxes: one for Laravel environment and one for Magento environment.
They both have the same problem, domain doesn't work. Here is for magento:

Folder: magento

Virtual domain: magento.box

magento.conf

ip: 192.168.10.10

When I enter in browser 192.168.10.10 it runs fine,
but if I enter magento.box it states:

This site can’t be reached
magento.box’s server DNS address could not be found.

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 www.magento.box

Answers

To be able to enter magento.box or any other LOCAL domain (eg. not available on the external internet) you need to modify the "hosts" file on the machine running the browser. In this case, your host (not inside your vagrant machine). The process varies depending on if you're running Windows/OSX/Linux/etc., but here is a quick overview from Wikipedia.

The three you probably care about:

Windows

%SystemRoot%\System32\drivers\etc\hosts

OSX

/etc/hosts

Linux

/etc/hosts

In that file, you will need to add the following line to let your OS know that magento.box means look at 192.168.10.10:

192.168.10.10 magento.box

Note you may need to restart in order for this to take effect. Also note that you will need admin/sudo privileges in order to edit this file.