{"id":225359,"date":"2020-12-03T06:19:34","date_gmt":"2020-12-02T22:19:34","guid":{"rendered":"http:\/\/4563.org\/?p=225359"},"modified":"2020-12-03T06:19:34","modified_gmt":"2020-12-02T22:19:34","slug":"%e5%88%86%e4%ba%ab%e4%b8%80%e4%b8%aa%e9%9d%9e%e5%b8%b8%e7%81%b5%e6%b4%bb%e5%85%a8%e6%8f%92%e4%bb%b6%e9%85%8d%e7%bd%ae%e7%9a%84-dns-%e8%bd%ac%e5%8f%91%e5%99%a8-mosdns","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=225359","title":{"rendered":"\u5206\u4eab\u4e00\u4e2a\u975e\u5e38\u7075\u6d3b\u5168\u63d2\u4ef6\u914d\u7f6e\u7684 DNS \u8f6c\u53d1\u5668 mosdns"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5206\u4eab\u4e00\u4e2a\u975e\u5e38\u7075\u6d3b\u5168\u63d2\u4ef6\u914d\u7f6e\u7684 DNS \u8f6c\u53d1\u5668 mosdns               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Rilimu <\/span>  <span><i><\/i> 7<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u9879\u76ee\u5730\u5740: IrineSistiana\/mosdns<\/p>\n<p>\u914d\u7f6e\u65b9\u5f0f\u5f88\u72ec\u7279\uff0c\u8f6c\u53d1\u6d41\u7a0b\u5b8c\u5168\u7531\u7528\u6237\u81ea\u5df1\u8bbe\u7f6e\u3002\u5927\u6982\u5c31\u662f\uff0cmosdns \u63d0\u4f9b\u8fd9\u4e9b\u57fa\u672c\u529f\u80fd\u6a21\u5757\uff0c\u80fd\u5b9e\u73b0\u4ec0\u4e48\uff0c\u5168\u9760\u7528\u6237\u81ea\u5df1\u60f3\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u9879\u76ee wiki \u91cc\u539f\u6587:<\/p>\n<p>mosdns \u662f\u4e00\u4e2a\u7075\u6d3b\u7684 DNS \u8f6c\u53d1\u5668\u3002\u7075\u6d3b\u662f\u6307\uff0cmosdns \u53ef\u4ee5\u901a\u8fc7\u7ec4\u5408\u4e0d\u540c\u7684\u63d2\u4ef6\uff0c\u5b9e\u73b0\u60f3\u8981\u7684\u529f\u80fd\u3002\u5982\u679c\u81ea\u5e26\u63d2\u4ef6\u65e0\u6cd5\u6ee1\u8db3\u9700\u6c42\uff0cmosdns \u8fd8\u63d0\u4f9b\u4e86\u63d2\u4ef6\u6846\u67b6\u4f9b\u9ad8\u7ea7\u7528\u6237\u5411 mosdns \u5185\u6dfb\u52a0\u65b0\u63d2\u4ef6\u3002<\/p>\n<p>\u542c\u8d77\u6765\u5f88\u50cf coredns? \u662f\u7684\uff0cmosdns \u548c coredns \u4e00\u6837\uff0c\u6bcf\u4e2a\u63d2\u4ef6\u5b9e\u73b0\u4e00\u4e2a\u529f\u80fd\u3002\u4f46 mosdns \u7684\u63d2\u4ef6\u6267\u884c\u987a\u5e8f\u53ef\u52a8\u6001\u8c03\u6574\u3002<\/p>\n<p>\u76ee\u524d mosdns \u7684\u63d2\u4ef6\u53ef\u4ee5\u5b9e\u73b0:<\/p>\n<p>\u4e22\u5f03\u6216\u5c4f\u853d\u5e94\u7b54\u3002(blackhole) \u4e3a\u8bf7\u6c42\u9644\u52a0 ECS (\u53ef\u4ee5\u662f\u9884\u8bbe\u5730\u5740\uff0c\u4e5f\u53ef\u4ee5\u81ea\u52a8\u7528\u5ba2\u6237\u7aef\u5730\u5740)\u3002\u5220\u9664 ECS \u3002(ecs) DNS \u8f6c\u53d1\uff0c\u652f\u6301 DoT\/DoH \u534f\u8bae\u3002(forward) \u5c06\u5e94\u7b54 IP \u5199\u5165 ipset \u3002(ipset) \u5339\u914d\u8bf7\u6c42\u57df\u540d\u548c\u5e94\u7b54\u7684 CNAME \u57df\u540d\u3002(domain_matcher) \u5339\u914d\u5e94\u7b54\u7684 IP \u548c\u5ba2\u6237\u7aef\u5730\u5740\u3002(ip_matcher) \u5339\u914d\u8bf7\u6c42\u7684\u7c7b\u578b\u3002(qtype_matcher) \u975e\u52a0\u5bc6 DNS \u670d\u52a1\u5668\u3002(plain_server) DoH \u670d\u52a1\u5668\u3002\u652f\u6301\u5173\u95ed TLS \u914d\u5408\u53cd\u5411\u4ee3\u7406\u4f7f\u7528\u3002( http_server) hosts \u529f\u80fd\u3002(hosts) \u81ea\u5b9a\u4e49\u4e0a\u8ff0\u63d2\u4ef6\u7684\u6267\u884c\u987a\u5e8f\uff0c\u5b9e\u73b0\u6700\u9002\u5408\u81ea\u5df1\u7684\u8fd0\u884c\u65b9\u5f0f\u3002(sequence)<\/p>\n<p>\u6211\u4e3b\u8981\u662f\u7528\u6765\u5206\u6d41\u3002\u52aa\u529b\u914d\u7f6e\u540e\uff0c\u6210\u529f\u5b9e\u73b0\u4e86\u6211\u60f3\u8c61\u4e2d\u7684\u591a\u5730\u533a\u540c\u65f6\u9760\u4e0d\u540c\u57df\u540d\u9760\u4e0d\u540c IP \u9760\u4e0d\u540c ECS \u9760\u4e0d\u540c ipset \u7684\u5206\u6d41\u903b\u8f91\u3002\u771f\u7684\u975e\u5e38\u7075\u6d3b\u3002<\/p>\n<p>\u4e2a\u4eba\u611f\u89c9\u8fd8\u6709\u51e0\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u7279\u70b9: ip \u548c\u57df\u540d\u53ef\u4ee5\u4ece txt \u8868\u5bfc\u5165\u4e5f\u53ef\u4ee5\u4ece v2 \u7684\u89c4\u5219\u6587\u4ef6\u5bfc\u5165\u3002\u5f88\u517c\u5bb9\uff0c\u8def\u7531\u4e0a\u7528\u811a\u672c\u66f4\u65b0\u5f88\u65b9\u4fbf\u3002\u8bf7\u6c42\u6a21\u5757\u201c\u7528\u7684 AdguardHome \u7684\u7ec4\u4ef6\u9a71\u52a8\uff0c\u8fd0\u884c\u884c\u4e3a\u8ddf AdguardHome \u662f\u5dee\u4e0d\u591a\u4e00\u6837\u201d\uff0c\u6240\u4ee5\u53ef\u4ee5\u5b89\u5fc3\u914d\u7f6e\u591a\u4e2a\u4e0a\u6e38\uff0c\u7136\u540e\u6302\u5728 AdguardHome \u524d\u9762\u3002\u56e0\u4e3a\u6709\u4e00\u6837\u7684\u8d1f\u8f7d\u5747\u8861\u3002<\/p>\n<p>\u7136\u540e\u7b2c\u4e00\u6b21\u914d\u7f6e\u53ef\u80fd\u8981\u628a\u6574\u4e2a wiki \u770b\u5b8c\uff0c\u4e0d\u7136\u4e0d\u7406\u89e3 mosdns \u7684\u8fd0\u884c\u65b9\u5f0f\u914d\u7f6e\u8d77\u6765\u4f1a\u6709\u70b9\u8ff7\u3002<\/p>\n<p>\u611f\u8c22\u4f5c\u8005\u3002\u5df2\u4f7f\u7528\u4f5c\u8005\u7684 mos-chinadns \u5f88\u4e45\u4e86\u3002\u4eca\u5929\u6210\u529f\u5207\u6362\u5230 mosdns \u3002\u5206\u4eab\u5230 V2EX \u6765\u652f\u6301\u4f5c\u8005\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4557601\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u7a7a\u8bd5\u8bd5\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557602\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Rorysky <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u591a\u5730\u533a\u540c\u65f6\u9760\u4e0d\u540c\u57df\u540d\u9760\u4e0d\u540c IP \u9760\u4e0d\u540c ECS \u9760\u4e0d\u540c ipset \u5206\u6d41<\/p>\n<p>\u8bf7\u6559\u4e0b\uff0c\u8d70\u4ee3\u7406\u7684\u65f6\u5019 dns \u662f\u9009 \u9760\u8fd1\u670d\u52a1\u5668\u7684 \u8fd8\u662f \u9760\u8fd1\u5ba2\u6237\u7aef\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557603\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : INTEL2333 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53d1\u73b0\u5b9d\u85cf<br \/>https:\/\/github.com\/IrineSistiana\/mosdns\/wiki\/Plugin#ecs<br \/>\u53ef\u4ee5\u89e3\u51b3\u53cc\u6808 v4v6 \u4e0d\u540c\u8fd0\u8425\u5546\u7684\u89e3\u6790\u95ee\u9898\u4e86<br \/>@zro                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557604\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Rilimu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Rorysky \u8d70\u4ee3\u7406\u7684\u65f6\u5019 dns \u5e94\u8be5\u8981\u9009\u9760\u8fd1\u670d\u52a1\u5668\u7684\u3002\u8fd9\u6837\u8def\u5f84\u6700\u77ed\u3002<\/p>\n<p>\u4f46\u4e0d\u5206\u6d41\u7684\u6d41\u91cf dns \u8981\u9009\u9760\u8fd1\u5ba2\u6237\u7aef\u7684\u3002<\/p>\n<p>\u6211\u73b0\u5728\u662f\u5148\u8bf7\u6c42\u672c\u5730\u670d\u52a1\u5668\uff0c\u7136\u540e\u6839\u636e IP \u6216\u57df\u540d\u533a\u5206\u5730\u57df\uff0c\u5982\u679c\u662f\u672c\u5730\u7684\u7ed3\u679c\u5c31\u63a5\u53d7\uff0c\u5982\u679c\u4e0d\u662f\u5c31\u5427 ecs \u53bb\u6389\u518d\u8bf7\u6c42\u5bf9\u5e94\u7684\u8fdc\u7a0b\u670d\u52a1\u5668\u3002<\/p>\n<p>\u8bf7\u6559\u4e0b\u5927\u4f6c\u4eec\uff0c\u8fd9\u4e2a\u65b9\u6848\u6709\u6ca1\u6709\u4ec0\u4e48\u95ee\u9898\uff0c\u80fd\u505a\u5230\u4e24\u8fb9\u90fd\u6700\u597d\u5417?                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557605\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : szpunk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u65b0\u7248\u628a\u76d1\u542c server \u4f5c\u4e3a\u63d2\u4ef6\u5c31\u5f88\u7075\u6d3b\uff0c\u53ef\u4ee5\u5355\u7a0b\u5e8f\u5f00\u51e0\u4e2a\u670d\u52a1\u5668\u76d1\u542c\uff0c\u505a\u4e0d\u540c\u7684\u6d41\u7a0b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557606\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gianni238 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4e0a\u53bb\u4e0d\u9519                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557607\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Rilimu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @szpunk \u611f\u8c22\u63d0\u9192\uff0c\u4e4b\u524d\u6ca1\u60f3\u5230\u8fd8\u80fd\u8fd9\u4e48\u64cd\u4f5c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557608\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kobayashi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u5f88\u7075\u6d3b\uff0c\u4f46\u597d\u50cf\u6ca1\u529e\u6cd5\u5bf9 IP \u7b5b\u9009\u505a\u5e76\u53d1\uff1a\u540c\u65f6\u5411 2 \u4e2a DNS \u8f6c\u53d1\uff0c\u6839\u636e\u7ed3\u6784\u662f\u5426\u5339\u914d China \u5730\u533a\u51b3\u5b9a\u662f\u5426\u91c7\u7528\u7ed3\u679c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5206\u4eab\u4e00\u4e2a\u975e\u5e38\u7075\u6d3b\u5168\u63d2\u4ef6\u914d\u7f6e\u7684 DN&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\/225359"}],"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=225359"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/225359\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225359"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}