Internet connectivity diagnosis

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.39 (stable)
How are you able to access your server: SSH

Describe your issue

I am trying to solve a warning in Internet connectivity on my panel. The warning being “DNS resolution seems to be working, but it looks like you’re using a custom /etc/resolv.conf.” with the context “The file /etc/resolv.conf should be a symlink to /etc/resolvconf/run/resolv.conf itself pointing to 127.0.0.1 (dnsmasq). If you want to manually configure DNS resolvers, please edit /etc/resolv.dnsmasq.conf.”.

I’ve seen some post about similar issues and was about to try recreating the symlink but the files are missing.

user@domain:~$ cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
user@domain:~$ cat /etc/resolvconf/run/resolv.conf
cat: /etc/resolvconf/run/resolv.conf: No such file or directory

I tried those two commands which didn’t change the absence of the two file mentioned before:

sudo yunohost tools regen-conf dnsmasq --force
sudo systemctl restart resolvconf

Share relevant logs or error messages

user@domain:~$ sudo yunohost diagnosis run
Warning: Found 1 item(s) that could be improved for Base system.
Error: Diagnosis failed for category 'ip': 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/diagnosis.py", line 193, in diagnosis_run
    code, report = diagnoser.diagnose(force=force)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/diagnosis.py", line 443, in diagnose
    items = list(self.run())
            ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/diagnosers/10-ip.py", line 68, in run
    good_resolvconf = self.good_resolvconf()
                      ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/diagnosers/10-ip.py", line 226, in good_resolvconf
    content = read_file("/etc/resolv.conf").strip().split("\n")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/utils/file_utils.py", line 55, in read_file
    raise YunohostError("file_not_exist", path=file_path)
yunohost.utils.error.YunohostError: File does not exist: '/etc/resolv.conf'

Success! Everything looks OK for DNS records!
Success! Everything looks OK for Ports exposure!
Warning: Found 1 item(s) that could be improved for Web.
Error: Found 2 significant issue(s) related to Email!
Success! Everything looks OK for Services status check!
Success! Everything looks OK for System resources!
Success! Everything looks OK for System configurations!
Success! Everything looks OK for Applications!
Warning: To see the issues found, you can go to the Diagnosis section of the webadmin, or run 'yunohost diagnosis show --issues --human-readable' from the command-line.