为什么所有 *.dev 域都指向我的本地主机? [英] Why all *.dev domains target to my localhost?
问题描述
当你输入 *.dev 域时,例如 juas.dev 它指向 localhost,有人知道为什么吗?
When you type *.dev domains, for example juas.dev it points to localhost, someone know why ?
(我的hosts没有修改,请求也没有出去)
(My hosts are not modified, and the request dont go outside)
推荐答案
查找该名称的 TXT 记录,事情就会变得更清楚 :-)
Do a lookup for a TXT record at that name and things will become clearer :-)
.DEV 是最近注册的顶级域,目前处于初始阶段,它植入了数据,旨在提醒私下使用它的人他们即将遇到问题.其中一部分是仅返回地址 127.0.53.53,这在日志文件和类似文件中非常特殊,而且在定义为 IPv4 环回的 127.0.0.0/8 块中也很明显.这就是您拥有自己的机器的原因.在几个月左右的时间里,您几乎肯定会开始获得 NXDOMAIN.
.DEV is a recently registered top-level domain, and currently in an initial period where it's seeded with data meant to alert people using it privately that they're about to have a problem. Part of that is to return only the address 127.0.53.53, which is special enough to be obvious in log files and similar, but also in the 127.0.0.0/8 block that is defined as loopback for IPv4. Which is why you get your own machine. In a few months or so, you'll almost certainly start getting NXDOMAINs instead.
这篇关于为什么所有 *.dev 域都指向我的本地主机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!