0

I have a setup a web server on a pi running centos but I can't seem to resolve its hostname on any windows machines, either by pinging or typing the address into a browser.

I have tried from a mac and I can ping the centos pi.

I have tried from a debain linux machine and I can ping the centos pi.

I have tried pinging from two different windows 10 machines and both are unable to ping, command prompt tells me that ping request could not find host.

I have tried installing samba on the centos pi, because I was running out of ideas, which didn't seem to do anything, though I didn't setup any shares, instead I just enabled the default printer configuration.

interestingly, I am able to ping the debian linux machine using the hostname from a windows 10 machine, just not the centos pi. I don't remember having to do anything special to allow windows to be able to resolve the debain machines hostname.

I also set the hostname, in hostnamectl, on the centos pi, but it did nothing.

Any suggestions?

5
  • 2
    Please search earlier posts for "mDNS", "LLMNR", and "NBNS", for example superuser.com/questions/185678. Jul 23, 2019 at 12:08
  • context? I don't understand. it already had a hostname (assigned by my router) and it works on all other platforms except windows.
    – glend
    Jul 23, 2019 at 12:34
  • 2
    The context is the 2nd half of your post. Hostnames don't just work by themselves – either your router has the hostname in its local DNS, or the host itself has to announce it using one of these protocols (all of which are optional and might not be installed). For example if you found somewhere a suggestion to install Samba, that was for its NBNS support in "nmbd", not really for the shared folders. Jul 23, 2019 at 12:58
  • Is your problem hostnames (unsolvable) or ping (maybe solvable)?
    – harrymc
    Jul 23, 2019 at 13:38
  • I can ping using an IP, but not by hostname.
    – glend
    Jul 24, 2019 at 11:37

0

You must log in to answer this question.

Browse other questions tagged .