I have installed and configured avahi-daemon and samba on Centos 6.6 and it's working when I am testing it from an Ubuntu machine. e.g.: ping myhostname.local or smb://myhostname.local

However, when I try from a windows machine, neither samba works nor I can ping it via ping myhostname

Can anyone please explain me the possible difference between what Windows does and what Ubuntu does.

Besides, it would be great if Windows could list my server when browsing network, but I don't know if I should enable something like a broadcast or just normal configuration is adequate.

Thanks a log in advance.


After 2 days of working and researching on it, thanks to Wireshark, I figured out that Windows doesn't use mdns protocol for resolving hostnames and just queries with its own protocol, NetBios. Therefore, obviously Avahi won't response to it.

Taking another look I found this guide: http://sharadchhetri.com/2014/10/09/centos-7-rhel-7-install-and-setup-samba-server-file-sharing/ which followed by the following conclusion:

Samba includes a daemon called nmb which handles NetBios Requests but it was disabled by default in Centos 7. After starting it, windows could easily resolve my hostname.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.