It`s not working after reboot
homePC:/home/kristijan # systemctl status systemd-resolved
○ systemd-resolved.service - Network Name Resolution
Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-resolved.service(8)
man:org.freedesktop.resolve1(5)
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
homePC:/home/kristijan # resolvectl
Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found.
homePC:/home/kristijan # cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
homePC:/home/kristijan # ip r
default via 192.168.1.1 dev eno1 proto static metric 20100
192.168.1.0/24 dev eno1 proto kernel scope link src 192.168.1.5 metric 100
192.168.250.0/24 dev anbox0 proto kernel scope link src 192.168.250.1 linkdown
homePC:/home/kristijan # dig @8.8.8.8 forums.opensuse.org
; <<>> DiG 9.16.25 <<>> @8.8.8.8 forums.opensuse.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35744
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;forums.opensuse.org. IN A
;; ANSWER SECTION:
forums.opensuse.org. 1800 IN CNAME login2.opensuse.org.
login2.opensuse.org. 1800 IN A 195.135.221.161
;; Query time: 75 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Mar 13 11:28:28 CET 2022
;; MSG SIZE rcvd: 85
homePC:/home/kristijan # dig forums.opensuse.org @192.168.1.1
; <<>> DiG 9.16.25 <<>> forums.opensuse.org @192.168.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10966
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;forums.opensuse.org. IN A
;; ANSWER SECTION:
forums.opensuse.org. 1355 IN CNAME login2.opensuse.org.
login2.opensuse.org. 1355 IN A 195.135.221.161
;; Query time: 3 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Sun Mar 13 11:28:33 CET 2022
;; MSG SIZE rcvd: 74
homePC:/home/kristijan # ping google.com
ping: google.com: Name or service not known
homePC:/home/kristijan # nslookup google.com
^C
After i start systemd-resolved
homePC:/home/kristijan # systemctl start systemd-resolved
homePC:/home/kristijan # resolvectl
Global
Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: uplink
Link 2 (eno1)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.1.1
DNS Servers: 192.168.1.1
Link 3 (anbox0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
homePC:/home/kristijan # dig forums.opensuse.org @192.168.1.1
; <<>> DiG 9.16.25 <<>> forums.opensuse.org @192.168.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22732
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;forums.opensuse.org. IN A
;; ANSWER SECTION:
forums.opensuse.org. 1179 IN CNAME login2.opensuse.org.
login2.opensuse.org. 1179 IN A 195.135.221.161
;; Query time: 3 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Sun Mar 13 11:31:30 CET 2022
;; MSG SIZE rcvd: 74
homePC:/home/kristijan # dig @8.8.8.8 forums.opensuse.org
; <<>> DiG 9.16.25 <<>> @8.8.8.8 forums.opensuse.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54279
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;forums.opensuse.org. IN A
;; ANSWER SECTION:
forums.opensuse.org. 554 IN CNAME login2.opensuse.org.
login2.opensuse.org. 554 IN A 195.135.221.161
;; Query time: 19 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Mar 13 11:31:35 CET 2022
;; MSG SIZE rcvd: 85
homePC:/home/kristijan # ping google.com
PING google.com (172.217.20.14) 56(84) bytes of data.
64 bytes from bud02s28-in-f14.1e100.net (172.217.20.14): icmp_seq=1 ttl=118 time=7.00 ms
64 bytes from bud02s28-in-f14.1e100.net (172.217.20.14): icmp_seq=2 ttl=118 time=6.86 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 6.861/6.930/6.999/0.069 ms
I have just noticeed that in Yast->Networking->Network Setup Method was Network Service Disabled and ther was no entrys in DNS…
I have changed Network Setup Method to Network Manager
I have used https://en.opensuse.org/SDB:Configure_DNS and add rc-manager=file
Without systemd-resolved enabled DNS is not working.
This cought my eye
homePC:/home/kristijan # nano /etc/systemd/resolved.conf
homePC:/home/kristijan # systemctl status systemd-resolved
● systemd-resolved.service - Network Name Resolution
Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2022-03-13 12:31:01 CET; 4h 49min ago
Docs: man:systemd-resolved.service(8)
man:org.freedesktop.resolve1(5)
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
Main PID: 1357 (systemd-resolve)
Status: "Processing requests..."
Tasks: 1 (limit: 4915)
CPU: 162ms
CGroup: /system.slice/systemd-resolved.service
└─1357 /usr/lib/systemd/systemd-resolved
Mar 13 14:04:39 homePC systemd-resolved[1357]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
Mar 13 15:34:39 homePC systemd-resolved[1357]: Grace period over, resuming full feature set (UDP+EDNS0) for DNS server 192.168.1.1.
Mar 13 15:40:02 homePC systemd-resolved[1357]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
Mar 13 17:13:45 homePC systemd-resolved[1357]: eno1: Bus client reset search domain list.
Mar 13 17:13:45 homePC systemd-resolved[1357]: eno1: Bus client set default route setting: no
Mar 13 17:13:45 homePC systemd-resolved[1357]: eno1: Bus client reset DNS server list.
Mar 13 17:13:55 homePC systemd-resolved[1357]: eno1: Bus client set search domain list to: 192.168.1.1
Mar 13 17:13:55 homePC systemd-resolved[1357]: eno1: Bus client set default route setting: yes
Mar 13 17:13:55 homePC systemd-resolved[1357]: eno1: Bus client set DNS server list to: 192.168.1.1
**Mar 13 17:13:59 homePC systemd-resolved[1357]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.**
homePC:/home/kristijan # systemctl restart systemd-resolved
homePC:/home/kristijan # systemctl status systemd-resolved
● systemd-resolved.service - Network Name Resolution
Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2022-03-13 17:20:33 CET; 3s ago
Docs: man:systemd-resolved.service(8)
man:org.freedesktop.resolve1(5)
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
Main PID: 8142 (systemd-resolve)
Status: "Processing requests..."
Tasks: 1 (limit: 4915)
CPU: 79ms
CGroup: /system.slice/systemd-resolved.service
└─8142 /usr/lib/systemd/systemd-resolved
Mar 13 17:20:33 homePC systemd[1]: Starting Network Name Resolution...
Mar 13 17:20:33 homePC systemd-resolved[8142]: Positive Trust Anchors:
Mar 13 17:20:33 homePC systemd-resolved[8142]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
Mar 13 17:20:33 homePC systemd-resolved[8142]: Negative trust anchors: home.arpa 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in>
Mar 13 17:20:33 homePC systemd-resolved[8142]: Using system hostname 'homePC'.
Mar 13 17:20:33 homePC systemd[1]: Started Network Name Resolution.
I also found that (Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.) is wide spread on debian, fedora…
And they all have exactly the same problem with randomly disconnecting DNS.
So i un commented in /etc/systemd/resolved.conf line DNSSEC=no as sugested as fix.
https://superuser.com/questions/1676584/using-degraded-feature-set-tcp-instead-of-udp-for-dns-server
https://github.com/systemd/systemd/issues/13432
https://www.linuxquestions.org/questions/linux-networking-3/systemd-resolved-using-degraded-feature-set-tcp-instead-of-udp-for-dns-server-4175693509/
As i am writhing this here it is again “Using degraded feature set UDP instead of UDP+EDNS0 for DNS…”
But DNS is working…
I have to start systemd-resolved to get DNS working, after that i can stop systemd-resolved and DNS is still working… for some time