问题原文
原帖链接 · Sheric · CC BY-SA 3.0
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.
已采纳解答
原帖链接 · Sheric · CC BY-SA 3.0
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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
