{"id":150305,"date":"2019-07-28T13:06:36","date_gmt":"2019-07-28T05:06:36","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=150305"},"modified":"2019-07-04T12:08:43","modified_gmt":"2019-07-04T04:08:43","slug":"dns-over-https%ef%bc%88doh%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/dns-over-https%ef%bc%88doh%ef%bc%89.html","title":{"rendered":"\u8c37\u6b4c\u5ba3\u5e03\u5176 DNS Over HTTPS\uff08DoH\uff09\u670d\u52a1\u6b63\u5f0f\u666e\u904d\u53ef\u7528"},"content":{"rendered":"
\u8c37\u6b4c\u8fd1\u671f\u5ba3\u5e03\u5176 DNS Over HTTPS\uff08DoH\uff09\u670d\u52a1\u6b63\u5f0f\u666e\u904d\u53ef\u7528\uff0c\u5e76\u4e14\u5b8c\u5168\u652f\u6301 RFC 8484 \u6587\u6863\u3002\u8c37\u6b4c\u4e8e 2009 \u5e74\u63a8\u51fa Google Public DNS\uff0c\u5e76\u4e8e 2016 \u5e74\u5728\u6b64\u57fa\u7840\u4e0a\u63a8\u51fa DNS Over HTTPS\uff0c\u8fd9\u662f\u4e00\u9879\u5b9e\u9a8c\u6027\u670d\u52a1\uff0c\u65e8\u5728\u52a0\u5f3a DNS \u7684\u5b89\u5168\u6027\uff0c\u6b64\u524d\u7684\u670d\u52a1\u5165\u53e3\u662f https:\/\/dns.google.com\/experimental\u00a0\u3002<\/p>\n
\u73b0\u5728\u8c37\u6b4c\u5ba3\u5e03 DoH \u5df2\u7ecf\u6b63\u5f0f\u666e\u904d\u53ef\u7528\uff0c\u5e76\u4e14\u5b8c\u5168\u652f\u6301 RFC 8484 \u6587\u6863\uff0c\u540c\u65f6\u7ee7\u7eed\u63d0\u4f9b\u5bf9 2016 \u5e74\u63a8\u51fa\u7684 JSON API \u7684\u652f\u6301\u3002\u7528\u6237\u53ef\u4ee5\u4f7f\u7528 dns.google \u57df\u4e2d\u7684 DoH \u89e3\u6790 DNS\uff0c\u5176\u4e2d\u5305\u542b\u4e0e\u5e38\u89c4 DNS \u670d\u52a1\u76f8\u540c\u7684\u4efb\u64ad\u5730\u5740\uff0c\u5982 8.8.8.8\u3002\u65b0\u7684\u8bbf\u95ee\u5165\u53e3\u662f\uff1a<\/p>\n
\u8c37\u6b4c\u8fd8\u8868\u793a\u5176\u6b63\u5728\u5f03\u7528\u6b64\u524d\u7684 \/experimental URL \u8def\u5f84\u548c dns.google.com \u7684\u4e92\u8054\u7f51\u8349\u6848 DoH \u652f\u6301\uff0c\u5e76\u5c06\u5728\u51e0\u4e2a\u6708\u5185\u7ed3\u675f\u5bf9\u5b83\u4eec\u7684\u652f\u6301\u3002\u201c\u501f\u52a9 Google Public DNS\uff0c\u6211\u4eec\u81f4\u529b\u4e8e\u901a\u8fc7 DoH \u548c DNS over TLS\uff08DoT\uff09\u63d0\u4f9b\u5feb\u901f\u3001\u79c1\u5bc6\u548c\u5b89\u5168\u7684 DNS \u89e3\u6790\u201d\uff0c\u8c37\u6b4c\u4ecb\u7ecd\uff1a\u201c\u6211\u4eec\u8ba1\u5212\u652f\u6301 JSON API\uff0c\u76f4\u5230\u6709\u4e00\u4e2a\u7c7b\u4f3c\u4e8e webapp \u53cb\u597d\u7684 DoH \u6807\u51c6\u3002\u201d<\/p>\n
\u5bf9\u4e8e\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u8981\u4f7f\u7528 GA \u7248\u672c\u7684 DoH \u670d\u52a1\uff0c\u9700\u8981\u914d\u7f6e\u5176\u5e94\u7528\u4ee5\u4f7f\u7528\u65b0\u7684 DoH \u8bbf\u95ee\u5165\u53e3\u5e76\u6b63\u786e\u5904\u7406 HTTP 4xx \u9519\u8bef\u548c 3xx \u91cd\u5b9a\u5411\u72b6\u6001\u4ee3\u7801\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/p>\n
\u5e94\u7528\u9700\u8981\u4f7f\u7528 dns.google \u800c\u4e0d\u662f dns.google.com\u3002\u53ef\u4ee5\u76f4\u63a5\u5728 Google Public DNS \u5730\u5740\u4e2d\u67e5\u8be2 dns.google\uff0c\u800c\u4e0d\u9700\u8981\u53e6\u5916\u7684 DNS \u67e5\u8be2\u3002<\/p>\n
\u4f7f\u7528\u65e7\u7248 \/experimental \u4e92\u8054\u7f51\u8349\u6848 DoH API \u7684\u5f00\u53d1\u4eba\u5458\u9700\u8981\u5207\u6362\u5230\u65b0\u7684 \/dns-query URL \u8def\u5f84\u5e76\u786e\u8ba4\u5b8c\u6574\u7684 RFC 8484 \u5408\u89c4\u6027\u3002\u8f83\u65e7\u7684 API \u4f7f\u7528 DoH \u6807\u51c6\u7684\u65e9\u671f\u8349\u7a3f\u4e2d\u7684\u529f\u80fd\u63a5\u53d7\u67e5\u8be2\uff0c\u8fd9\u4e9b\u529f\u80fd\u88ab\u65b0 API \u62d2\u7edd\u3002<\/p>\n
\u4f7f\u7528 JSON API \u7684\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528\u4e24\u4e2a\u65b0\u7684 GET \u53c2\u6570\uff0c\u8fd9\u4e9b\u53c2\u6570\u53ef\u7528\u4e8e DNS\/DoH \u4ee3\u7406\u6216 DNSSEC \u611f\u77e5\u5e94\u7528\u3002<\/p>\n
\u5177\u4f53\u6280\u672f\u7ec6\u8282\u53ef\u4ee5\u67e5\u770b DoH \u6587\u6863\uff0c\u8c37\u6b4c\u5b8c\u6574\u516c\u544a\u67e5\u770b\uff1a<\/p>\n
https:\/\/security.googleblog.com\/2019\/06\/google-public-dns-over-https-doh.html<\/p>\n","protected":false},"excerpt":{"rendered":"
\u8c37\u6b4c\u8fd1\u671f\u5ba3\u5e03\u5176 DNS Over HTTPS\uff08DoH\uff09\u670d\u52a1\u6b63\u5f0f\u666e\u904d\u53ef\u7528\uff0c\u5e76\u4e14\u5b8c\u5168\u652f\u6301 RFC 8484 \u6587\u6863\u3002 […]<\/p>\n","protected":false},"author":323,"featured_media":100862,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-150305","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/150305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=150305"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/150305\/revisions"}],"predecessor-version":[{"id":150766,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/150305\/revisions\/150766"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/100862"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=150305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=150305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=150305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}