Ubuntu core DNS - host name resolution issue


I noticed problems with my box’s DNS resolution.

Logging in as admin and going to /index.php/settings/admin, I see the following message in red:

This server has no working Internet connection: Multiple endpoints could not be reached. This means that some of the features like mounting external storage, notifications about updates or installation of third-party apps will not work. Accessing files remotely and sending of notification emails might not work, either. We suggest to enable Internet connection for this server if you want to have all features.

Getting into the box with ssh and running “snap find ntpserver” I get the following:

error: cannot list snaps: Get https://api.snapcraft.io/api/v1/snaps/search?confinement=strict&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Clicense%2Cbase%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement%2Cchannel_maps_list&q=ntpserver: dial tcp: lookup api.snapcraft.io on [::1]:53: read udp [::1]:43577->[::1]:53: read: connection refused

Also, “ping www.nasa.gov” is failing with a similar message while “ping [NASA’s IP address]” works fine.

I tried to set ipv4.dns setting to using the network-manager as indicated here https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/edit-connections but the problem is still there.

This wasn’t an issue in the past. Obviously, it doesn’t seem to be a Nextcloud issue, but any help would be much appreciated.

Thank you,