I have a quite new Kubuntu installation and I messed its name resolution up somehow.
root @ asus-f751s ~ # host www.ecosia.org 22-12-19 12:05
;; communications error to 127.0.0.1#53: connection refused
root @ asus-f751s ~ :-( # ls -l /etc/resolv.conf 22-12-19 12:20
lrwxrwxrwx 1 root root 27 Dec 19 11:30 /etc/resolv.conf -> /run/resolvconf/resolv.conf
root @ asus-f751s ~ # ls -l /run/resolvconf/resolv.conf 22-12-19 12:20
ls: cannot access '/run/resolvconf/resolv.conf': No such file or directory
root @ asus-f751s ~ :-( # systemctl | grep -Fi resol 22-12-19 12:04
systemd-resolved.service loaded active running Network Name Resolution
The name resolution daemon seems to be running, as can be seen from the code snipped above. I am not sure whether the resolve status is unsuspicious. The resolv.conf mode is told to be missing, but if that is referring to the file, there is no new information.
root @ asus-f751s ~ :-( # resolvectl status 22-12-19 12:21
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: missing
Link 2 (enp2s0f1)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 3 (wlp3s0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
DNS Servers: 192.168.2.1 fe80::1%21849
DNS Domain: speedport.ip
Even the run directory is missing.
root @ asus-f751s ~ # echo "nameserver 192.168.2.1 22-12-19 12:32
nameserver fe80::1%wlp3s0
search speedport.ip" > /run/resolvconf/resolv.conf
zsh: no such file or directory: /run/resolvconf/resolv.conf
root @ asus-f751s ~ :-( # ls -l /run/resolvconf 22-12-19 12:32
ls: cannot access '/run/resolvconf': No such file or directory
I could achieve a temporary fix (after reboot it is gone) by
root @ asus-f751s ~ # mkdir /run/resolvconf 22-12-19 12:32
root @ asus-f751s ~ # echo "nameserver 192.168.2.1 22-12-19 12:33
nameserver fe80::1%wlp3s0
search speedport.ip" > /run/resolvconf/resolv.conf
root @ asus-f751s ~ # host www.ecosia.org 22-12-19 12:33
www.ecosia.org is an alias for www.ecosia.org.cdn.cloudflare.net.
www.ecosia.org.cdn.cloudflare.net has address 104.18.14.27
www.ecosia.org.cdn.cloudflare.net has address 104.18.15.27
www.ecosia.org.cdn.cloudflare.net has IPv6 address 2606:4700::6812:f1b
www.ecosia.org.cdn.cloudflare.net has IPv6 address 2606:4700::6812:e1b
but I would like to have a permanent fix.
I would be glad if someone enlightened me.