I'm using systemd-resolved
configured for mDNS. host
command takes a long time on .local
queries. Example:
$ time host blah.local
;; connection timed out; no servers could be reached
real 0m10.019s
user 0m0.016s
sys 0m0.005s
The above is a bad query (host blah.local
does not exist), but the same happens with other queries as well:
$ time host valid.local
valid.local has address 192.168.0.1
;; connection timed out; no servers could be reached
real 0m10.021s
user 0m0.011s
sys 0m0.011s
where it quickly displays the IP of the host and then spends those 10s doing something.
How can I troubleshoot this?