Hardware: Old laptop or computer YunoHost version: 11.2.8.2 I have access to my server : Through SSH + through the webadmin + direct access via keyboard / screen Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Hello everyone
Since yesterday I started getting a warning in my daily diagnosis, saying:
"[WARNING] DNS resolution seems to be working, but it looks like you’re using a custom /etc/resolv.conf.
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."
Thing is, to my knowledge, I shouldn’t have anything like that since I am using one of the automatic domains provided by the yunohost project.
Does anyone have an idea how can I resolve this issue?
The only thing I can think of is that I have updated the yunohost version from 11.2.5 (afair) a couple of days before getting the warning and the day before I didn’t have internet connection during diagnosis so the errors were different. Don’t know if that helps…
A quick look at the abovementioned file, /etc/resolv.conf, shows it has the following :
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127... is the systemd-resolved stub resolver.
# run "resolvectl status" to see details about the actual nameservers.
The odd thing is that when I try to find the abovementioned path (/etc/run/resolvconf/resolv.conf), it turns out there is no such file or directory (/etc/run). I don’t know if that helps with anything or not.
Strange … the symlink is not correct. It should point to /etc/resolvconf..., not to /etc/run...
You could
$ ls /etc/resolvconf/run/resolv.conf # check that there is a result below:
/etc/resolvconf/run/resolv.conf
$ sudo rm /etc/resolv.conf
$ sudo ln -s /etc/resolvconf/run/resolv.conf /etc/
$ ls -l /etc/resolv.conf # check for the correct output:
lrwxrwxrwx 1 root root 31 Jan 12 2024 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf
As always when copy/pasting commands from the internet: check that you understand what they do
Hello again
Once I got back my machine (see the other post), yunohost was already up to date and running version 11.2.9.1. This somehow also fixed this issue and now I don’t get these warnings anymore. Hopefully it’ll stay like that