大网数据广告活动
服务器运维问答

Centos 7 Avahi doesn't resolve from windows machines

· 52CE 我爱测

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, …

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-08-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。