1
1
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 mycomputer
works perfectly from ubuntu- if I create a dns record like
mycomputer.local
or evenmycomputer.bla
and assign this to the same ip address I canping mycomputre.local
orping mycomputre.bla
from 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.local
results in a DNS request whileping mycomputer
does 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?
This looks relevant – Andrew Savinykh – 2016-05-19T00:34:54.173
Probably a mismatch between the dns suffix on your network vs the dns suffix on the router (ie the router doesn't have one). If your home network dns suffix is .local, make the router suffix the same. – Paul – 2016-05-19T00:39:12.317
@Paul there is no home network suffix as far as I can see. I edited the question to clarify that it's not 'local' what makes it work it's any suffix. – Andrew Savinykh – 2016-05-19T00:41:17.250
You have a Windows machine without a DNS suffix? Can you post
ipconfig /all
? – Paul – 2016-05-19T01:04:48.163@Paul it's similar to this There are also other adapters, including virtual, but they are irrelevant. Please let me know if there is something in particular that you wanted to see that is missing.
– Andrew Savinykh – 2016-05-19T01:09:57.077@Paul, and as far as I understand no non-domain-joined windows boxes would have a suffix by default unless you specifically and manually configure it. Is this understanding incorrect? – Andrew Savinykh – 2016-05-19T01:13:35.437
1Turn off (uncheck) your ip6 on your network device. – GeekyDaddy – 2016-05-19T02:16:38.413
@GeekyDaddy, it is not possible to turn it off because it is already off. – Andrew Savinykh – 2016-05-19T03:47:43.003
Can you perform an "ipconfig /all"? Are your machines part of a domain like active directory? – GeekyDaddy – 2016-05-19T15:06:26.233
When you perform an "nslookup mycomputer" which dns server is it perform the lookup from? Are you getting 127.0.0.1? Also try "nslookup mycomputer <router ip>" do you get something different? – GeekyDaddy – 2016-05-19T15:10:34.093
@GeekyDaddy nslookups works fine and lookups the correct ip. There is no domain on my home network. nslookup uses my router by default for dns lookup (and not 127.0.0.1), which hosts the dns server. In both cases nslookup returns the correct ip. – Andrew Savinykh – 2016-05-19T19:54:26.737
If you don't want to add the dot, then please see my answer to a similar question.
– Frederik Aalund – 2017-10-09T11:56:53.813