Hi,
I've seen similar problems, but not been able to fix the problem permanently yet.
My PC is connected by ethernet to my router, which also serves as DNS.
Since I upgraded to 19.04, more often than not DNS has been broken on startup, but external sites can be pinged by ip adresss.
The problem has persisted after I upgraded to 19.10.
/etc/resolv.conf is empty
My temporary fix is to restart NetworkManager, which seems to regenerate /etc/resolv.conf with
Code:
nameserver 127.0.0.53
search lan
And DNS works from there on, but only until shutdown.
I've tried re-linking /etc/resolv.conf using absolute path ( as suggested in https://www.linode.com/community/que...on-ubuntu-1804 ) to no avail:
Code:
$ sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
$ systemctl restart resolvconf
I've tried advice in https://ubuntuforums.org/showthread.php?t=2403929 but I'm using DHCP, so wasn't sure how much applied. I didn't have anything in /etc/netplan,
but tried creating the /etc/netplan/01-network-manager-all.yaml file as described in that thread, also to no avail.
/etc/netplan/01-network-manager-all.yaml
Code:
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
Code:
$ sudo netplan generate
$ sudo netplan apply
Any help would be greatly appreciated.
Harry.