Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个奇怪的问题,对于许多站点,如果我尝试 ssh 进入它们,我会得到“无法解决”作为响应,但是如果我尝试 ping 或 nslookup,它会发现同一个站点就好了。这些服务之间的名称解析工作方式是否存在差异?
问题肯定与名称有关,我可以使用 ip 地址而不是名称很好地连接到相同的站点,并且我可以使用提供的名称连接到 /etc/hosts (使用我通过 ping 找到的名称或nslookup 在同一台机器上)
我在 Fedora 19 机器上遇到了这个问题。