Like title says, I am randomly having problems with DNS on one of my computers. I don’t know what log I am going to have to copy when it acts up again, but it restores just fine when I restart resolved service. I think it has something to do with Tailscale. I disabled the service and I haven’t had a problem yet.
I’ll post if it pops up again, I just need to know what related log I need to upload here with it. Thanks.
Which resolver you have in use?
I’m guessing at this point, but it might help if you show us the output of: pacman -Qs resolv pacman -Qo resolvconf resolvectl status systemctl status systemd-resolved
It appears that your system is using systemd-resolved in “foreign mode” as name resolver.
Have you set it up that way? And why in “foreign” mode, it is not the recommended way (stub mode)?
Read here in the arch wiki.
Also, there is a second resolver installed on your system, unbound. Did you deliberatly installed this package? Any of the below “required by” or “optional for” packages installed ?
pacman -Sii unbound ✔
Repository : extra
Name : unbound
Version : 1.22.0-2
Description : Validating, recursive, and caching DNS resolver
Architecture : x86_64
URL : https://unbound.net/
Licenses : BSD-3-Clause
Groups : None
Provides : libunbound.so=8-64
Depends On : dnssec-anchors fstrm glibc hiredis ldns libnghttp2 libsodium libevent libevent-2.1.so=7-64 openssl libcrypto.so=3-64
libssl.so=3-64 protobuf-c libprotobuf-c.so=1-64 systemd-libs libsystemd.so=0-64
Optional Deps : expat: for unbound-anchor
sh: for unbound-control-setup
python: for python-bindings
Required By : getdns libreswan lokinet monero monero-gui
Optional For : dnf prometheus-unbound-exporter
Conflicts With : None
Replaces : None
Download Size : 1081.89 KiB
Installed Size : 4167.80 KiB
Packager : Jelle van der Waa <jelle@archlinux.org>
Build Date : Mon Nov 18 18:46:57 2024
MD5 Sum : 1b8713a9a4b63f3198362ff3a64e5c90
SHA-256 Sum : 8133692b3d9d8fc869e0e3caef829a4f5e5de0e0d5f3393621cc327e46d2c40c
Signatures : C06086337C50773E
Extended Data : None
What exactly you do here? systemctl restart systemd-resolved?
It says “disabled” in one place, is that still the same after performing systemctl enable --now systemd-resolved?
In summary:
To use systemd-resolved in “foreign” mode is not the recommended way.
There shouldn’t be a second resolver installed, unbound, unless you know what you are doing. Read through unbound documentation.
Systemd-resolved is “disabled” in one place, it should be enabled.
I personally have no experience, neither with “foreign mode” nor with “unbound”. I recommend to reduce complexity of your “resolver system”
Well, I haven’t had a problem with the system since I uninstalled tailscale. Not sure what is up with “foreign mode”, could be due to tailscale or something else. This was mostly a default install as far as the network goes.
I have used unbound before with a pi-hole setup, but not on here. I think it might have been setup when I installed tailscale and set up this device to broadcast as an exit node. I guess I will have to reinstall tailscale later and see if it borks my system again. No need really thought because I just tailscale into my server which is broadcasting my network which in turn I can just ssh into anything on the subnet.