I have a local DNS server, and in it are several hosts, specified both with and without a domain name.
Eg: $ dig @192.168.1.5 myhost ... ;; ANSWER SECTION myhost. 0 IN A 192.168.1.123 ...
$ dig @192.168.1.5 myhost.mydomain ... ;; ANSWER SECTION myhost.mydomain 0 IN A 192.168.1.123
However, if I don't specify the DNS, the first query (myhost) times out, where the second (myhost.mydomain) still works fine.
My PC gets its DNS settings via DHCP.
/etc/resolv.conf contains only 127.0.0.53 which as I understand it is systemd-resolve.
/run/systemd/resolve/resolv.conf contains only 192.168.1.5 (my DNS).
So, in the case of a query for "myhost.mydomain", systemd-resolve is correctly passing the query on to my DNS. But in the case of "myhost" it is not (I don't know what it is doing instead).
If I try "ping myhost" I get "Name or service not known". Similarly, if I try ssh mark@myhost.
Suggestions?