I recently installed a proper router on my home network, one which enables local DNS names to propagate around the local network.
I have a set of local machines. Some of these are servers.
I can ping the servers from a Windows CMD prompt. For example ping HOSTNAME works.
I cannot ping these servers from within WSL. WSL is currently set with everything to the default, I just installed it today.
I can ping HOSTNAME.local from WSL, however.
Why is this, and is there a way to configure WSL such that I can ping HOSTNAME instead of needing to type HOSTNAME.local?
Side note. (For Mikrotik devices.)
ping HOSTNAME used to work from Windows. Now it is no longer working. Some searching suggests that Mikrotik devices will not retain DNS entries for devices configured with a static IP address. (Configured static via Mikrotik.)
Static DNS entries are also required.
I have now added these, and the results are the same. In other words, the question is unchanged by this additional configuration.
wsl.conf
[boot]
systemd=true
[user]
default=user
ping HOSTNAMEis actually getting a DNS result from the router, or whether it is only getting an mDNS result directly from the other host.nslookupreportsServer: router.lan, Address: 192.168.1.1which is the address of the router. However it also says "can't find HOSTNAME.local" Non-existent domain. I think that the fact the router thinks the local domain name should end with.laninstead of.localmight be the cause of the issue. It is a Mikrotik device, so I will see if I can figure out how to change this.ipconfig /allon Windows, and 4) whatsearchordomainsuffixes you have in/etc/resolv.confon Linux?/etc/resolv.confcontains onlynameserver 10.255.255.254