Hardware: VPS bought online @strato.de YunoHost version: 11.1.12.2 (stable) I have access to my server : Through SSH | through the webadmin | direct access via keyboard: everything fine at that point! Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
I installed a new yunohost on my vps. This time I user another VPS-Provider. I managed so far good, but I m having a Error concerning DNS, that I m not sure about, what this might be. Sorry, but its in german.
DNS Auflösung scheint zu funktionieren, aber sei vorsichtig wenn du deine eigene /etc/resolv.conf verwendest.
Ignorieren
Details
Die Datei /etc/resolv.conf muss ein Symlink auf /etc/resolvconf/run/resolv.conf sein, welcher auf 127.0.0.1 (dnsmasq) zeigt. Falls du die DNS-Resolver manuell konfigurieren möchtest, bearbeite bitte /etc/resolv.dnsmasq.conf.
I have no explanation. I tried my best to configure DNS as yunohost demanded. For my knowledge, I did not do any âstrange tweaksâ. I just installed Yunohost and ran diagnostics. As far as I understand: 127.0.0.1 seems to be my localhost. But I canât think of, what it has to do with my installation and DNS and my VPS⊠Hope someone can help. Thanks in advance!
Yeah itâs an annoying issue because many program in the Linux world want to take over the /etc/resolv.conf which defines which DNS resolver the system is using âŠ
Letâs try to : ln -sf /etc/resolvconf/run/resolv.conf /etc/resolv.conf (possibly with sudo)
Issue still persists. My conclusion: The Diagnosis seems to be be hung. Everytime i run the diagnosis the section âinternetconectivitityâ tells me the diagnosis is 2 days old. But: all other sections tell me diagnosis 1min old.
I was able to copy this at startup of diagnosis-system:
Die Diagnosefunktion wird versuchen, gĂ€ngige Probleme in verschiedenen Teilen Ihres Servers zu finden, damit alles reibungslos lĂ€uft. Haben Sie keine Angst, wenn Sie ein paar Fehlermeldungen sehen, nachdem Sie ihren Server aufgesetzt haben: es soll versuchen Ihnen zu helfen, Probleme zu identifizieren und Tipps fĂŒr Lösungen zu zeigen. Die Diagnose wird auch automatisch zweimal tĂ€glich ausgefĂŒhrt, falls Fehler gefunden werden, bekommt der Administrator eine E-Mail.
Die Diagnose durchfĂŒhren
1
Der Server verarbeitet die Aktion...
Alles sieht OK aus fĂŒr Grundsystem!
Diagnose fehlgeschlagen fĂŒr die Kategorie 'ip':
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/yunohost/diagnosis.py", line 183, in diagnosis_run
code, report = diagnoser.diagnose(force=force)
File "/usr/lib/python3/dist-packages/yunohost/diagnosis.py", line 430, in diagnose
items = list(self.run())
File "/usr/lib/python3/dist-packages/yunohost/diagnosers/10-ip.py", line 67, in run
good_resolvconf = self.good_resolvconf()
File "/usr/lib/python3/dist-packages/yunohost/diagnosers/10-ip.py", line 221, in good_resolvconf
content = read_file("/etc/resolv.conf").strip().split("\n")
File "/usr/lib/python3/dist-packages/moulinette/utils/filesystem.py", line 34, in read_file
raise MoulinetteError("file_not_exist", path=file_path)
moulinette.core.MoulinetteError: Datei ist nicht vorhanden: '/etc/resolv.conf'
Alles sieht OK aus fĂŒr DNS-EintrĂ€ge! (+ 1 ignorierte(s) Problem(e))
Alles sieht OK aus fĂŒr Geöffnete Ports!
Alles sieht OK aus fĂŒr Web!
Verlauf
Letzte Aktion:
Angetrieben von YunoHost 11.1.12.2 (stable).```
Update: I kept searching for the reason of that Issue and may have found something.
It seems that my vps-provider (Strato) has an option concerning â/etc/resolv.confâ turned on as default. I just stumbled across that option by coincidence. There was no hint in the installation-process!
Ăberschreiben der Datei /etc/resolv.conf
aktiviert: STRATO Nameserver werden bootfest zur Namensauflösung genutzt.
deaktiviert: Sie können eigene Nameserver in resolv.conf eintragen.
I turned the option off and restarted my yunohost. No effect! I will do a clean install and report here.
I usually link it to /var/run/resolvconf/resolve.conf or /run/resolvconf/resolv.conf. There is not usually a run directory in /etc/resolvconf since /etc is for config and not variable files like a run directory.
If you have it properly linked to /var/run/resolvconf/resolve.conf or /run/resolvconf/resolvconf.conf you will be using dnsmasq and you can safely ignore that warning.
Edit: @Chrisster Iâm pretty sure there is an issue in the diagnosis since without changing anything, there is no /etc/resolvconf/run/resolv.conf on the yunohosts I have installed.
DNS Auflösung scheint zu funktionieren, aber sei vorsichtig wenn du deine eigene /etc/resolv.conf verwendest.
Ignorieren
Details
Die Datei /etc/resolv.conf muss ein Symlink auf /etc/resolvconf/run/resolv.conf sein, welcher auf 127.0.0.1 (dnsmasq) zeigt. Falls du die DNS-Resolver manuell konfigurieren möchtest, bearbeite bitte /etc/resolv.dnsmasq.conf.
That might be true. I have two instances running at different providers. One has that issue, the other doesnât. I think, it may be connected to different versions of Debian 11âŠ