I am using focal Ubuntu 20.04.1 LTS (hosted virtual machine)
Occasionally after a reboot DNS resolution fails (e.g.
ping google.com > Resource temporarily unavailable)
To 'fix' this I reboot the machine.
What is the proper fix and why is this occurring sporadically ?
The contents of
resolv.conf indicates the file is being managed by
# This file is managed by man:systemd-resolved(8). Do not edit.
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
# No DNS Servers known
wal@www:~$ ping google.com
ping: google.com: Resource temporarily unavailable