Ubuntu 18.04 Lost Internet in Parallels

Ubuntu has changed how things have worked, and on the company network, you will need to set what DNS server is being used.

There is a settings place for this now, not tested yet:

Refer: https://vitux.com/how-to-change-dns-settings-in-ubuntu/

Refer: https://askubuntu.com/questions/1021884/no-internet-after-upgrade-from-16-04-to-18-04

Quick Test

If the /etc/resolv.conf is empty but you can ping 8.8.8.8, you can use the following as a quick test/patch, but you will need to use the following section for a complete fix.

$ echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Permanent Fix

HALW DNS at time of writing was: 10.211.55.1

Use the following command to determine current IP address:
$ nmcli dev show | grep 'IP4.DNS'

Ubuntu might change completely how this works in the future, you can review this article here: https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/

If the /etc/resolvconf/resolv.conf.d/head is empty then you have to repeat the command above after every restart except you do this:

$ sudo apt install resolvconf
$ echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null
$ echo "nameserver 10.211.55.1" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null
$ echo "nameserver 8.8.4.4" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null

Then you have to restart the resolvconf and the networking

$ sudo systemctl enable resolvconf
$ sudo systemctl start resolvconf
$ sudo /etc/init.d/networking restart

 

Leave a Reply