确认您的 /etc/hosts 文件将主机名映射到正确的 IP 地址的最佳方法是什么?
使用诸如dig直接查询外部 DNS 之类的工具,绕过主机文件。
dig
dns hosts
dns ×1
hosts ×1