DNS names in guest Win 7 32 bit not visible

Discussions related to using VirtualBox on Mac OS X hosts.

DNS names in guest Win 7 32 bit not visible

Postby Michal09 » 1. Dec 2021, 13:30

Hello,

I have searched the net to find a solution to not seeing DNS names from a guest OS, which the host can see, but could not find. Will someone here know?

I have
- host MacOS Catalina 10.15.7
- VirtualBox 6.1.30 including Extension Pack
- guest Win 7 32 bit including Guest Additions

Running on:
- MacBook Pro (late 2015)
- 8 GB RAM
- 2-core i5 2,7 Ghz

What does not work in the guest OS is ping on DNS names of company servers, I can only ping the IP addresses. I can look up the IP address in the host Terminal, when I ping a DNS name. So the host has the DNS names. But not the guest.
Same thing in Win Explorer - I can access IP address, but not the DNS Name. I can go about pinging, but not when DNS names are part of links or called by programs.
I can access internet from the guest browsers.

My IP Config in Win:

Windows IP Configuration

Host Name . . . . . . . . . . . . : MICHAL-PC
Primary Dns Suffix . . . . . . . : intra.ditec.sk
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : intra.ditec.sk

Ethernet adapter Lokálne pripojenie:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
Physical Address. . . . . . . . . : 08-00-27-50-8D-B3
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::6981:9b59:7b02:284a%10(Preferred)
IPv4 Address. . . . . . . . . . . : 10.0.2.15(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 1. decembra 2021 10:08:36
Lease Expires . . . . . . . . . . : 2. decembra 2021 10:08:48
Default Gateway . . . . . . . . . : 10.0.2.2
DHCP Server . . . . . . . . . . . : 10.0.2.2
DHCPv6 IAID . . . . . . . . . . . : 235405351
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-FD-55-BA-08-00-27-50-8D-B3

DNS Servers . . . . . . . . . . . : 192.168.8.1
192.168.8.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{5AFD62A0-C659-4CCA-9F3B-F2303BAA8632}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Thanks a lot,

Michal
Michal09
 
Posts: 2
Joined: 1. Dec 2021, 12:25

Re: DNS names in guest Win 7 32 bit not visible

Postby scottgus1 » 1. Dec 2021, 17:53

Michal09 wrote:IPv4 Address. . . . . . . . . . . : 10.0.2.15(Preferred)

Except by great coincidence, this IP address means the VM's network is on NAT.

Either try Bridged (noting though that Bridged does not always work on Wi-Fi) or try this command on the host while continuing to use NAT:

VBoxManage modifyvm VM-name --natdnsproxy1 on

or

VBoxManage modifyvm <VM-name> --natdnshostresolver1 on

for the command background see https://www.virtualbox.org/manual/ch09.html#changenat
scottgus1
Site Moderator
 
Posts: 16555
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: DNS names in guest Win 7 32 bit not visible

Postby Michal09 » 6. Dec 2021, 17:11

Hello and thank you,

yes, I use NAT and Bridged does not help as I am on wifi. But the second command of the two worked for me, although it looks like it has slowed down the performance somewhat. But this solved the problem, thank you very much for help.

Best regards,

Michal
Michal09
 
Posts: 2
Joined: 1. Dec 2021, 12:25

Re: DNS names in guest Win 7 32 bit not visible

Postby scottgus1 » 8. Dec 2021, 15:34

Great! Glad you're up and running.
scottgus1
Site Moderator
 
Posts: 16555
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux


Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 11 guests