{"id":114375,"date":"2026-10-09T06:40:50","date_gmt":"2026-10-08T22:40:50","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/114375.html"},"modified":"2026-10-09T06:40:50","modified_gmt":"2026-10-08T22:40:50","slug":"coredns-bind-%e6%8f%92%e4%bb%b6%e8%af%a6%e8%a7%a3%ef%bc%9a%e7%b2%be%e7%a1%ae%e6%8e%a7%e5%88%b6-dns-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9b%91%e5%90%ac%e5%9c%b0%e5%9d%80%e4%b8%8e%e6%8e%a5%e5%8f%a3%e7%bb%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/114375.html","title":{"rendered":"CoreDNS bind \u63d2\u4ef6\u8be6\u89e3\uff1a\u7cbe\u786e\u63a7\u5236 DNS \u670d\u52a1\u5668\u76d1\u542c\u5730\u5740\u4e0e\u63a5\u53e3\u7ed1\u5b9a"},"content":{"rendered":"<ul class=\"gcb-tag-list\">\n<li><span class=\"gcb-tag\">\u540e\u7aef<\/span><\/li>\n<li><span class=\"gcb-tag\">\u7f51\u7edc<\/span><\/li>\n<li><span class=\"gcb-tag\">\u4e91\u539f\u751f<\/span><\/li>\n<\/ul>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011coredns<\/h3>\n<p class=\"gcb-project-desc\">CoreDNS is a DNS server that chains plugins<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/co\/coredns<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h3>\u5bfc\u8bfb<\/h3>\n<p>bind \u662f CoreDNS \u4e2d\u7528\u4e8e\u8986\u76d6\u670d\u52a1\u5668\u9ed8\u8ba4\u76d1\u542c\u5730\u5740\u7684\u63d2\u4ef6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;CoreDNS \u7684\u76d1\u542c\u5668\u4f1a\u7ed1\u5b9a\u5230\u901a\u914d\u7b26\u5730\u5740&#xff08;\u5373\u6240\u6709\u7f51\u5361\u63a5\u53e3&#xff09;&#xff0c;\u800c bind \u5141\u8bb8\u4f60\u5c06\u76d1\u542c\u5668\u7cbe\u786e\u7ed1\u5b9a\u5230\u6307\u5b9a\u7684 IP \u5730\u5740\u6216\u7f51\u5361\u63a5\u53e3\u540d&#xff08;\u5982 lo&#xff09;&#xff0c;\u5e76\u652f\u6301\u901a\u8fc7 except \u5b50\u6307\u4ee4\u6392\u9664\u90e8\u5206\u5730\u5740\u3002\u8bfb\u5b8c\u672c\u6587&#xff0c;\u4f60\u5c06\u638c\u63e1 bind \u7684\u5b8c\u6574\u8bed\u6cd5\u3001\u63a5\u53e3\u540d\u7ed1\u5b9a\u4e0e\u591a\u5730\u5740\u5408\u5e76\u884c\u4e3a\u3001except \u6392\u9664\u89c4\u5219&#xff0c;\u4ee5\u53ca\u591a\u670d\u52a1\u5668\u5757\u5171\u7528\u7aef\u53e3\u65f6\u5982\u4f55\u907f\u514d\u76d1\u542c\u5668\u4e89\u7528\u7b49\u5b9e\u6218\u65b9\u6848&#xff0c;\u5e76\u6df1\u5165\u7406\u89e3\u5176\u5728 CoreDNS \u6e90\u7801\u4e2d\u7684\u5b9e\u73b0\u539f\u7406\u3002<\/p>\n<h3>\u529f\u80fd\u6982\u8ff0<\/h3>\n<p>bind \u63d2\u4ef6\u7684\u6838\u5fc3\u804c\u8d23\u662f&#xff1a;\u8986\u76d6\u670d\u52a1\u5668&#xff08;server&#xff09;\u5e94\u7ed1\u5b9a\u7684\u76d1\u542c\u4e3b\u673a\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;\u76d1\u542c\u5668\u7ed1\u5b9a\u5230\u901a\u914d\u7b26\u4e3b\u673a&#xff08;wildcard host&#xff09;&#xff0c;\u5373 0.0.0.0 \/ :: \u8fd9\u7c7b\u6240\u6709\u63a5\u53e3\u5730\u5740&#xff1b;\u5982\u679c\u4f60\u5e0c\u671b\u76d1\u542c\u5668\u53ea\u7ed1\u5b9a\u5230\u67d0\u4e2a\u7279\u5b9a IP&#xff08;\u4f8b\u5982\u4ec5\u672c\u673a\u56de\u73af\u5730\u5740&#xff09;&#xff0c;\u5c31\u9700\u8981\u4f7f\u7528 bind\u3002<\/p>\n<p>\u8be5\u63d2\u4ef6\u5728 plugin\/bind\/bind.go \u4e2d\u6ce8\u518c&#xff0c;\u5176\u5185\u90e8\u7ed3\u6784\u975e\u5e38\u7b80\u5355&#xff1a;<\/p>\n<p>type bind struct {<br \/>\nNext   plugin.Handler<br \/>\naddrs  []string<br \/>\nexcept []string<br \/>\n}<\/p>\n<p>bind \u5e76\u4e0d\u53c2\u4e0e DNS \u8bf7\u6c42\u5904\u7406\u94fe&#xff08;\u5b83\u4e0d\u5b9e\u73b0 ServeDNS \u7684\u8f6c\u53d1\u903b\u8f91&#xff09;&#xff0c;\u800c\u662f\u4f5c\u4e3a\u201c\u914d\u7f6e\u578b\u201d\u6307\u4ee4&#xff0c;\u5728\u542f\u52a8\u9636\u6bb5\u628a\u89e3\u6790\u540e\u7684\u76d1\u542c\u5730\u5740\u5199\u5165\u670d\u52a1\u5668\u7684\u914d\u7f6e&#xff08;ListenHosts&#xff09;&#xff0c;\u7531 CoreDNS \u6846\u67b6\u636e\u6b64\u521b\u5efa\u76d1\u542c\u5668\u3002<\/p>\n<h4>\u5173\u952e\u884c\u4e3a\u8981\u70b9<\/h4>\n<ul>\n<li>\u5982\u679c\u63d0\u4f9b\u591a\u4e2a\u5730\u5740&#xff0c;\u5219\u4f1a\u5728\u63d0\u4f9b\u7684\u6bcf\u4e00\u4e2a IP \u4e0a\u5404\u6253\u5f00\u4e00\u4e2a\u76d1\u542c\u5668\u3002<\/li>\n<li>\u6bcf\u4e2a\u5730\u5740\u53ef\u4ee5\u662f IP \u5730\u5740\u6216\u4e3b\u673a\u67d0\u4e2a\u7f51\u5361\u7684\u63a5\u53e3\u540d&#xff08;interface name&#xff09;\u3002<\/li>\n<li>\u6309\u63a5\u53e3\u540d\u7ed1\u5b9a&#xff0c;\u610f\u5473\u7740\u7ed1\u5b9a\u5230\u8be5\u63a5\u53e3\u5728\u542f\u52a8\u65f6\u6216\u91cd\u8f7d\u65f6\u6240\u62e5\u6709\u7684\u5168\u90e8 IP&#xff08;\u91cd\u8f7d\u7531 SIGHUP \u4fe1\u53f7\u6216\u914d\u7f6e\u6587\u4ef6\u53d8\u66f4\u89e6\u53d1&#xff09;\u3002<\/li>\n<li>\u5982\u679c\u7ed9\u5b9a\u7684\u53c2\u6570\u662f\u63a5\u53e3\u540d&#xff0c;\u4e14\u8be5\u63a5\u53e3\u62e5\u6709\u591a\u4e2a IP \u5730\u5740&#xff0c;CoreDNS \u5c06\u76d1\u542c\u8be5\u63a5\u53e3\u7684\u5168\u90e8 IP \u5730\u5740&#xff08;\u5305\u62ec IPv4 \u548c IPv6&#xff09;\u3002<\/li>\n<\/ul>\n<h3>\u8bed\u6cd5\u8be6\u89e3<\/h3>\n<h4>\u57fa\u672c\u5f62\u5f0f<\/h4>\n<p>bind ADDRESS|IFACE &#8230;<\/p>\n<p>\u5176\u4e2d&#xff1a;<\/p>\n<ul>\n<li>ADDRESS|IFACE&#xff1a;\u4e00\u4e2a IP \u5730\u5740\u6216\u63a5\u53e3\u540d\u3002\u5f53\u63d0\u4f9b\u591a\u4e2a\u5730\u5740\u65f6&#xff0c;\u6bcf\u4e2a\u5730\u5740\u4e0a\u90fd\u4f1a\u6253\u5f00\u4e00\u4e2a\u76d1\u542c\u5668\u3002\u66f4\u591a\u7ec6\u8282\u53c2\u89c1\u4e0a\u6587\u201c\u529f\u80fd\u6982\u8ff0\u201d\u3002<\/li>\n<\/ul>\n<h4>\u6269\u5c55\u5f62\u5f0f&#xff1a;\u6392\u9664\u5730\u5740<\/h4>\n<p>bind ADDRESS|IFACE &#8230; {<br \/>\n    except ADDRESS|IFACE &#8230;<br \/>\n}<\/p>\n<ul>\n<li>except&#xff1a;\u7528\u4e8e\u6392\u9664\u4e0d\u60f3\u7ed1\u5b9a\u7684\u63a5\u53e3\u6216 IP \u5730\u5740\u3002\u9700\u8981\u6ce8\u610f&#xff0c;except \u9009\u9879\u53ea\u5bf9\u5f53\u524d\u8fd9\u6761 bind \u6307\u4ee4\u751f\u6548\u2014\u2014\u5982\u679c\u540c\u4e00\u4e2a server block \u4e2d\u4f7f\u7528\u4e86\u591a\u6761 bind \u6307\u4ee4&#xff0c;except \u4ec5\u6392\u9664\u672c\u6761\u6307\u4ee4\u5bf9\u5e94\u7684\u5730\u5740&#xff08;\u800c\u6240\u6709 bind \u6307\u4ee4\u89e3\u6790\u51fa\u7684\u5730\u5740\u6700\u7ec8\u4f1a\u88ab\u5408\u5e76&#xff0c;\u8be6\u89c1\u4e0b\u6587&#xff09;\u3002<\/li>\n<\/ul>\n<h3>\u8bed\u6cd5\u6821\u9a8c\u89c4\u5219&#xff08;\u6e90\u7801\u89c6\u89d2&#xff09;<\/h3>\n<p>\u4ece plugin\/bind\/setup.go \u7684 parse \u51fd\u6570\u53ef\u4ee5\u786e\u8ba4\u4ee5\u4e0b\u7ea6\u675f&#xff1a;<\/p>\n<ul>\n<li>bind \u540e\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u5730\u5740\u6216\u63a5\u53e3\u540d&#xff0c;\u5426\u5219\u62a5\u9519&#xff1a;at least one address or interface name is expected&#xff1b;<\/li>\n<li>except \u5b50\u6307\u4ee4\u540e\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u5730\u5740\u6216\u63a5\u53e3&#xff0c;\u5426\u5219\u62a5\u9519&#xff1a;at least one address or interface must be given to except subdirective&#xff1b;<\/li>\n<li>\u9664 except \u4e4b\u5916\u7684\u5b50\u6307\u4ee4\u5747\u89c6\u4e3a\u975e\u6cd5\u9009\u9879&#xff0c;\u62a5\u9519 invalid option %q\u3002<\/li>\n<\/ul>\n<p>\u5bf9\u5e94\u5730&#xff0c;plugin\/bind\/setup_test.go \u4e2d\u7684\u6d4b\u8bd5\u7528\u4f8b\u9a8c\u8bc1\u4e86\u8fd9\u4e9b\u8fb9\u754c&#xff1a;bind&#xff08;\u65e0\u53c2\u6570&#xff09;\u548c bind 1.2.3.invalid&#xff08;\u975e\u6cd5 IP&#xff09;\u90fd\u4f1a\u5bfc\u81f4\u914d\u7f6e\u89e3\u6790\u5931\u8d25\u3002<\/p>\n<h3>\u5b9e\u6218\u793a\u4f8b<\/h3>\n<p>\u4ee5\u4e0b\u793a\u4f8b\u5747\u6765\u81ea\u5b98\u65b9\u6587\u6863 plugin\/bind\/README.md&#xff0c;\u53ef\u76f4\u63a5\u5199\u5165 Corefile \u8fd0\u884c\u3002<\/p>\n<h4>\u4ec5\u5141\u8bb8\u672c\u673a\u8bbf\u95ee<\/h4>\n<p>\u8981\u8ba9\u4f60\u7684 DNS \u5957\u63a5\u5b57\u53ea\u80fd\u88ab\u672c\u673a\u8bbf\u95ee&#xff0c;\u7ed1\u5b9a\u5230\u56de\u73af\u5730\u5740 127.0.0.1&#xff08;localhost&#xff09;&#xff1a;<\/p>\n<p>. {<br \/>\n    bind 127.0.0.1<br \/>\n}<\/p>\n<h4>\u540c\u65f6\u652f\u6301 IPv4 \u4e0e IPv6 \u7684\u672c\u673a\u8bbf\u95ee<\/h4>\n<p>\u53ea\u5141\u8bb8\u672c\u673a\u540c\u65f6\u901a\u8fc7 IPv4 \u548c IPv6 \u534f\u8bae\u6808\u5904\u7406 DNS \u8bf7\u6c42&#xff1a;<\/p>\n<p>. {<br \/>\n    bind 127.0.0.1 ::1<br \/>\n}<\/p>\n<h4>\u591a\u6761 bind \u6307\u4ee4\u7684\u5408\u5e76<\/h4>\n<p>\u5982\u679c\u914d\u7f6e\u4e2d\u51fa\u73b0\u591a\u6761 bind \u63d2\u4ef6&#xff0c;\u6240\u6709\u5730\u5740\u4f1a\u88ab\u5408\u5e76\u5728\u4e00\u8d77\u3002\u4e0b\u9762\u7684\u5199\u6cd5\u4e0e\u4e0a\u4f8b\u5b8c\u5168\u7b49\u4ef7&#xff1a;<\/p>\n<p>. {<br \/>\n    bind 127.0.0.1<br \/>\n    bind ::1<br \/>\n}<\/p>\n<p>\u8fd9\u662f CoreDNS \u6846\u67b6\u5c42\u7684\u65e2\u5b9a\u884c\u4e3a&#xff1a;\u540c\u4e00 server block \u4e2d\u6240\u6709 bind \u6307\u4ee4\u89e3\u6790\u51fa\u7684 IP \u4f1a\u7edf\u4e00\u6536\u8fdb\u914d\u7f6e\u7684 ListenHosts \u5217\u8868&#xff08;\u8be6\u89c1\u201c\u6e90\u7801\u5b9e\u73b0\u539f\u7406\u201d&#xff09;\u3002<\/p>\n<h4>\u6309\u63a5\u53e3\u540d\u7ed1\u5b9a<\/h4>\n<p>\u4e0b\u9762\u7684 server block \u901a\u8fc7\u56de\u73af\u63a5\u53e3\u540d lo \u7ed1\u5b9a localhost&#xff08;\u540c\u65f6\u8986\u76d6 127.0.0.1 \u548c ::1&#xff09;&#xff1a;<\/p>\n<p>. {<br \/>\n    bind lo<br \/>\n}<\/p>\n<h4>\u4f7f\u7528 except \u6392\u9664\u5730\u5740<\/h4>\n<p>\u901a\u8fc7 IP \u6216\u63a5\u53e3\u540d\u6392\u9664\u67d0\u4e9b\u5730\u5740\u3002\u4e0b\u9762\u793a\u4f8b\u5c06\u53ea\u76d1\u542c ::1&#xff08;\u6216 lo \u63a5\u53e3\u4e0a\u5206\u914d\u7684\u5176\u4ed6\u5730\u5740&#xff0c;\u4f46\u6392\u9664 127.0.0.1&#xff09;&#xff1a;<\/p>\n<p>. {<br \/>\n    bind lo {<br \/>\n        except 127.0.0.1<br \/>\n    }<br \/>\n}<\/p>\n<h3>\u6e90\u7801\u5b9e\u73b0\u539f\u7406&#xff1a;\u4ece Corefile \u5230\u76d1\u542c\u5668<\/h3>\n<p>\u7406\u89e3 bind \u7684\u5b8c\u6574\u94fe\u8def&#xff0c;\u53ef\u4ee5\u8ba9\u4f60\u5728\u5b9e\u9645\u6392\u969c\u548c\u4e8c\u6b21\u5f00\u53d1\u65f6\u66f4\u6709\u7684\u653e\u77e2\u3002<\/p>\n<h4>\u7b2c\u4e00\u6b65&#xff1a;\u89e3\u6790\u4e0e IP \u5c55\u5f00<\/h4>\n<p>plugin\/bind\/setup.go \u4e2d\u7684 setup \u51fd\u6570\u662f\u5165\u53e3\u3002\u5b83\u5148\u901a\u8fc7 net.Interfaces() \u83b7\u53d6\u5bbf\u4e3b\u673a\u5f53\u524d\u6240\u6709\u7f51\u5361\u63a5\u53e3\u5217\u8868&#xff08;\u82e5\u5931\u8d25\u4ec5\u544a\u8b66&#xff0c;\u4e0d\u4f1a\u4e2d\u65ad\u542f\u52a8&#xff09;&#xff0c;\u7136\u540e\u5faa\u73af\u5904\u7406\u5f53\u524d server block \u4e2d\u51fa\u73b0\u7684\u6bcf\u4e00\u6761 bind \u6307\u4ee4&#xff1a;<\/p>\n<li>parse(c) \u89e3\u6790\u51fa addrs \u4e0e except \u5217\u8868&#xff1b;<\/li>\n<li>listIP(b.addrs, ifaces) \u628a\u6bcf\u4e2a\u53c2\u6570\u5c55\u5f00\u4e3a\u5177\u4f53 IP&#xff1b;<\/li>\n<li>listIP(b.except, ifaces) \u5c55\u5f00\u6392\u9664\u5217\u8868&#xff1b;<\/li>\n<li>\u904d\u5386\u5c55\u5f00\u540e\u7684 IP&#xff0c;\u51e1\u662f\u4e0d\u5728\u6392\u9664\u5217\u8868\u4e2d\u7684&#xff0c;\u90fd\u8ffd\u52a0\u5230\u672c block \u7684 all \u5217\u8868&#xff1b;<\/li>\n<li>\u6700\u7ec8 config.ListenHosts &#061; all\u3002<\/li>\n<p>listIP \u7684\u5c55\u5f00\u903b\u8f91&#xff08;plugin\/bind\/setup.go&#xff09;\u503c\u5f97\u6ce8\u610f&#xff1a;<\/p>\n<ul>\n<li>\u82e5\u53c2\u6570\u4e0e\u67d0\u4e2a\u63a5\u53e3\u540d\u5339\u914d&#xff0c;\u5219\u679a\u4e3e\u8be5\u63a5\u53e3\u7684\u5730\u5740&#xff08;iface.Addrs()&#xff09;&#xff0c;\u53ea\u63a5\u53d7 *net.IPNet \u7c7b\u578b\u7684\u5730\u5740\u5e76\u89e3\u6790\u4e3a ResolveIPAddr \u7ed3\u679c&#xff1b;\u5bf9 IPv6 \u94fe\u8def\u672c\u5730\u5730\u5740\u4f1a\u81ea\u52a8\u8865\u5145\u63a5\u53e3 Zone&#xff08;\u5982 fe80::1%lo \u8fd9\u7c7b\u5e26\u4f5c\u7528\u57df\u6807\u8bc6\u7684\u5730\u5740&#xff09;&#xff1b;<\/li>\n<li>\u82e5\u53c2\u6570\u4e0d\u662f\u4efb\u4f55\u63a5\u53e3\u540d&#xff0c;\u5219\u7528 net.ParseIP \u6821\u9a8c\u662f\u5426\u4e3a\u5408\u6cd5 IP&#xff0c;\u975e\u6cd5\u65f6\u8fd4\u56de\u9519\u8bef not a valid IP address or interface name: %q\u3002<\/li>\n<\/ul>\n<h4>\u7b2c\u4e8c\u6b65&#xff1a;\u5199\u5165\u914d\u7f6e\u5e76\u53c2\u4e0e\u76d1\u542c\u5668\u5206\u7ec4<\/h4>\n<p>ListenHosts \u662f core\/dnsserver\/config.go \u4e2d Config \u7ed3\u6784\u7684\u5b57\u6bb5&#xff0c;\u5176\u9ed8\u8ba4\u503c\u4e3a []string{&#034;&#034;}\u2014\u2014\u5355\u4e2a\u7a7a\u5b57\u7b26\u4e32\u5373\u4ee3\u8868\u901a\u914d\u7b26\u5730\u5740&#xff08;wildcard&#xff09;\u3002<\/p>\n<p>\u5728\u542f\u52a8\u9636\u6bb5&#xff0c;core\/dnsserver\/register.go \u7684 MakeServers \u4f1a\u8c03\u7528 groupConfigsByListenAddr&#xff0c;\u6309\u76d1\u542c\u5730\u5740\u628a\u5404\u4e2a server \u914d\u7f6e\u5206\u7ec4&#xff1a;\u6bcf\u4e2a ListenHosts \u6761\u76ee\u4e0e\u7aef\u53e3\u7ec4\u5408\u6210 net.JoinHostPort(h, conf.Port) \u5f62\u5f0f\u7684\u76d1\u542c\u5730\u5740&#xff0c;\u518d\u6620\u5c04\u5230\u5bf9\u5e94\u914d\u7f6e\u7ec4&#xff0c;\u6700\u540e\u4e3a\u6bcf\u4e2a\u7ec4\u521b\u5efa\u771f\u6b63\u7684 server \u5b9e\u4f8b&#xff08;core\/dnsserver\/register.go&#xff09;\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;bind \u5199\u5165\u7684\u6bcf\u4e2a IP \u90fd\u4f1a\u5bf9\u5e94\u4e00\u4e2a\u72ec\u7acb\u76d1\u542c\u5668\u3002<\/p>\n<h4>\u7b2c\u4e09\u6b65&#xff1a;\u76d1\u542c\u51b2\u7a81\u6821\u9a8c<\/h4>\n<p>\u540c\u4e00 server block \u4e2d\u591a\u4e2a zone \u5171\u4eab\u63d2\u4ef6\u5b9e\u4f8b\u4e0e ListenHosts&#xff08;\u7531 propagateConfigParams \u4ece block \u9996\u4e2a\u914d\u7f6e\u590d\u5236&#xff0c;\u89c1 core\/dnsserver\/register.go&#xff09;\u3002\u800c\u5728\u6240\u6709 server \u521b\u5efa\u524d&#xff0c;validateZonesAndListeningAddresses \u4f1a\u901a\u8fc7 zoneOverlap \u7ed3\u6784&#xff08;core\/dnsserver\/address.go&#xff09;\u68c0\u67e5 zone &#043; \u7aef\u53e3 &#043; \u76d1\u542c\u5730\u5740\u662f\u5426\u91cd\u53e0&#xff1a;<\/p>\n<ul>\n<li>\u5b8c\u5168\u76f8\u540c\u7684 zone \u91cd\u590d\u6ce8\u518c\u4f1a\u62a5 cannot serve %s &#8211; it is already defined&#xff1b;<\/li>\n<li>\u672a\u7ed1\u5b9a\u5730\u5740&#xff08;\u9ed8\u8ba4\u901a\u914d\u7b26&#xff09;\u4e0e\u5df2\u7ed1\u5b9a\u5730\u5740\u5728\u540c\u4e00 zone\u3001\u540c\u4e00\u7aef\u53e3\u4e0a\u5171\u5b58\u4f1a\u88ab\u89c6\u4e3a\u91cd\u53e0&#xff0c;\u62a5 zone overlap listener capacity\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u6b63\u662f\u5b98\u65b9\u6587\u6863\u4e2d\u201c\u76d1\u542c\u5668\u4e89\u7528\u201d\u95ee\u9898\u7684\u6846\u67b6\u5c42\u9632\u7ebf&#xff0c;\u4e5f\u662f\u4e0b\u4e00\u8282 Bug \u73b0\u8c61\u80cc\u540e\u7684\u673a\u5236\u3002<\/p>\n<h3>\u5df2\u77e5\u95ee\u9898&#xff1a;\u5982\u4f55\u907f\u514d\u76d1\u542c\u5668\u4e89\u7528&#xff08;Listener Contention&#xff09;<\/h3>\n<p>TL;DR&#xff1a;\u7ed9\u67d0\u4e2a server block \u6dfb\u52a0 bind \u63d2\u4ef6\u65f6&#xff0c;\u5fc5\u987b\u540c\u65f6\u7ed9\u6240\u6709\u76d1\u542c\u540c\u4e00\u7aef\u53e3\u7684\u5176\u4ed6 server block \u4e5f\u52a0\u4e0a bind\u3002<\/p>\n<p>\u5f53\u591a\u4e2a server block \u914d\u7f6e\u4e3a\u76d1\u542c\u540c\u4e00\u4e2a\u7aef\u53e3\u65f6&#xff0c;\u8fd9\u4e9b server block \u5fc5\u987b\u8981\u4e48\u5168\u90e8\u4f7f\u7528 bind \u63d2\u4ef6&#xff0c;\u8981\u4e48\u5168\u90e8\u4f7f\u7528\u9ed8\u8ba4\u7ed1\u5b9a&#xff08;\u4e0d\u5199 bind&#xff09;\u3002\u8fd9\u91cc\u7684\u201c\u7aef\u53e3\u201d\u6307\u7684\u662f server block \u6240\u670d\u52a1\u7684 TCP\/UDP \u7aef\u53e3&#xff08;\u9ed8\u8ba4\u4e3a 53&#xff09;&#xff0c;\u800c\u4e0d\u662f\u7f51\u7edc\u63a5\u53e3\u3002<\/p>\n<p>\u5982\u679c\u4e24\u4e2a server block \u76d1\u542c\u540c\u4e00\u7aef\u53e3&#xff0c;\u5176\u4e2d\u4e00\u4e2a\u4f7f\u7528\u4e86 bind \u800c\u53e6\u4e00\u4e2a\u6ca1\u6709&#xff0c;\u5c31\u4f1a\u521b\u5efa\u4e24\u4e2a\u72ec\u7acb\u7684\u76d1\u542c\u5668&#xff0c;\u5b83\u4eec\u4f1a\u4e89\u76f8\u670d\u52a1\u53d1\u5f80\u540c\u4e00\u5730\u5740\u7684\u6570\u636e\u5305&#xff0c;\u5bfc\u81f4\u4e0d\u53ef\u9884\u6d4b\u7684\u884c\u4e3a&#xff08;\u8bf7\u6c42\u53ef\u80fd\u88ab\u968f\u673a\u5730\u5206\u7ed9\u4e24\u4e2a server \u4e2d\u7684\u4efb\u610f\u4e00\u4e2a&#xff09;\u3002\u539f\u56e0\u5728\u4e8e&#xff1a;\u6ca1\u6709 bind \u63d2\u4ef6\u7684 server \u4f1a\u7ed1\u5b9a\u5230\u6240\u6709\u63a5\u53e3&#xff0c;\u8fd9\u4e0e\u53e6\u4e00\u4e2a\u7528 bind \u76d1\u542c\u540c\u4e00\u7aef\u53e3\u4e0a\u67d0\u4e2a\u5730\u5740\u7684 server \u53d1\u751f\u51b2\u7a81\u3002<\/p>\n<p>\u4f8b\u5982&#xff0c;\u4e0b\u9762\u914d\u7f6e\u521b\u5efa\u4e86\u4e24\u4e2a\u90fd\u76d1\u542c 127.0.0.1:53 \u7684 server&#xff0c;\u5bf9 a.bad.example.com \u7684\u67e5\u8be2\u5c06\u4ea7\u751f\u4e0d\u53ef\u9884\u6d4b\u7684\u884c\u4e3a&#xff1a;<\/p>\n<p>a.bad.example.com {<br \/>\n    bind 127.0.0.1<br \/>\n    forward . 1.2.3.4<br \/>\n}<\/p>\n<p>bad.example.com {<br \/>\n    forward . 5.6.7.8<br \/>\n}<\/p>\n<p>\u6b63\u786e\u7684\u505a\u6cd5\u662f\u7ed9\u7b2c\u4e8c\u4e2a server block \u4e5f\u52a0\u4e0a bind&#xff08;\u4f8b\u5982\u540c\u6837\u7ed1\u5b9a 127.0.0.1&#xff0c;\u6216\u4e0e\u7b2c\u4e00\u4e2a block \u7ed1\u5b9a\u4e00\u81f4&#xff09;&#xff0c;\u4f7f\u4e24\u8005\u5171\u7528\u540c\u4e00\u4e2a\u76d1\u542c\u5668&#xff0c;\u4ece\u800c\u6d88\u9664\u4e89\u7528\u3002<\/p>\n<h3>\u6d4b\u8bd5\u9a8c\u8bc1\u4e0e\u53c2\u8003\u5b9e\u73b0<\/h3>\n<p>plugin\/bind\/setup_test.go \u63d0\u4f9b\u4e86\u5bf9\u8be5\u63d2\u4ef6\u89e3\u6790\u903b\u8f91\u7684\u7cfb\u7edf\u6027\u9a8c\u8bc1&#xff08;\u6ce8&#xff1a;\u6d4b\u8bd5\u5728\u975e Linux \u7cfb\u7edf\u4e0a\u4f1a\u8df3\u8fc7&#xff0c;\u56e0\u4e3a\u90e8\u5206\u7528\u4f8b\u4f9d\u8d56\u56de\u73af\u63a5\u53e3\u7b49 Linux \u73af\u5883\u7279\u6027&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u914d\u7f6e\u8f93\u5165\u671f\u671b\u7684 ListenHosts\u662f\u5426\u5931\u8d25<\/tr>\n<tbody>\n<tr>\n<td>bind 1.2.3.4<\/td>\n<td>[&#034;1.2.3.4&#034;]<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>bind<\/td>\n<td>\u65e0<\/td>\n<td>\u662f<\/td>\n<\/tr>\n<tr>\n<td>bind 1.2.3.invalid<\/td>\n<td>\u65e0<\/td>\n<td>\u662f<\/td>\n<\/tr>\n<tr>\n<td>bind 1.2.3.4 ::5<\/td>\n<td>[&#034;1.2.3.4&#034;, &#034;::5&#034;]<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>bind ::1 1.2.3.4 ::5 127.9.9.0<\/td>\n<td>[&#034;::1&#034;, &#034;1.2.3.4&#034;, &#034;::5&#034;, &#034;127.9.9.0&#034;]<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>bind ::1 1.2.3.4 ::5 127.9.9.0 noone<\/td>\n<td>\u65e0<\/td>\n<td>\u662f<\/td>\n<\/tr>\n<tr>\n<td>bind 1.2.3.4 lo<\/td>\n<td>[&#034;1.2.3.4&#034;, &#034;127.0.0.1&#034;, &#034;::1&#034;]<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>bind lo { except 127.0.0.1 }<\/td>\n<td>[&#034;::1&#034;]<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5176\u4e2d\u6700\u540e\u4e24\u884c\u76f4\u89c2\u5370\u8bc1\u4e86\u201c\u63a5\u53e3\u540d\u5c55\u5f00\u4e3a\u5168\u90e8 IP\u201d\u548c\u201cexcept \u7cbe\u786e\u6392\u9664\u201d\u7684\u884c\u4e3a\u3002\u6b64\u5916&#xff0c;core\/dnsserver\/register_test.go \u8986\u76d6\u4e86\u591a block\u3001\u591a bind \u5730\u5740\u5728\u5206\u7ec4\u4e0e\u91cd\u53e0\u6821\u9a8c\u5c42\u9762\u7684\u6846\u67b6\u7ea7\u573a\u666f\u3002<\/p>\n<h3>\u4e0e\u5176\u4ed6\u529f\u80fd\u7684\u914d\u5408<\/h3>\n<p>bind \u5e76\u975e\u53ea\u80fd\u7528\u4e8e\u666e\u901a dns:\/\/ \u4f20\u8f93\u3002\u7531\u4e8e\u5b83\u6700\u7ec8\u5199\u5165\u7684\u662f Config.ListenHosts&#xff0c;\u800c groupConfigsByListenAddr \u4e0e makeServersForGroup&#xff08;core\/dnsserver\/register.go&#xff09;\u5bf9 TLS\u3001QUIC\u3001gRPC\u3001HTTPS\u3001HTTPS3 \u7b49\u4f20\u8f93\u7c7b\u578b\u7edf\u4e00\u9002\u7528&#xff0c;\u56e0\u6b64 bind \u540c\u6837\u53ef\u4ee5\u7528\u4e8e\u9650\u5236 DoT&#xff08;tls:\/\/&#xff09;\u3001DoQ&#xff08;quic:\/\/&#xff09;\u3001DoH&#xff08;https:\/\/&#xff09;\u7b49\u52a0\u5bc6\u4f20\u8f93\u670d\u52a1\u7684\u76d1\u542c\u5730\u5740\u3002\u5728\u670d\u52a1\u7aef\u6d4b\u8bd5\u4ee3\u7801\u4e2d&#xff08;\u5982 core\/dnsserver\/server_https_test.go&#xff09;\u4e5f\u5927\u91cf\u4f7f\u7528\u4e86 ListenHosts: []string{&#034;127.0.0.1&#034;} \u6765\u6784\u5efa\u4ec5\u672c\u673a\u76d1\u542c\u7684\u6d4b\u8bd5\u670d\u52a1\u5668\u3002<\/p>\n<h3>\u5c0f\u7ed3<\/h3>\n<p>bind \u662f CoreDNS \u914d\u7f6e\u4e2d\u201c\u5c0f\u800c\u5173\u952e\u201d\u7684\u6307\u4ee4&#xff1a;\u5b83\u4ee5\u6781\u4f4e\u7684\u4fb5\u5165\u6210\u672c\u51b3\u5b9a\u4e86\u670d\u52a1\u66b4\u9732\u5728\u54ea\u4e9b\u5730\u5740\u4e0a&#xff0c;\u9002\u7528\u4e8e\u4ec5\u672c\u673a\u63d0\u4f9b\u670d\u52a1\u3001\u591a IP \u4e3b\u673a\u7cbe\u786e\u9009\u5740\u3001\u6309\u63a5\u53e3\u8ddf\u968f IP \u53d8\u5316\u3001\u4ee5\u53ca\u591a server \u5757\u5171\u4eab\u7aef\u53e3\u7b49\u573a\u666f\u3002\u4f7f\u7528\u65f6\u52a1\u5fc5\u7262\u8bb0\u4e24\u70b9&#xff1a;\u591a\u6761 bind \u6307\u4ee4\u5728\u540c\u4e00 block \u5185\u4f1a\u81ea\u52a8\u5408\u5e76\u5730\u5740&#xff1b;\u540c\u4e00\u7aef\u53e3\u4e0a\u7684\u6240\u6709 server block \u5fc5\u987b\u7edf\u4e00\u9009\u62e9\u201c\u90fd\u7528 bind\u201d\u6216\u201c\u90fd\u4e0d\u7528 bind\u201d&#xff0c;\u5426\u5219\u4f1a\u89e6\u53d1\u76d1\u542c\u5668\u4e89\u7528\u3002\u76f8\u5173\u5b9e\u73b0\u4e0e\u6d4b\u8bd5\u53ef\u7ee7\u7eed\u9605\u8bfb plugin\/bind\/setup.go\u3001plugin\/bind\/bind.go \u4e0e plugin\/bind\/setup_test.go&#xff0c;\u6846\u67b6\u5c42\u5206\u7ec4\u4e0e\u6821\u9a8c\u903b\u8f91\u53c2\u89c1 core\/dnsserver\/register.go \u548c core\/dnsserver\/address.go\u3002<\/p>\n<p>  <img loading=\"lazy\" decoding=\"async\" class=\"gcb-icon-like\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008224049-6ac81bf12685d.svg\" alt=\"\" width=\"16\" height=\"16\" \/> <span class=\"gcb-like-text\">\u8d5e<\/span>  <\/p>\n<p>   <span class=\"gcb-share-text\">\u5206\u4eab<\/span>  <\/p>\n<ul class=\"gcb-tag-list\">\n<li><span class=\"gcb-tag\">\u540e\u7aef<\/span><\/li>\n<li><span class=\"gcb-tag\">\u7f51\u7edc<\/span><\/li>\n<li><span class=\"gcb-tag\">\u4e91\u539f\u751f<\/span><\/li>\n<\/ul>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011coredns<\/h3>\n<p class=\"gcb-project-desc\">CoreDNS is a DNS server that chains plugins<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/co\/coredns<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h4 class=\"gcb-related-title\">\u76f8\u5173\u63a8\u8350<\/h4>\n<ul class=\"gcb-related-list\">\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">CoreDNS 1.1.0 \u53d1\u5e03\u6df1\u5ea6\u89e3\u8bfb&#xff1a;bind \u591a\u63a5\u53e3\u7ed1\u5b9a\u3001reload \u63d2\u4ef6\u4e0e\u63d2\u4ef6\u751f\u6001\u6f14\u8fdb<\/h5>\n<p class=\"gcb-related-item-desc\">CoreDNS 1.1.0 \u53d1\u5e03\u6df1\u5ea6\u89e3\u8bfb&#xff1a;bind \u591a\u63a5\u53e3\u7ed1\u5b9a\u3001reload \u63d2\u4ef6\u4e0e\u63d2\u4ef6\u751f\u6001\u6f14\u8fdb \u672c\u7bc7\u56f4\u7ed5 CoreDNS \u5b98\u65b9\u53d1\u5e03\u8bf4\u660e notes\/cored<\/p>\n<p>     <span class=\"gcb-tag\">\u540e\u7aef<\/span><br \/>\n     <span class=\"gcb-tag\">\u7f51\u7edc<\/span><br \/>\n     <span class=\"gcb-tag\">\u4e91\u539f\u751f<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">CoreDNS proxyproto \u63d2\u4ef6\u8be6\u89e3&#xff1a;\u4e3a DNS \u670d\u52a1\u63a5\u5165 PROXY Protocol v1\/v2<\/h5>\n<p class=\"gcb-related-item-desc\">CoreDNS proxyproto \u63d2\u4ef6\u8be6\u89e3&#xff1a;\u4e3a DNS \u670d\u52a1\u63a5\u5165 PROXY Protocol v1\/v2 \u5bfc\u8bfb \u672c\u6587\u805a\u7126 CoreDNS \u5185\u7f6e\u7684 prox<\/p>\n<p>     <span class=\"gcb-tag\">\u540e\u7aef<\/span><br \/>\n     <span class=\"gcb-tag\">\u7f51\u7edc<\/span><br \/>\n     <span class=\"gcb-tag\">\u4e91\u539f\u751f<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">\u6784\u5efa\u73b0\u4ee3\u5316Web\u5b9e\u65f6\u804a\u5929\u7cfb\u7edf&#xff1a;webchat\u6280\u672f\u67b6\u6784\u4e0e\u5b9e\u73b0\u6df1\u5ea6\u5206\u6790<\/h5>\n<p class=\"gcb-related-item-desc\">\u6784\u5efa\u73b0\u4ee3\u5316Web\u5b9e\u65f6\u804a\u5929\u7cfb\u7edf&#xff1a;webchat\u6280\u672f\u67b6\u6784\u4e0e\u5b9e\u73b0\u6df1\u5ea6\u5206\u6790 \u5728\u5f53\u4eca\u6570\u5b57\u65f6\u4ee3&#xff0c;\u5373\u65f6\u901a\u8baf\u5df2\u6210\u4e3a\u4eba\u4eec\u65e5\u5e38\u751f\u6d3b\u548c\u5de5\u4f5c\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u7ec4\u6210\u90e8\u5206\u3002\u968f\u7740Web\u6280\u672f\u7684\u5feb\u901f\u53d1<\/p>\n<\/li>\n<\/ul>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0a\u4e00\u7bc7&#xff1a;<\/span><br \/>\n  LiteLLM \u6545\u969c\u6392\u9664\u6307\u5357&#xff1a;\u5982\u4f55\u5feb\u901f\u641e\u5b9a 6 \u7c7b\u5e38\u89c1\u62a5\u9519 <\/p>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0b\u4e00\u7bc7&#xff1a;<\/span><br \/>\n  n8n\u5de5\u4f5c\u6d41\u5bb9\u5668\u5316\u90e8\u7f72\u5b8c\u6574\u5b9e\u8df5&#xff1a;\u4ece\u672c\u5730 Docker \u5230 Kubernetes \u4e0a\u7ebf <\/p>\n<p>\u521b\u4f5c\u58f0\u660e\uff1a\u672c\u6587\u90e8\u5206\u5185\u5bb9\u7531AI\u8f85\u52a9\u751f\u6210\uff08AIGC\uff09\uff0c\u4ec5\u4f9b\u53c2\u8003<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540e\u7aef\u7f51\u7edc\u4e91\u539f\u751f \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011coredns CoreDNS is a DNS server that chains plugins \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/co\/coredns \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d  \u5bfc\u8bfb<br \/>\nbind \u662f CoreDNS \u4e2d\u7528\u4e8e\u8986\u76d6\u670d\u52a1\u5668\u9ed8\u8ba4\u76d1\u542c\u5730\u5740\u7684\u63d2\u4ef6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;CoreDNS \u7684\u76d1\u542c\u5668\u4f1a\u7ed1\u5b9a\u5230\u901a\u914d\u7b26\u5730\u5740&#xff08;\u5373\u6240\u6709\u7f51\u5361\u63a5\u53e3&#xff09;&#xff0c;\u800c bi<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-114375","post","type-post","status-publish","format-standard","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CoreDNS bind \u63d2\u4ef6\u8be6\u89e3\uff1a\u7cbe\u786e\u63a7\u5236 DNS \u670d\u52a1\u5668\u76d1\u542c\u5730\u5740\u4e0e\u63a5\u53e3\u7ed1\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/114375.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CoreDNS bind \u63d2\u4ef6\u8be6\u89e3\uff1a\u7cbe\u786e\u63a7\u5236 DNS \u670d\u52a1\u5668\u76d1\u542c\u5730\u5740\u4e0e\u63a5\u53e3\u7ed1\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u540e\u7aef\u7f51\u7edc\u4e91\u539f\u751f \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011coredns CoreDNS is a DNS server that chains plugins \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/co\/coredns \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u5bfc\u8bfb bind \u662f CoreDNS \u4e2d\u7528\u4e8e\u8986\u76d6\u670d\u52a1\u5668\u9ed8\u8ba4\u76d1\u542c\u5730\u5740\u7684\u63d2\u4ef6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;CoreDNS \u7684\u76d1\u542c\u5668\u4f1a\u7ed1\u5b9a\u5230\u901a\u914d\u7b26\u5730\u5740&#xff08;\u5373\u6240\u6709\u7f51\u5361\u63a5\u53e3&#xff09;&#xff0c;\u800c bi\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/114375.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-08T22:40:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008224049-6ac81bf12685d.svg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/114375.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/114375.html\",\"name\":\"CoreDNS bind \u63d2\u4ef6\u8be6\u89e3\uff1a\u7cbe\u786e\u63a7\u5236 DNS \u670d\u52a1\u5668\u76d1\u542c\u5730\u5740\u4e0e\u63a5\u53e3\u7ed1\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-08T22:40:50+00:00\",\"dateModified\":\"2026-10-08T22:40:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/114375.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/114375.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/114375.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CoreDNS bind \u63d2\u4ef6\u8be6\u89e3\uff1a\u7cbe\u786e\u63a7\u5236 DNS \u670d\u52a1\u5668\u76d1\u542c\u5730\u5740\u4e0e\u63a5\u53e3\u7ed1\u5b9a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CoreDNS bind \u63d2\u4ef6\u8be6\u89e3\uff1a\u7cbe\u786e\u63a7\u5236 DNS \u670d\u52a1\u5668\u76d1\u542c\u5730\u5740\u4e0e\u63a5\u53e3\u7ed1\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/114375.html","og_locale":"zh_CN","og_type":"article","og_title":"CoreDNS bind \u63d2\u4ef6\u8be6\u89e3\uff1a\u7cbe\u786e\u63a7\u5236 DNS \u670d\u52a1\u5668\u76d1\u542c\u5730\u5740\u4e0e\u63a5\u53e3\u7ed1\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u540e\u7aef\u7f51\u7edc\u4e91\u539f\u751f \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011coredns CoreDNS is a DNS server that chains plugins \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/co\/coredns \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u5bfc\u8bfb bind \u662f CoreDNS \u4e2d\u7528\u4e8e\u8986\u76d6\u670d\u52a1\u5668\u9ed8\u8ba4\u76d1\u542c\u5730\u5740\u7684\u63d2\u4ef6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;CoreDNS \u7684\u76d1\u542c\u5668\u4f1a\u7ed1\u5b9a\u5230\u901a\u914d\u7b26\u5730\u5740&#xff08;\u5373\u6240\u6709\u7f51\u5361\u63a5\u53e3&#xff09;&#xff0c;\u800c bi","og_url":"https:\/\/www.wsisp.com\/helps\/114375.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-08T22:40:50+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008224049-6ac81bf12685d.svg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/114375.html","url":"https:\/\/www.wsisp.com\/helps\/114375.html","name":"CoreDNS bind \u63d2\u4ef6\u8be6\u89e3\uff1a\u7cbe\u786e\u63a7\u5236 DNS \u670d\u52a1\u5668\u76d1\u542c\u5730\u5740\u4e0e\u63a5\u53e3\u7ed1\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-08T22:40:50+00:00","dateModified":"2026-10-08T22:40:50+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/114375.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/114375.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/114375.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"CoreDNS bind \u63d2\u4ef6\u8be6\u89e3\uff1a\u7cbe\u786e\u63a7\u5236 DNS \u670d\u52a1\u5668\u76d1\u542c\u5730\u5740\u4e0e\u63a5\u53e3\u7ed1\u5b9a"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/114375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=114375"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/114375\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=114375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=114375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=114375"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=114375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}