I know there're several post about this and have gone through all of them, but can't really understand how to solve it.
Problem I'm connected to my network but not to the internet. If you do a ping you get this
ping: www.google.com: Name or service not known
Try this answer and not working: DNS_PROBE_FINISHED_BAD_CONFIG error in Ubuntu 14.04
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf`
sudo rm /etc/resolv.conf
sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf
sudo resolvconf -u
Try using
sudo dpkg-reconfigure resolvconf
and getting this error
resolvconf-pull-resolved.service is a disabled or a static unit, not starting it.
resolvconf-pull-resolved.service is a disabled or a static unit, not starting it.
The only possible solution I found is this one, but I think is a temporary answer: https://askubuntu.com/a/46036/83345
Have to edit the /etc/resolv.conf and add manually the DNS
sudo nano /etc/resolv.conf
But I'm afraid the changes will overwritten after the reboot
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 8.8.8.8
So the question will be, how do I add these DNS permanently, if I reboot this changes will get lost?
Content of /etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
#I add these manually, base in one of the answers but
#getting this error
#sudo netplan apply --debug -Error in network definition: unknown key #'nameservers'nameservers:
nameservers:
[8.8.8.8, 208.67.222.222,208.67.220.220]
/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
/etc/resolv.conf
# Generated by Connection Manager
nameserver ::1
nameserver 127.0.0.1
cat /etc/netplan/*.yaml
andcat /etc/network/interfaces
andcat /etc/resolv.conf
. – heynnema Jun 06 '19 at 16:06