{"id":44585,"date":"2020-02-29T01:46:16","date_gmt":"2020-02-28T17:46:16","guid":{"rendered":"http:\/\/4563.org\/?p=44585"},"modified":"2020-02-29T01:46:16","modified_gmt":"2020-02-28T17:46:16","slug":"%e5%88%86%e4%ba%ab%e4%b8%80%e4%b8%8b%e5%b1%80%e5%9f%9f%e7%bd%91%e5%86%85%e7%a7%91%e5%ad%a6%e4%b8%8a%e7%bd%91%e7%9a%84dns%e8%ae%be%e7%bd%ae%ef%bc%8c%e9%ab%98%e6%89%8b%e5%8b%bf%e5%96%b7%e3%80%82","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=44585","title":{"rendered":"\u5206\u4eab\u4e00\u4e0b\u5c40\u57df\u7f51\u5185\u79d1\u5b66\u4e0a\u7f51\u7684DNS\u8bbe\u7f6e\uff0c\u9ad8\u624b\u52ff\u55b7\u3002"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>imswing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 21:44:31\t<\/p>\n<h3>\u5206\u4eab\u4e00\u4e0b\u5c40\u57df\u7f51\u5185\u79d1\u5b66\u4e0a\u7f51\u7684DNS\u8bbe\u7f6e\uff0c\u9ad8\u624b\u52ff\u55b7\u3002<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 imswing \u4e8e 2019-11-23 21:47 \u7f16\u8f91 <\/p>\n<p> \u8fd9\u51e0\u5929\u770b\u5230\u597d\u591a\u4eba\u5728\u7ea0\u7ed3DNS\u7684\u4e8b\uff0c\u4e0d\u662f\u6c61\u67d3\u5c31\u662f\u65ad\u6d41\uff0c\u5177\u4f53\u539f\u56e0\u672a\u77e5\uff0c\u6211\u4ec5\u5206\u4eab\u4e00\u4e0b\u6211\u8ba4\u4e3a\u6bd4\u8f83\u79d1\u5b66\u7684DNS\u8bbe\u7f6e\u3002<\/p>\n<p>  \u9996\u5148\u58f0\u660e\uff0c\u53ea\u662f\u5206\u4eab\u6211\u7684\u8bbe\u7f6e\uff0c\u4e0d\u4e00\u5b9a\u9002\u5408\u6240\u6709\u4eba\uff0c\u6b65\u9aa4\u6bd4\u8f83\u7b80\u5316\uff0c\u6709\u95ee\u9898\u7684\u53ef\u4ee5\u7559\u8a00\u6216\u8005google\u89e3\u51b3\uff0c\u914d\u7f6e\u53ef\u4ee5\u81ea\u5df1\u7075\u6d3b\u4fee\u6539\uff0c\u4e0d\u4e00\u5b9a\u62d8\u6ce5\u4e00\u79cd\u3002<\/p>\n<p>  \u524d\u63d0\uff1a\u5c40\u57df\u7f51\u5185\u8f6f\u8def\u7531\u4e00\u53f0\uff08\u6216\u8005\u53ef\u4ee5\u8dd1linux\u670d\u52a1\u5668\u7684\u8bbe\u5907\u4e5f\u53ef\u4ee5\uff0c\u5728\u8f6f\u8def\u7531\u5185\u521b\u5efa\u4e00\u53f0linux\u670d\u52a1\u5668\uff08\u5df2\u6709\u53ef\u4ee5\u7565\u8fc7\uff09<\/p>\n<p>  \u4f7f\u7528root\u7528\u6237\u767b\u5f55\u670d\u52a1\u5668\uff1a<\/p>\n<p>  \u642d\u5efaDNSCrypt\u670d\u52a1<br \/>  \u4e0b\u8f7d\u5730\u5740https:\/\/github.com\/dnscrypt\/dnscrypt-proxy\/releases\/tag\/2.0.33\uff0c\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u5e76\u89e3\u538b\uff0c\u8fd0\u884c\u5b89\u88c5\u547d\u4ee4dnscrypt-proxy -service install<br \/>  \u521b\u5efa\u914d\u7f6e\u6587\u4ef6\u5939mkdir -p \/etc\/dnscrypt-proxy\/dnscrypt-proxy-config\uff0c\u4e0b\u8f7d\u8fd9\u4e9b\u6587\u4ef6\u5230\u8fd9\u4e2a\u6587\u4ef6\u5939\u91cc\u3002https:\/\/github.com\/CNMan\/dnscrypt-proxy-config<br \/>  \u6253\u5f00\u914d\u7f6e\u6587\u4ef6dnscrypt-proxy.toml\uff0c\u4fee\u6539\u7aef\u53e3\u53f7listen_addresses = [&#8216;0.0.0.0:5335&#8217;]\uff0c\u540c\u6837\u4e5f\u53ef\u4ee5\u4fee\u6539\u4e0b\u9762\u7684DNS server\uff0c\u53ef\u4ee5\u53bb\u8fd9\u91cc\u627e\u66f4\u591a\u7684server\u3002https:\/\/dnscrypt.info\/public-servers\/<br \/>  \u4fee\u6539\u5b8c\u6210\u540e\u91cd\u542f\u670d\u52a1systemctl restart dnscrypt-proxy<br \/>  \u8fd9\u65f6\u5019\u68c0\u67e5\u4e00\u4e0b\u670d\u52a1\u80fd\u5426\u6b63\u5e38\u89e3\u6790\u57df\u540ddig FB.com -p 5335\uff0c\u5982\u679c\u8fd4\u56deip\u5219\u53cd\u6620\u670d\u52a1\u6b63\u5e38\uff0c\u8fd4\u56de\u65e0\u7ed3\u679c\u7684\u8bdd\u8bf7\u91cd\u590d\u4ee5\u4e0a\u6b65\u9aa4\u3002<\/p>\n<p>  \u5b89\u88c5dnsmasq\u670d\u52a1<br \/>  \u5b89\u88c5dnsmasq\u5f88\u7b80\u5355\uff0c\u4e00\u822c\u7cfb\u7edf\u90fd\u4f1a\u9ed8\u8ba4\u5b89\u88c5\uff0c\u5982\u679c\u6ca1\u6709\u5b89\u88c5\u7684\u8bdd\uff0c\u8bf7\u4f7f\u7528\u7cfb\u7edf\u81ea\u5e26\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u5b89\u88c5\uff0c\u6211\u7528\u7684debian\u7cfb\u7edf\uff0c\u6240\u4ee5\u7528apt install dnsmasq -y\u5373\u53ef<br \/>  \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>  port=553<br \/>  server=127.0.0.1#5335<br \/>  conf-dir=\/etc\/dnsmasq.d<\/p>\n<p>  \u53ea\u9700\u8981\u4fee\u6539\u8fd9\u4e09\u5904\u5c31\u884c\u3002\u8fd9\u4e00\u6b65\u9aa4\u5c31\u7ed3\u675f\u4e86\u3002<\/p>\n<p>  \u4f7f\u7528dnsmasq-china-list\u4f18\u5316\u56fd\u5185\u57df\u540d\u89e3\u6790<br \/>  \u627e\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u8fd0\u884cwget https:\/\/raw.githubusercontent.com\/felixonmars\/dnsmasq-china-list\/master\/install.sh\uff0c\u5b8c\u6210\u540e\u8fd0\u884cbash install.sh\uff0c\u7ed3\u675f\u3002<\/p>\n<p>  \u642d\u5efaAdguardHome<br \/>  \u53bb\u8fd9\u4e2a\u9875\u9762\u4e0b\u8f7d\u5bf9\u5e94\u7cfb\u7edf\u7248\u672c\u7684\u5b89\u88c5\u5305\u5e76\u89e3\u538bhttps:\/\/github.com\/AdguardTeam\/AdGuardHome\/releases<br \/>  \u8fdb\u5165\u89e3\u538b\u6587\u4ef6\u5939\u540e\u76f4\u63a5\u8fd0\u884c.\/AdGuardHome\uff0c\u6839\u636e\u547d\u4ee4\u884c\u663e\u793a\u7684ip\u7528\u6d4f\u89c8\u5668\u6253\u5f00\uff0c\u8fdb\u884c\u521d\u59cb\u5316\u8bbe\u7f6e\uff0c\u8fd9\u4e00\u6b65\u90fd\u662f\u56fe\u5f62\u5316\uff0c\u6309\u8bf4\u660e\u8bbe\u7f6e\u5373\u53ef\u3002<br \/>  \u8bbe\u7f6e\u5b8c\u6210\u540e\u8fdb\u5165\u4e3b\u754c\u9762\uff0c\u6253\u5f00\u8bbe\u7f6e-&gt;DNS\u8bbe\u7f6e\uff0c\u5220\u6389\u4e0a\u6e38 DNS \u670d\u52a1\u5668\u91cc\u7684\u9ed8\u8ba4\u503c\uff0c\u66ff\u6362\u4e3a127.0.0.1:553 \u5bf9\uff0c\u6ca1\u9519\uff0cdnsmasq\u7684\u5730\u5740\uff0c\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u7136\u540e\u56de\u5230\u547d\u4ee4\u884cctrl + c \u505c\u6389\u670d\u52a1\uff0c\u5c06adguard\u5b89\u88c5\u5230\u7cfb\u7edf\u670d\u52a1\u5185\uff0c.\/AdGuardHome -s install<\/p>\n<p>  \u8fd9\u65f6\u5019DNS\u670d\u52a1\u5df2\u7ecf\u642d\u5efa\u5b8c\u6bd5\uff0c\u53bb\u4f60\u7684\u8def\u7531\u5668\u6216\u8005\u5176\u4ed6\u8bbe\u5907\uff0c\u5c31\u662f\u5206\u914dDHCP\u7684\u5730\u65b9\uff0c\u628aDNS\u670d\u52a1\u5668\u6539\u6210\u521a\u521a\u88c5\u8fd9\u4e9b\u670d\u52a1\u7684\u673a\u5668\u7684ip\u5730\u5740\u3002<br \/>  \u6216\u8005\u4f60\u4e5f\u53ef\u4ee5\u7528AdGuard \u5185\u7f6e\u7684 DHCP \u670d\u52a1\u5668\u6765\u63a5\u7ba1\u5c40\u57df\u7f51\u5185DHCP\u5206\u914d\uff0c\u770b\u4f60\u7684\u7231\u597d\u3002<br \/>  \u4ee5\u4e0a\u8bbe\u7f6e\u5c31\u5b8c\u6210\u4e86\uff0cDNS\u6c61\u67d3\u4ece\u6b64\u8bf4byebye\u3002<\/p>\n<p>  PS\uff1aAdguard\u8fd8\u53ef\u4ee5\u6709\u5b89\u5168\u6d4f\u89c8\u548c\u53bb\u5e7f\u544a\u7684\u670d\u52a1\uff0c\u4f60\u4eec\u81ea\u5df1\u53bb\u627e\u8fc7\u6ee4\u5217\u8868\u53bb\u73a9\u5427\u3002<br \/>  \u5b8c\u7ed3\u3002<\/p>\n<p>  https:\/\/i.loli.net\/2019\/11\/23\/5rsedkLtuiqSU6B.png<br \/>  https:\/\/i.loli.net\/2019\/11\/23\/Gbjl4DwkOy81nSW.png\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>imswing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-24 09:20:50\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9b54\u5c0a \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-24 09:08<br \/>  \u5927\u4f6c\u80fd\u89e3\u91ca\u4e0bdnsmasq-china-list \u8ddfAdguardHome\u7684\u5de5\u4f5c\u5173\u7cfb\u4e5f\u5c31\u662f\u539f\u7406\u5417<\/p>\n<p> dnsmasq-china-list\u5bf9\u56fd\u5185\u5e38\u89c1\u7684\u57df\u540d\u505a\u4e86\u5206\u6d41\uff0c\u7528\u56fd\u5185DNS\u52a0\u901f\u89e3\u6790<br \/>  \u6574\u4e2a\u5c40\u57df\u7f51\u7684\u89e3\u6790\u662f\u8fd9\u6837\u7684<br \/>  device -&gt; AdguardHome -&gt; dnsmasq -&gt; dnscrpt\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>asp<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 21:47:56\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u521a\u770b\u5230\u4e4b\u524d\u6709\u4e2a\u5e16\u5b50\u51fa\u6765\u00b7<br \/>  \u5c31\u6765\u4e86\u56fe\u6587\u6559\u7a0b\uff0c\uff0c<br \/>  \u652f\u6301\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>imswing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 21:49:04\t<\/p>\n<h3><\/h3>\n<p>  \t\tasp \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 21:47<br \/>  \u521a\u770b\u5230\u4e4b\u524d\u6709\u4e2a\u5e16\u5b50\u51fa\u6765\u00b7<br \/>  \u5c31\u6765\u4e86\u56fe\u6587\u6559\u7a0b\uff0c\uff0c<br \/>  \u652f\u6301\u4e00\u4e0b<\/p>\n<p> :lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hcyme<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 21:50:39\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u652f\u6301\u4e8c\u4e0b\u5b50\uff0c\u8c22\u8c22\u5206\u4eab\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u662f\u6211<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 22:00:10\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u706b\u94b3\u5218\u660e-\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u0430dmin<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 22:03:33\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6536\u85cf\u4e86\u597d\u4e1c\u897f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xcy1020<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 22:12:52\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u652f\u6301ECS\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>imswing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 22:32:45\t<\/p>\n<h3><\/h3>\n<p>  \t\txcy1020 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 22:12<br \/>  \u4e0d\u652f\u6301ECS<\/p>\n<p> \u4e0d\u9700\u8981\uff0cDOH\u5f88\u9999\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>vagrant<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 22:54:41\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5206\u4eab\uff0c\u6b63\u597d\u5229\u7528\u624b\u4e0a\u7684\u95f2\u7f6e\u5c0f\u9e21\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>shares<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 23:10:29\t<\/p>\n<h3><\/h3>\n<p>  \t\t500G\u7684\u5c0f\u9e21\u7684\u6d41\u91cf\u4e0d\u591f\u7528\u5427\uff1f\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>imswing \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/44585"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44585"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/44585\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44585"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}