In my home network I have a dhcp server and a dns server running on a router. Dhcp and internet access are working fine.
I have for each device on my home network a dns record that associate some name to the device ip address.
For example mycomputer resolves to 192.168.0.111.
However when I issue at command line in Windows 10:
ping mycomputer
I'm getting
Ping request could not find host mycomputer. Please check the name and try again.
I think this is a windows problem, not a router or configuration problem. This is because:
ping mycomputerworks perfectly from ubuntu- if I create a dns record like
mycomputer.localor evenmycomputer.blaand assign this to the same ip address I canping mycomputre.localorping mycomputre.blafrom Windows 10 without an issue. - Finally,
ping mycomputer.(note the dot at the end) also works in Windows 10. - If I look at the traffic in Wireshark, I can see that
ping mycomputer.localresults in a DNS request whileping mycomputerdoes not.
It appears that if the target computer name is not multi-part, windows will not resolve it unless I add the dot at the end. This effect does not happen for multi-part names.
I would like to understand: Why is this the case?