在macOS上,``本地主机''解析为我的DNS提供程序的IP,而不是127.0.0.1

On my computer running macos, most applications (chrome/chromium are exceptions) resolve localhost as the IP address of my DNS service:

% host localhost     
localhost.ade5bb.dns.nextdns.io has address 45.90.28.0
localhost.ade5bb.dns.nextdns.io has IPv6 address 2a07:a8c0::

我不确定它从哪里得到的。这是/ etc / hosts的内容:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost

我从未将nextdns配置添加到我的计算机,但将其添加到了我的路由器。 (Nextdns是我正在使用的DNS提供程序)。

我还尝试手动将另一台DNS服务器输入我的系统偏好设置,以查看它是否会更改解析本地主机的方式,并且没有任何区别。

我还能检查什么?

评论