Problem with resolv.conf after a cloud-init yunohost install

Ok, I found my mistake !! the file exist in /var/run/resolvconf/resolv.conf

cat /var/run/resolvconf/resolv.conf 
# 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 127.0.0.1

So I can do

rm /etc/resolv.conf
ln -sf /var/run/resolvconf/resolv.conf /etc/resolv.conf

Thanks for this:

1 Like