Hi,
for some time I sometimes have issues with DNS for some sites. It always seem to affect the same domains and seems to never happen to others.
One that is regulary affected is mirrors.fedoraproject.org. It is somehow related to systemd-resolve and I am not sure how to debug that.
Querying through systemd-resolve:
# dig @127.0.0.1 mirrors.fedoraproject.org
; <<>> DiG 9.16.11-RedHat-9.16.11-5.fc34 <<>> @127.0.0.1 mirrors.fedoraproject.org
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
Querying the upstream DNS directly:
# dig @192.168.1.2 mirrors.fedoraproject.org
; <<>> DiG 9.16.11-RedHat-9.16.11-5.fc34 <<>> mirrors.fedoraproject.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37827
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 14, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;mirrors.fedoraproject.org. IN A
;; ANSWER SECTION:
mirrors.fedoraproject.org. 297 IN CNAME wildcard.fedoraproject.org.
wildcard.fedoraproject.org. 57 IN A 185.141.165.254
wildcard.fedoraproject.org. 57 IN A 18.133.140.134
wildcard.fedoraproject.org. 57 IN A 209.132.190.2
wildcard.fedoraproject.org. 57 IN A 18.159.254.57
wildcard.fedoraproject.org. 57 IN A 38.145.60.20
wildcard.fedoraproject.org. 57 IN A 38.145.60.21
wildcard.fedoraproject.org. 57 IN A 67.219.144.68
wildcard.fedoraproject.org. 57 IN A 18.185.136.17
wildcard.fedoraproject.org. 57 IN A 140.211.169.206
wildcard.fedoraproject.org. 57 IN A 152.19.134.142
wildcard.fedoraproject.org. 57 IN A 85.236.55.6
wildcard.fedoraproject.org. 57 IN A 152.19.134.198
wildcard.fedoraproject.org. 57 IN A 8.43.85.67
;; Query time: 25 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mi Jun 23 12:11:12 CEST 2021
;; MSG SIZE rcvd: 285
config:
# resolvectl
Global
Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (wlp2s0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.1.2
DNS Servers: 192.168.1.2 2a02:908:1570:5b60:d63f:cbff:fe8d:4c20
Link 11 (enp62s0u1)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Workarounds:
- in firefox setting
Enable DNS over HTTPS
to be able to use a browser normally (otherwise I could not even access this page as id.fedoraproject.org would not resolve for me most of the time as well) - editing
/etc/resolve.conf
and changingnameserver
makes most software work - interestingly not everything. E.g. curl seems to somehow still use systemd-resolve as it keeps insisting that names are not resolveable. Ideas?
Any ideas how to debug this / dig deper? I would like to understand what exactly is the issue not just have workarounds
Thanks in advance!