Resolve Guest OS DNS Requests Using etc/hosts
When a virtual machine operating in the shared networking mode sends a DNS request, the request is now resolved also using the macOS etc/hosts file.
For example, if your macOS etc/hosts file contains the following entry:
1.2.3.5 testh
and you start pinging testh in a virtual machine, the guest OS will check the macOS etc/hosts file first and start pinging 1.2.3.5.