Systemd-resolved DNS config change leads to huge start delays in some programs

Hello everyone.
I recently changed my /etc/systemd/resolved.conf to the following:


With these changes, the system runs absolutely fine and uses the correct nameservers (checked with Wireshark). But I have the following problems that I simply cannot understand:

  • the os fails to resolve invalid domain names like with the following output with dig:
;; communications error to timed out
;; communications error to timed out
;; communications error to timed out

; <<>> DiG 9.18.26 <<>>
;; global options: +cmd
;; no servers could be reached

This does not happen with the default empty config.

  • some programs, including firefox, thunderbird, or any forks of them, and for example the telnet client have a huge 5min start delay if they have access to unix sockets (tested with a firejail config without protocol unix.

Does anyone have any idea what the problem could be?
Many thanks in advance!

1 Like

This fix worked. Sorry for bringing this up again.

There’s a more generic method:
DNF and Firefox take extreemly long to start when VPN active on f40? - #4 by vgaetera