Firefox 启用 DNS over HTTPS 的方法

2018-04-03 19:32:35 +08:00
 Livid

首先,需要 Firefox Nightly 版本,也就是 60.0 或更新的版本:

https://www.mozilla.org/en-US/firefox/channel/desktop/

然后打开 about:config 修改以下三处:

network.trr.mode

作为实验的目的,这里推荐你修改为 3 试试。

network.trr.uri

修改为 https://1.1.1.1/dns-query

network.trr.bootstrapAddress

修改为 1.1.1.1


然后重启 Firefox。如何测试是否生效呢?首先试试能不能正常访问你平常去的那些网站,然后打开下面这个网站:

https://ipleak.net/

其中有一个 DNS Address 泄漏检测功能,如果你之前把 network.trr.mode 设置为 3 的话,那么恭喜你,你在这里会看到 0 servers。

36410 次点击
所在节点    DNS
44 条回复
leido
2018-08-14 09:48:46 +08:00
@feng0vx 用 1.0.0.1
leido
2018-08-14 09:54:11 +08:00
楼主最后写错了, 是 https://ipleak.net/
PP
2018-08-23 22:59:39 +08:00
研究了一个多小时,最后决定等 Firefox62 出来再说。
PP
2018-08-29 17:49:06 +08:00
Mozilla 的 DoH 试验结果出来啦,慢 6ms,影响甚微。估计 62 能够正式推出,不清楚是否会默认启用。

Results
Using HTTPS with a cloud service provider had only a minor performance impact on the majority of non-cached DNS queries as compared to traditional DNS. Most queries were around 6 milliseconds slower, which is an acceptable cost for the benefits of securing the data. However, the slowest DNS transactions performed much better with the new DoH based system than the traditional one – sometimes hundreds of milliseconds better.
https://blog.nightly.mozilla.org/files/2018/08/DNS-over-HTTPS-Performance-Improvement.png

https://blog.nightly.mozilla.org/2018/08/28/firefox-nightly-secure-dns-experimental-results/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/444059

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX