You are not logged in.
Today I have installed Arch Linux on yet another machine.
I have tried to use iwd for wifi management and systemd-resolved as DNS service.
I want to use iwd built-in DHCP client, so I have edited /etc/iwd/main.conf :
[General]
EnableNetworkConfiguration=true
[Network]
NameResolvingService=systemd
I have enabled both, iwd.service and systemd-resolved.service, but DNS did not work after reboot.
After quick look at journal it turned out, that iwd starts before systemd-resolved. The difference is approx 2 seconds and it is enough to fail.
One of the iwd logs is:
resolve-systemd: Failed to add DNS entries. Is 'systemd-resolved' service running?
.
Is it a desired behavior? Should it be reported as a bug, or maybe the documentation of iwd or systemd-resolved should be updated?
How to solve this? systemd-resolved could be added as a iwd depdency, however it is not good solution as there are different configurations where systemd-resolved is not needed.
Offline
This seems to be asked/reported more often these days. There's a dedicated IWD thread on the forum. You might find a solution there if you skim throught it.
Offline