DNS queries fail, while IP addresses work, after upgrade from Ubuntu 16.10 to 17.04 in VirtualBox. Applied updates to 16.10 before upgrading to 17.04.
i.e. sudo apt update && sudo apt full-upgrade except I did the update and upgrade via gui.
I had the same problem after upgrading. Though I didn't investigate the issue too much thus have no deep undestanding of the root cause, in my env it was fixed by editing system config file /etc/NetworkManager/NetworkManager.conf
and adding the following entry to the global section: dns=dnsmasq
.
cat /etc/resolv.conf
from host and VM (presuming VM is also *nix)