Page 1 of 1

New to VirtualBox DNS resolve to Mysql

Posted: 16. Jul 2020, 02:05
by HiJackJacker
Afternoon all,

I am really new to the Virtualbox world. My current setup is VirtualBox is installed on a windows 2019 running a single windows 10 client in bridge mode using the same network connection. The host currently has DNS,DHCP services and a MySQL server installed. Both the client and host can nslookup the hostname and resolves just fine. File sharing works as well. But one thing that quit working was connecting to the MySQL server by name. I can connect by IP address but after installing Virtualbox I lost that ability. I did confirm it is VirtualBox since I uninstalled the software and resolution came right back. This is not a big deal or a deal break for me but it would be nice to have.

What would be causing this to lose only the name lookup on the host to MySQL and nothing else? I could expect other things not resolving but all tests show to be fine.

Thanks in advance for any information or guidance.

Re: New to VirtualBox DNS resolve to Mysql

Posted: 16. Jul 2020, 16:44
by scottgus1
If I gather correctly, a host program that existed before you installed Virtualbox could find the host's MySQL databases through the computer's name and IP address. But after Virtualbox was installed the ability to connect via computer name disappeared, while connection via IP address is still available. Uninstalling and reinstalling Virtualbox toggles this ability. I gather that running the guest does not influence this ability, but the mere presence of Virtualbox is the toggling factor.

As a test, uninstall Virtualbox and reinstall without using the Bridged potion of the installation. Your guest's Bridged connection will not work, just ignore this for now. See if you can access MySQL via computer name with no-Bridged Virtualbox installed.