Mon serveur YunoHost
Matériel: VPS acheté en ligne
Version de YunoHost: 11.0.9.15
J’ai accès à mon serveur : En SSH |
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Description du problème
Cela fait plusieurs fois que j’essaie de résoudre une erreur assez connue sur un serveur Yunohost, et courante avec des vps OVH
[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.
J’ai du bidouiller et me voici avec ces erreurs dans diagnosis
=================================
DNS records (dnsrecords)
=================================
[ERROR] Some DNS records are missing or incorrect for domain domain.tld (category basic)
- Please check the documentation at https://yunohost.org/dns_config if you need help configuring DNS records.
- The following DNS record does not seem to follow the recommended configuration:
Type: A
Name: @
Current value: 127.0.0.1
Expected value: XX.XX.XXX.XXX
- The following DNS record does not seem to follow the recommended configuration:
Type: AAAA
Name: @
Current value: ['::1', 'XXXX:XXXX:XXX:XXXX::XXXX']
Expected value: XXXX:XXXX:XXX:XXXX::XXXX
- The following DNS record does not seem to follow the recommended configuration:
Type: A
Name: www
Current value: 127.0.0.1
Expected value: XX.XX.XXX.XXX
- The following DNS record does not seem to follow the recommended configuration:
Type: AAAA
Name: www
Current value: ['::1', 'XXXX:XXXX:XXX:XXXX::XXXX']
Expected value: XXXX:XXXX:XXX:XXXX::XXXX
[ERROR] Some DNS records are missing or incorrect for domain domain.tld (category mail)
- Please check the documentation at https://yunohost.org/dns_config if you need help configuring DNS records.
- According to the recommended DNS configuration, you should add a DNS record with the following info.
Type: TXT
Name: mail._domainkey
Value: "v=DKIM1; h=sha256; k=rsa; p=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- According to the recommended DNS configuration, you should add a DNS record with the following info.
Type: TXT
Name: _dmarc
Value: "v=DMARC1; p=none"
[WARNING] Some DNS records are missing or incorrect for domain domain.tld (category xmpp)
- Please check the documentation at https://yunohost.org/dns_config if you need help configuring DNS records.
- According to the recommended DNS configuration, you should add a DNS record with the following info.
Type: CNAME
Name: muc
Value: domain.tld.
- According to the recommended DNS configuration, you should add a DNS record with the following info.
Type: CNAME
Name: pubsub
Value: domain.tld.
- According to the recommended DNS configuration, you should add a DNS record with the following info.
Type: CNAME
Name: vjud
Value: domain.tld.
- According to the recommended DNS configuration, you should add a DNS record with the following info.
Type: CNAME
Name: xmpp-upload
Value: domain.tld.
[WARNING] Some DNS records are missing or incorrect for domain domain.tld (category extra)
- Please check the documentation at https://yunohost.org/dns_config if you need help configuring DNS records.
- According to the recommended DNS configuration, you should add a DNS record with the following info.
Type: A
Name: *
Value: XX.XX.XXX.XXX
- According to the recommended DNS configuration, you should add a DNS record with the following info.
Type: AAAA
Name: *
Value: XXXX:XXXX:XXX:XXXX::XXXX
- According to the recommended DNS configuration, you should add a DNS record with the following info.
Type: CAA
Name: @
Value: 128 issue "letsencrypt.org"
J’avais aussi un soucis avec le reverse dns en ipv6 je crois, car j’ai chercher à déblacklister de spamhaus l’adresse ipv6. J’y suis arrivé apparemment…
Cette fois j’ai éditer le fichier /etc/resolv.dnsmasq.conf
avec nameserver 127.0.0.1
et aussi un sudo rm /etc/resolv.conf
et sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
J’ai aussi édité le fichier /etc/network/interfaces.d/51-cloud-init-ipv6
pour l’adresse ipv6, qui était déjà édité comme il faut, j’ai du juste enlever une ligne mtu 1500
Mon fichier /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 debian.example.com
127.0.1.1 vps-xxxxxxx.vps.ovh.net vps-xxxxxxx
127.0.0.1 domain
là pour resolv.conf
ça ne va pas !! il devrait avoir plétore d’adresses non ?
# 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.0.0.53 is the systemd-resolved stub resolver.
# run "resolvectl status" to see details about the actual nameservers.
nameserver 213.186.33.99
nameserver 127.0.0.1
Un truc ne va pas avec cette commande
$ sudo resolvectl status
Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found.
Bref, ce serai bien de remettre en état tout cela… pourtant tout fonctionne et est accessible ???