I have configured the Ubuntu server (guest) with NAT adapter and configured it in /etc/network/interfaces like below:
auto enp0s3
iface enp0s3 inet dhcp
But doesn't connect to internet:
ping www.google.com
ping: unknown host www.google.com
The host machine is a Windows7 with the firewall disabled. How can I solve this problem?
ping -c5 66.102.9.147
(IP from google) it works. I have problems with DNS. Because I can't do anapt-get update
. I have been following this https://askubuntu.com/questions/91543/apt-get-update-fails-to-fetch-files-temporary-failure-resolving-error – Albert Lazaro de Lara Mar 07 '18 at 17:56/etc/resolv.conf
file. Remove the lines from/etc/network/interfaces
that deals with the enp0s3. Reboot the VM and let it use the DNS from the host OS. Are you looking to access your server from outside the VM / Host computer? – Terrance Mar 07 '18 at 18:19