
为什么 ping test.domain 的 ip 会是 127.0.0.1 ,这是 hosts 的什么高级用法嘛?系统是 mac os 12.3.1

为什么 ping test.domain 的 ip 会是 127.0.0.1 ,这是 hosts 的什么高级用法嘛?系统是 mac os 12.3.1
|
V1EerieMay 22, 2022 via Android
1
windows 无法复现
|
|
cxtrinityyMay 22, 2022
2
你看你 ping 的结果, placeholder ping statistics, 不知道为啥你 ping test.domain, 会变成 ping placeholder, 要不你把第二行的 placehoder 删掉试试?
|
|
3
@cxtrinityy 迷惑的就是第二行加着 placeholder 的时候,去掉以后当然就符合最常用的 hosts 规则了
|
|
julyclydeMay 23, 2022
4
man hosts 写着呢
For each host a single line should be present with the following information: IP_address canonical_hostname [aliases...] |