echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf >/dev/null
echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null
sudo systemctl enable resolvconfsudo systemctl start resolvconf
sudo /etc/init.d/networking restart