简体   繁体   English

无法通过 LAN 从 windows ping avahi 别名,但可以从其他 linux 虚拟机

[英]can't ping avahi alias from windows over LAN but can from other linux VMs

Context: i've set up a vm server for GIS testing and dokuwiki on the domain root.上下文:我已经在域根上设置了一个用于 GIS 测试和 dokuwiki 的虚拟机服务器。 I'd like to serve the gis web apps on a subdomain so that dokuwiki url renaming will never conflict (and it just feels cleaner).我想在子域上提供 gis 网络应用程序,以便 dokuwiki url 重命名永远不会发生冲突(而且感觉更干净)。 I thought i had it solved with avahi-aliases, but then discovered...我以为我用 avahi-aliases 解决了它,但后来发现......

Problem: I can't reach the subdomain from any windows pcs on the LAN.问题:我无法从 LAN 上的任何 Windows 电脑访问子域。 Linux VMs connect just fine. Linux VM 连接正常。 Am i trying the impossible or just doing it wrong?我是在尝试不可能的事情还是只是做错了? (i'm a DNS noob) Why would Linux find the subdomain but Windows not, even on the same LAN?? (我是 DNS 菜鸟)为什么 Linux 会找到子域而 Windows 不会,即使在同一个 LAN 上?

Setup: i can't change anything on the corporate routers/servers.设置:我无法更改公司路由器/服务器上的任何内容。 VMs are on different PCs on the same corporate LAN. VM 位于同一公司 LAN 上的不同 PC 上。

VM1 (virtualbox, hosted on windows PC1): Mint 13 VM1(虚拟机,托管在 Windows PC1 上):Mint 13

VM2 (virtualbox headless server, hosted on windows PC2): ubuntu server 12.04, LAMP, samba, avahi, avahi-aliases. VM2 (virtualbox headless server, 在 windows PC2 上托管): ubuntu server 12.04, LAMP, samba, avahi, avahi-aliases。

primary domain: vm2.local主域:vm2.local

subdomain: gis.vm2.local (configured in apache and avahi-alias)子域:gis.vm2.local(在apache和avahi-alias中配置)

What works: I can reach vm2.local AND gis.vm2.local from vm1 (via ping and browser).什么有效:我可以从 vm1 访问 vm2.local 和 gis.vm2.local(通过 ping 和浏览器)。 I can reach vm2.local from any windows pc on LAN (via ping browser).我可以从 LAN 上的任何 Windows pc 访问 vm2.local(通过 ping 浏览器)。

What doesn't work: I cannot reach gis.vm2.local from any windows pcs on the LAN.什么不起作用:我无法从 LAN 上的任何 Windows 电脑访问 gis.vm2.local。

Any ideas or advice is appreciated!任何想法或建议表示赞赏!

Sounds like either a firewall issue or Apache/IIS (whatever is hosting your web app) isn't listening to all traffic (If you are actually sharing networks).听起来像是防火墙问题或 Apache/IIS(托管您的 Web 应用程序的任何内容)没有侦听所有流量(如果您实际上是共享网络)。 Try a traceroute/tracert from the machines to the destination and see what paths they take.尝试从机器到目的地的 traceroute/tracert 并查看它们采用的路径。 It's a little hard to troubleshoot without actually seeing how your network looks.如果不实际查看网络的外观,则很难进行故障排除。

You can also test if your hostname resolves by trying a ping on the PC's having issues.您还可以通过在有问题的 PC 上尝试 ping 来测试您的主机名是否解析。 If it says "Ping request could not find host . Please check the name and try again" - It's a DNS issue and you can address it quickly by providing the IP of the machine with its hostname in %WINDIR%\\system32\\drivers\\etc\\hosts如果它说“Ping 请求找不到主机。请检查名称并重试” - 这是一个 DNS 问题,您可以通过在%WINDIR%\\system32\\drivers\\etc 中提供带有主机名的机器 IP 来快速解决它\\主机

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM