Snap refresh changes DNS

Hey, I started using ubuntu 22.0 LTS a few days ago, and today I did a snap refresh to update snap store and related snap processes. However it seems that my DNS was also changed which prevented me from connecting to YouTube, or GitHub. Any idea why did this happen? Not sure from which version to which I updated.

I fixed it by adding google’s DNS nameserver to resolv.config.

I’ve been having similar DNS problems. Over the last weeks, after snap install/remove/refresh, resolvectl did not show DNS servers any more, at least for IPv4.

However, now that I’m trying it again at this very moment, the problem does not reappear. But I can certainly confirm that I had tremendous DNS problems related to snap operations.