w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
VirtualBox guest cannot resolve host's name, but git can

The interesting thing amongst the response from nslookup is your nameserver, which appears to be the Mint box itself:

Server:     127.0.1.1
Address:    127.0.1.1#53

On my (admittedly non-Mint) VirtualBox, also in bridged mode, this is what my nameserver info looks like:

Server:     192.168.1.1
Address:    192.168.1.1#53

...which is what you'd expect if your VirtualBox is connecting to the wider network.

It seems likely that you're using dnsmasq, which may be used for speedier DNS resolution. But it also may be mis-configured, and thus the source of your nslookup failure. My guess is that git works because it relies on ssh, which may not use system DNS at all.

What do you get when you run cat /etc/resolv.conf?





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.