{"id":40636,"date":"2025-05-30T00:46:21","date_gmt":"2025-05-29T16:46:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/40636.html"},"modified":"2025-05-30T00:46:21","modified_gmt":"2025-05-29T16:46:21","slug":"horain%e4%ba%91-centos-%e4%b8%8b-bind-%e6%9c%8d%e5%8a%a1%ef%bc%88dns-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%89%e7%9a%84%e5%ae%89%e8%a3%85%e4%b8%8e%e6%95%85%e9%9a%9c%e6%8e%92%e6%9f%a5%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/40636.html","title":{"rendered":"HoRain\u4e91--CentOS \u4e0b Bind \u670d\u52a1\uff08DNS \u670d\u52a1\u5668\uff09\u7684\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5\u6307\u5357"},"content":{"rendered":"<p style=\"text-align:center\">\u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"70\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529164619-68388f5bd123d.png\" width=\"70\" \/><\/p>\n<p style=\"text-align:center\">&#x1f3ac; HoRain\u4e91\u5c0f\u52a9\u624b&#xff1a;\u4e2a\u4eba\u4e3b\u9875<\/p>\n<p style=\"text-align:center\">\u00a0&#x1f525; \u4e2a\u4eba\u4e13\u680f:\u00a0\u300aLinux \u7cfb\u5217\u6559\u7a0b\u300b\u300ac\u8bed\u8a00\u6559\u7a0b\u300b<\/p>\n<p style=\"text-align:center\">\u26fa\ufe0f\u751f\u6d3b\u7684\u7406\u60f3&#xff0c;\u5c31\u662f\u4e3a\u4e86\u7406\u60f3\u7684\u751f\u6d3b!<\/p>\n<hr \/>\n<h4 id=\"%E2%9B%B3%EF%B8%8F%20%E6%8E%A8%E8%8D%90\">\u26f3\ufe0f \u63a8\u8350<\/h4>\n<p>\u524d\u4e9b\u5929\u53d1\u73b0\u4e86\u4e00\u4e2a\u8d85\u68d2\u7684\u670d\u52a1\u5668\u8d2d\u4e70\u7f51\u7ad9&#xff0c;\u6027\u4ef7\u6bd4\u8d85\u9ad8&#xff0c;\u5927\u5185\u5b58\u8d85\u5212\u7b97&#xff01;\u5fcd\u4e0d\u4f4f\u5206\u4eab\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002\u70b9\u51fb\u8df3\u8f6c\u5230\u7f51\u7ad9\u3002<\/p>\n<h4 id=\"%E4%B8%93%E6%A0%8F%E4%BB%8B%E7%BB%8D\">\u4e13\u680f\u4ecb\u7ecd<\/h4>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td>\n<p>\u4e13\u680f\u540d\u79f0<\/p>\n<\/td>\n<td>\n<p>\u4e13\u680f\u4ecb\u7ecd<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u300aC\u8bed\u8a00\u300b<\/p>\n<\/td>\n<td>\n<p>\u672c\u4e13\u680f\u4e3b\u8981\u64b0\u5199C\u5e72\u8d27\u5185\u5bb9\u548c\u7f16\u7a0b\u6280\u5de7&#xff0c;\u8ba9\u5927\u5bb6\u4ece\u5e95\u5c42\u4e86\u89e3C&#xff0c;\u628a\u66f4\u591a\u7684\u77e5\u8bc6\u7531\u62bd\u8c61\u5230\u7b80\u5355\u901a\u4fd7\u6613\u61c2\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u300a\u7f51\u7edc\u534f\u8bae\u300b<\/p>\n<\/td>\n<td>\n<p>\u672c\u4e13\u680f\u4e3b\u8981\u662f\u6ce8\u91cd\u4ece\u5e95\u5c42\u6765\u7ed9\u5927\u5bb6\u4e00\u6b65\u6b65\u5256\u6790\u7f51\u7edc\u534f\u8bae\u7684\u5965\u79d8&#xff0c;\u4e00\u8d77\u89e3\u5bc6\u7f51\u7edc\u534f\u8bae\u5728\u8fd0\u884c\u4e2d\u534f\u8bae\u7684\u57fa\u672c\u8fd0\u884c\u673a\u5236&#xff01;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u300adocker\u5bb9\u5668\u7cbe\u89e3\u7bc7\u300b<\/p>\n<\/td>\n<td>\n<p>\u5168\u9762\u6df1\u5165\u89e3\u6790 docker \u5bb9\u5668&#xff0c;\u4ece\u57fa\u7840\u5230\u8fdb\u9636&#xff0c;\u6db5\u76d6\u539f\u7406\u3001\u64cd\u4f5c\u3001\u5b9e\u8df5\u6848\u4f8b&#xff0c;\u52a9\u60a8\u7cbe\u901a docker\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u300alinux\u7cfb\u5217\u300b<\/p>\n<\/td>\n<td>\n<p>\u672c\u4e13\u680f\u4e3b\u8981\u64b0\u5199Linux\u5e72\u8d27\u5185\u5bb9&#xff0c;\u4ece\u57fa\u7840\u5230\u8fdb\u9636&#xff0c;\u77e5\u8bc6\u7531\u62bd\u8c61\u5230\u7b80\u5355\u901a\u4fd7\u6613\u61c2&#xff0c;\u5e2e\u4f60\u4ece\u65b0\u624b\u5c0f\u767d\u5230\u626b\u5730\u50e7\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u300apython \u7cfb\u5217\u300b<\/p>\n<\/td>\n<td>\n<p>\u672c\u4e13\u680f\u7740\u91cd\u64b0\u5199Python\u76f8\u5173\u7684\u5e72\u8d27\u5185\u5bb9\u4e0e\u7f16\u7a0b\u6280\u5de7&#xff0c;\u52a9\u529b\u5927\u5bb6\u4ece\u5e95\u5c42\u53bb\u8ba4\u8bc6Python&#xff0c;\u5c06\u66f4\u591a\u590d\u6742\u7684\u77e5\u8bc6\u7531\u62bd\u8c61\u8f6c\u5316\u4e3a\u7b80\u5355\u6613\u61c2\u7684\u5185\u5bb9\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u300a\u8bd5\u9898\u5e93\u300b<\/p>\n<\/td>\n<td>\n<p>\u672c\u4e13\u680f\u4e3b\u8981\u662f\u53d1\u5e03\u4e00\u4e9b\u8003\u8bd5\u548c\u7ec3\u4e60\u9898\u5e93&#xff08;\u6db5\u76d6\u8f6f\u8003\u3001HCIE\u3001HRCE\u3001CCNA\u7b49&#xff09;<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E2%9B%B3%EF%B8%8F%20%E6%8E%A8%E8%8D%90-toc\" style=\"margin-left:80px\">\u26f3\ufe0f \u63a8\u8350<\/p>\n<p id=\"%E4%B8%93%E6%A0%8F%E4%BB%8B%E7%BB%8D-toc\" style=\"margin-left:80px\">\u4e13\u680f\u4ecb\u7ecd<\/p>\n<p id=\"%E2%80%8B%E2%80%8B%E4%B8%80%E3%80%81%E5%AE%89%E8%A3%85%20Bind%20%E6%9C%8D%E5%8A%A1%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:120px\">\u200b\u200b\u4e00\u3001\u5b89\u88c5 Bind \u670d\u52a1\u200b\u200b<\/p>\n<p id=\"1.%20%E2%80%8B%E2%80%8B%E5%AE%89%E8%A3%85%20Bind%20%E8%BD%AF%E4%BB%B6%E5%8C%85%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">1. \u200b\u200b\u5b89\u88c5 Bind \u8f6f\u4ef6\u5305\u200b\u200b<\/p>\n<p id=\"2.%20%E2%80%8B%E2%80%8B%E5%90%AF%E5%8A%A8%E6%9C%8D%E5%8A%A1%E5%B9%B6%E8%AE%BE%E7%BD%AE%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">2. \u200b\u200b\u542f\u52a8\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u200b\u200b<\/p>\n<p id=\"%E2%80%8B%E2%80%8B%E4%BA%8C%E3%80%81%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:120px\">\u200b\u200b\u4e8c\u3001\u57fa\u672c\u914d\u7f6e\u200b\u200b<\/p>\n<p id=\"1.%20%E2%80%8B%E2%80%8B%E4%B8%BB%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%EF%BC%9A%2Fetc%2Fnamed.conf%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">1. \u200b\u200b\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff1a;\/etc\/named.conf\u200b\u200b<\/p>\n<p id=\"2.%20%E2%80%8B%E2%80%8B%E9%85%8D%E7%BD%AE%E5%8C%BA%E5%9F%9F%E6%96%87%E4%BB%B6%EF%BC%88Zone%20File%EF%BC%89%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">2. \u200b\u200b\u914d\u7f6e\u533a\u57df\u6587\u4ef6&#xff08;Zone File&#xff09;\u200b\u200b<\/p>\n<p id=\"3.%20%E2%80%8B%E2%80%8B%E5%88%9B%E5%BB%BA%E5%8C%BA%E5%9F%9F%E6%96%87%E4%BB%B6%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">3. \u200b\u200b\u521b\u5efa\u533a\u57df\u6587\u4ef6\u200b\u200b<\/p>\n<p id=\"4.%20%E2%80%8B%E2%80%8B%E8%AE%BE%E7%BD%AE%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">4. \u200b\u200b\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650\u200b\u200b<\/p>\n<p id=\"5.%20%E2%80%8B%E2%80%8B%E9%87%8D%E5%90%AF%E6%9C%8D%E5%8A%A1%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">5. \u200b\u200b\u91cd\u542f\u670d\u52a1\u200b\u200b<\/p>\n<p id=\"%E2%80%8B%E2%80%8B%E4%B8%89%E3%80%81%E9%98%B2%E7%81%AB%E5%A2%99%E4%B8%8E%20SELinux%20%E9%85%8D%E7%BD%AE%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:120px\">\u200b\u200b\u4e09\u3001\u9632\u706b\u5899\u4e0e SELinux \u914d\u7f6e\u200b\u200b<\/p>\n<p id=\"1.%20%E2%80%8B%E2%80%8B%E5%BC%80%E6%94%BE%20DNS%20%E7%AB%AF%E5%8F%A3%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">1. \u200b\u200b\u5f00\u653e DNS \u7aef\u53e3\u200b\u200b<\/p>\n<p id=\"2.%20%E2%80%8B%E2%80%8BSELinux%20%E8%AE%BE%E7%BD%AE%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">2. \u200b\u200bSELinux \u8bbe\u7f6e\u200b\u200b<\/p>\n<p id=\"%E2%80%8B%E2%80%8B%E5%9B%9B%E3%80%81%E6%95%85%E9%9A%9C%E6%8E%92%E6%9F%A5%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:120px\">\u200b\u200b\u56db\u3001\u6545\u969c\u6392\u67e5\u200b\u200b<\/p>\n<p id=\"1.%20%E2%80%8B%E2%80%8B%E6%9C%8D%E5%8A%A1%E7%8A%B6%E6%80%81%E6%A3%80%E6%9F%A5%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">1. \u200b\u200b\u670d\u52a1\u72b6\u6001\u68c0\u67e5\u200b\u200b<\/p>\n<p id=\"2.%20%E2%80%8B%E2%80%8B%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E8%AF%AD%E6%B3%95%E6%A3%80%E6%9F%A5%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">2. \u200b\u200b\u914d\u7f6e\u6587\u4ef6\u8bed\u6cd5\u68c0\u67e5\u200b\u200b<\/p>\n<p id=\"3.%20%E2%80%8B%E2%80%8BDNS%20%E6%9F%A5%E8%AF%A2%E6%B5%8B%E8%AF%95%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">3. \u200b\u200bDNS \u67e5\u8be2\u6d4b\u8bd5\u200b\u200b<\/p>\n<p id=\"4.%20%E2%80%8B%E2%80%8B%E5%B8%B8%E8%A7%81%E9%94%99%E8%AF%AF%E4%B8%8E%E8%A7%A3%E5%86%B3%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">4. \u200b\u200b\u5e38\u89c1\u9519\u8bef\u4e0e\u89e3\u51b3\u200b\u200b<\/p>\n<p id=\"%E2%80%8B%E2%80%8B%E9%94%99%E8%AF%AF%201%EF%BC%9A%E6%9C%8D%E5%8A%A1%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:200px\">\u200b\u200b\u9519\u8bef 1&#xff1a;\u670d\u52a1\u65e0\u6cd5\u542f\u52a8\u200b\u200b<\/p>\n<p id=\"%E2%80%8B%E2%80%8B%E9%94%99%E8%AF%AF%202%EF%BC%9ADNS%20%E6%9F%A5%E8%AF%A2%E8%B6%85%E6%97%B6%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:200px\">\u200b\u200b\u9519\u8bef 2&#xff1a;DNS \u67e5\u8be2\u8d85\u65f6\u200b\u200b<\/p>\n<p id=\"%E2%80%8B%E2%80%8B%E9%94%99%E8%AF%AF%203%EF%BC%9A%E6%9D%83%E9%99%90%E8%A2%AB%E6%8B%92%E7%BB%9D%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:200px\">\u200b\u200b\u9519\u8bef 3&#xff1a;\u6743\u9650\u88ab\u62d2\u7edd\u200b\u200b<\/p>\n<p id=\"%E2%80%8B%E2%80%8B%E4%BA%94%E3%80%81%E9%AB%98%E7%BA%A7%E8%B0%83%E8%AF%95%E5%B7%A5%E5%85%B7%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:120px\">\u200b\u200b\u4e94\u3001\u9ad8\u7ea7\u8c03\u8bd5\u5de5\u5177\u200b\u200b<\/p>\n<p id=\"1.%20%E2%80%8B%E2%80%8B%E6%8A%93%E5%8C%85%E5%88%86%E6%9E%90%20DNS%20%E8%AF%B7%E6%B1%82%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">1. \u200b\u200b\u6293\u5305\u5206\u6790 DNS \u8bf7\u6c42\u200b\u200b<\/p>\n<p id=\"2.%20%E2%80%8B%E2%80%8B%E5%BC%BA%E5%88%B6%E9%87%8D%E6%96%B0%E5%8A%A0%E8%BD%BD%E9%85%8D%E7%BD%AE%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">2. \u200b\u200b\u5f3a\u5236\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u200b\u200b<\/p>\n<p id=\"3.%20%E2%80%8B%E2%80%8B%E6%9F%A5%E7%9C%8B%20DNS%20%E7%BC%93%E5%AD%98%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:160px\">3. \u200b\u200b\u67e5\u770b DNS \u7f13\u5b58\u200b\u200b<\/p>\n<p id=\"%E2%80%8B%E2%80%8B%E5%85%AD%E3%80%81%E6%80%BB%E7%BB%93%E2%80%8B%E2%80%8B-toc\" style=\"margin-left:120px\">\u200b\u200b\u516d\u3001\u603b\u7ed3\u200b\u200b<\/p>\n<hr id=\"hr-toc\" \/>\n<p><img decoding=\"async\" alt=\"img\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529164620-68388f5c3f272.gif\" \/><\/p>\n<hr \/>\n<h5 id=\"%E2%80%8B%E2%80%8B%E4%B8%80%E3%80%81%E5%AE%89%E8%A3%85%20Bind%20%E6%9C%8D%E5%8A%A1%E2%80%8B%E2%80%8B\">\u200b\u200b\u4e00\u3001\u5b89\u88c5 Bind \u670d\u52a1\u200b\u200b<\/h5>\n<h6 id=\"1.%20%E2%80%8B%E2%80%8B%E5%AE%89%E8%A3%85%20Bind%20%E8%BD%AF%E4%BB%B6%E5%8C%85%E2%80%8B%E2%80%8B\">1. \u200b\u200b\u5b89\u88c5 Bind \u8f6f\u4ef6\u5305\u200b\u200b<\/h6>\n<p>\u5728 CentOS 7\/8 \u4e2d&#xff0c;\u4f7f\u7528 yum \u6216 dnf \u5b89\u88c5&#xff1a;<\/p>\n<p># CentOS 7<br \/>\nsudo yum install bind bind-utils -y<\/p>\n<p># CentOS 8<br \/>\nsudo dnf install bind bind-utils -y <\/p>\n<h6 id=\"2.%20%E2%80%8B%E2%80%8B%E5%90%AF%E5%8A%A8%E6%9C%8D%E5%8A%A1%E5%B9%B6%E8%AE%BE%E7%BD%AE%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF%E2%80%8B%E2%80%8B\">2. \u200b\u200b\u542f\u52a8\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u200b\u200b<\/h6>\n<p>sudo systemctl start named<br \/>\nsudo systemctl enable named <\/p>\n<hr \/>\n<h5 id=\"%E2%80%8B%E2%80%8B%E4%BA%8C%E3%80%81%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE%E2%80%8B%E2%80%8B\">\u200b\u200b\u4e8c\u3001\u57fa\u672c\u914d\u7f6e\u200b\u200b<\/h5>\n<h6 id=\"1.%20%E2%80%8B%E2%80%8B%E4%B8%BB%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%EF%BC%9A%2Fetc%2Fnamed.conf%E2%80%8B%E2%80%8B\">1. \u200b\u200b\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff1a;\/etc\/named.conf\u200b\u200b<\/h6>\n<p>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u4ee5\u5141\u8bb8\u5176\u4ed6\u4e3b\u673a\u67e5\u8be2&#xff08;\u53ef\u9009&#xff09;&#xff1a;<\/p>\n<p>sudo vi \/etc\/named.conf <\/p>\n<p>\u4fee\u6539\u4ee5\u4e0b\u90e8\u5206&#xff1a;<\/p>\n<p>options {<br \/>\n    listen-on port 53 { any; };  # \u5141\u8bb8\u76d1\u542c\u6240\u6709 IP<br \/>\n    allow-query     { any; };    # \u5141\u8bb8\u6240\u6709\u5ba2\u6237\u7aef\u67e5\u8be2<br \/>\n    recursion yes;              # \u5141\u8bb8\u9012\u5f52\u67e5\u8be2&#xff08;\u7528\u4e8e\u89e3\u6790\u5916\u90e8\u57df\u540d&#xff09;<br \/>\n}; <\/p>\n<h6 id=\"2.%20%E2%80%8B%E2%80%8B%E9%85%8D%E7%BD%AE%E5%8C%BA%E5%9F%9F%E6%96%87%E4%BB%B6%EF%BC%88Zone%20File%EF%BC%89%E2%80%8B%E2%80%8B\">2. \u200b\u200b\u914d\u7f6e\u533a\u57df\u6587\u4ef6&#xff08;Zone File&#xff09;\u200b\u200b<\/h6>\n<p>\u793a\u4f8b&#xff1a;\u6dfb\u52a0\u6b63\u5411\u89e3\u6790&#xff08;example.com.zone&#xff09;\u548c\u53cd\u5411\u89e3\u6790&#xff08;192.168.1.rev&#xff09;&#xff1a;<\/p>\n<p>zone &#034;example.com&#034; IN {<br \/>\n    type master;<br \/>\n    file &#034;example.com.zone&#034;;<br \/>\n    allow-update { none; };<br \/>\n};<\/p>\n<p>zone &#034;1.168.192.in-addr.arpa&#034; IN {<br \/>\n    type master;<br \/>\n    file &#034;192.168.1.rev&#034;;<br \/>\n    allow-update { none; };<br \/>\n}; <\/p>\n<h6 id=\"3.%20%E2%80%8B%E2%80%8B%E5%88%9B%E5%BB%BA%E5%8C%BA%E5%9F%9F%E6%96%87%E4%BB%B6%E2%80%8B%E2%80%8B\">3. \u200b\u200b\u521b\u5efa\u533a\u57df\u6587\u4ef6\u200b\u200b<\/h6>\n<p>\u5728 \/var\/named\/ \u76ee\u5f55\u4e0b\u521b\u5efa\u533a\u57df\u6587\u4ef6&#xff1a;<\/p>\n<p>sudo vi \/var\/named\/example.com.zone <\/p>\n<p>\u5185\u5bb9\u793a\u4f8b&#xff1a;<\/p>\n<p>$TTL 1H<br \/>\n&#064;       IN SOA  ns1.example.com. admin.example.com. (<br \/>\n                        2023072001 ; serial<br \/>\n                        1D         ; refresh<br \/>\n                        1H         ; retry<br \/>\n                        1W         ; expire<br \/>\n                        3H )       ; minimum<br \/>\n&#064;       IN NS   ns1.example.com.<br \/>\nns1     IN A    192.168.1.10<br \/>\nwww     IN A    192.168.1.100 <\/p>\n<h6 id=\"4.%20%E2%80%8B%E2%80%8B%E8%AE%BE%E7%BD%AE%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90%E2%80%8B%E2%80%8B\">4. \u200b\u200b\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650\u200b\u200b<\/h6>\n<p>sudo chown root:named \/var\/named\/example.com.zone<br \/>\nsudo chmod 640 \/var\/named\/example.com.zone <\/p>\n<h6 id=\"5.%20%E2%80%8B%E2%80%8B%E9%87%8D%E5%90%AF%E6%9C%8D%E5%8A%A1%E2%80%8B%E2%80%8B\">5. \u200b\u200b\u91cd\u542f\u670d\u52a1\u200b\u200b<\/h6>\n<p>sudo systemctl restart named <\/p>\n<hr \/>\n<h5 id=\"%E2%80%8B%E2%80%8B%E4%B8%89%E3%80%81%E9%98%B2%E7%81%AB%E5%A2%99%E4%B8%8E%20SELinux%20%E9%85%8D%E7%BD%AE%E2%80%8B%E2%80%8B\">\u200b\u200b\u4e09\u3001\u9632\u706b\u5899\u4e0e SELinux \u914d\u7f6e\u200b\u200b<\/h5>\n<h6 id=\"1.%20%E2%80%8B%E2%80%8B%E5%BC%80%E6%94%BE%20DNS%20%E7%AB%AF%E5%8F%A3%E2%80%8B%E2%80%8B\">1. \u200b\u200b\u5f00\u653e DNS \u7aef\u53e3\u200b\u200b<\/h6>\n<p># \u5f00\u653e TCP\/UDP 53 \u7aef\u53e3<br \/>\nsudo firewall-cmd &#8211;permanent &#8211;add-service&#061;dns<br \/>\nsudo firewall-cmd &#8211;reload <\/p>\n<h6 id=\"2.%20%E2%80%8B%E2%80%8BSELinux%20%E8%AE%BE%E7%BD%AE%E2%80%8B%E2%80%8B\">2. \u200b\u200bSELinux \u8bbe\u7f6e\u200b\u200b<\/h6>\n<p>\u82e5\u51fa\u73b0\u6743\u9650\u95ee\u9898&#xff0c;\u53ef\u4e34\u65f6\u7981\u7528 SELinux \u6216\u8c03\u6574\u7b56\u7565&#xff1a;<\/p>\n<p># \u4e34\u65f6\u7981\u7528 SELinux&#xff08;\u4e0d\u63a8\u8350\u751f\u4ea7\u73af\u5883&#xff09;<br \/>\nsudo setenforce 0<\/p>\n<p># \u6216\u5141\u8bb8 named \u670d\u52a1\u7ed1\u5b9a\u7aef\u53e3<br \/>\nsudo setsebool -P named_write_master_zones 1 <\/p>\n<hr \/>\n<h5 id=\"%E2%80%8B%E2%80%8B%E5%9B%9B%E3%80%81%E6%95%85%E9%9A%9C%E6%8E%92%E6%9F%A5%E2%80%8B%E2%80%8B\">\u200b\u200b\u56db\u3001\u6545\u969c\u6392\u67e5\u200b\u200b<\/h5>\n<h6 id=\"1.%20%E2%80%8B%E2%80%8B%E6%9C%8D%E5%8A%A1%E7%8A%B6%E6%80%81%E6%A3%80%E6%9F%A5%E2%80%8B%E2%80%8B\">1. \u200b\u200b\u670d\u52a1\u72b6\u6001\u68c0\u67e5\u200b\u200b<\/h6>\n<p># \u68c0\u67e5\u670d\u52a1\u662f\u5426\u8fd0\u884c<br \/>\nsudo systemctl status named<\/p>\n<p># \u67e5\u770b\u5b9e\u65f6\u65e5\u5fd7<br \/>\nsudo journalctl -u named -f <\/p>\n<h6 id=\"2.%20%E2%80%8B%E2%80%8B%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E8%AF%AD%E6%B3%95%E6%A3%80%E6%9F%A5%E2%80%8B%E2%80%8B\">2. \u200b\u200b\u914d\u7f6e\u6587\u4ef6\u8bed\u6cd5\u68c0\u67e5\u200b\u200b<\/h6>\n<p># \u68c0\u67e5\u4e3b\u914d\u7f6e\u6587\u4ef6<br \/>\nsudo named-checkconf \/etc\/named.conf<\/p>\n<p># \u68c0\u67e5\u533a\u57df\u6587\u4ef6<br \/>\nsudo named-checkzone example.com \/var\/named\/example.com.zone <\/p>\n<h6 id=\"3.%20%E2%80%8B%E2%80%8BDNS%20%E6%9F%A5%E8%AF%A2%E6%B5%8B%E8%AF%95%E2%80%8B%E2%80%8B\">3. \u200b\u200bDNS \u67e5\u8be2\u6d4b\u8bd5\u200b\u200b<\/h6>\n<p># \u4f7f\u7528 dig \u67e5\u8be2\u672c\u5730 DNS<br \/>\ndig &#064;localhost www.example.com<\/p>\n<p># \u4f7f\u7528 nslookup \u6d4b\u8bd5\u53cd\u5411\u89e3\u6790<br \/>\nnslookup 192.168.1.100 <\/p>\n<h6 id=\"4.%20%E2%80%8B%E2%80%8B%E5%B8%B8%E8%A7%81%E9%94%99%E8%AF%AF%E4%B8%8E%E8%A7%A3%E5%86%B3%E2%80%8B%E2%80%8B\">4. \u200b\u200b\u5e38\u89c1\u9519\u8bef\u4e0e\u89e3\u51b3\u200b\u200b<\/h6>\n<h6 id=\"%E2%80%8B%E2%80%8B%E9%94%99%E8%AF%AF%201%EF%BC%9A%E6%9C%8D%E5%8A%A1%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8%E2%80%8B%E2%80%8B\">\u200b\u200b\u9519\u8bef 1&#xff1a;\u670d\u52a1\u65e0\u6cd5\u542f\u52a8\u200b\u200b<\/h6>\n<ul>\n<li>\u200b\u200b\u53ef\u80fd\u539f\u56e0\u200b\u200b&#xff1a;\u914d\u7f6e\u6587\u4ef6\u8bed\u6cd5\u9519\u8bef\u3002<\/li>\n<li>\u200b\u200b\u89e3\u51b3\u200b\u200b&#xff1a; # \u67e5\u770b\u8be6\u7ec6\u9519\u8bef\u65e5\u5fd7<br \/>\nsudo tail -n 50 \/var\/log\/messages<br \/>\nsudo named-checkconf \/etc\/named.conf <\/li>\n<\/ul>\n<h6 id=\"%E2%80%8B%E2%80%8B%E9%94%99%E8%AF%AF%202%EF%BC%9ADNS%20%E6%9F%A5%E8%AF%A2%E8%B6%85%E6%97%B6%E2%80%8B%E2%80%8B\">\u200b\u200b\u9519\u8bef 2&#xff1a;DNS \u67e5\u8be2\u8d85\u65f6\u200b\u200b<\/h6>\n<ul>\n<li>\u200b\u200b\u53ef\u80fd\u539f\u56e0\u200b\u200b&#xff1a;\u9632\u706b\u5899\u672a\u5f00\u653e\u7aef\u53e3\u6216\u670d\u52a1\u672a\u76d1\u542c\u3002<\/li>\n<li>\u200b\u200b\u89e3\u51b3\u200b\u200b&#xff1a; # \u68c0\u67e5\u670d\u52a1\u76d1\u542c\u7684 IP \u548c\u7aef\u53e3<br \/>\nsudo netstat -tulnp | grep named<\/p>\n<p># \u9a8c\u8bc1\u9632\u706b\u5899\u89c4\u5219<br \/>\nsudo firewall-cmd &#8211;list-all <\/li>\n<\/ul>\n<h6 id=\"%E2%80%8B%E2%80%8B%E9%94%99%E8%AF%AF%203%EF%BC%9A%E6%9D%83%E9%99%90%E8%A2%AB%E6%8B%92%E7%BB%9D%E2%80%8B%E2%80%8B\">\u200b\u200b\u9519\u8bef 3&#xff1a;\u6743\u9650\u88ab\u62d2\u7edd\u200b\u200b<\/h6>\n<ul>\n<li>\u200b\u200b\u53ef\u80fd\u539f\u56e0\u200b\u200b&#xff1a;\u533a\u57df\u6587\u4ef6\u6743\u9650\u6216 SELinux \u9650\u5236\u3002<\/li>\n<li>\u200b\u200b\u89e3\u51b3\u200b\u200b&#xff1a; # \u68c0\u67e5\u6587\u4ef6\u6743\u9650<br \/>\nls -l \/var\/named\/<\/p>\n<p># \u4fee\u590d SELinux \u4e0a\u4e0b\u6587<br \/>\nsudo restorecon -Rv \/var\/named <\/li>\n<\/ul>\n<hr \/>\n<h5 id=\"%E2%80%8B%E2%80%8B%E4%BA%94%E3%80%81%E9%AB%98%E7%BA%A7%E8%B0%83%E8%AF%95%E5%B7%A5%E5%85%B7%E2%80%8B%E2%80%8B\">\u200b\u200b\u4e94\u3001\u9ad8\u7ea7\u8c03\u8bd5\u5de5\u5177\u200b\u200b<\/h5>\n<h6 id=\"1.%20%E2%80%8B%E2%80%8B%E6%8A%93%E5%8C%85%E5%88%86%E6%9E%90%20DNS%20%E8%AF%B7%E6%B1%82%E2%80%8B%E2%80%8B\">1. \u200b\u200b\u6293\u5305\u5206\u6790 DNS \u8bf7\u6c42\u200b\u200b<\/h6>\n<p>sudo tcpdump -i eth0 port 53 -n <\/p>\n<h6 id=\"2.%20%E2%80%8B%E2%80%8B%E5%BC%BA%E5%88%B6%E9%87%8D%E6%96%B0%E5%8A%A0%E8%BD%BD%E9%85%8D%E7%BD%AE%E2%80%8B%E2%80%8B\">2. \u200b\u200b\u5f3a\u5236\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u200b\u200b<\/h6>\n<p># \u91cd\u8f7d\u533a\u57df\u6587\u4ef6&#xff08;\u4e0d\u91cd\u542f\u670d\u52a1&#xff09;<br \/>\nsudo rndc reload <\/p>\n<h6 id=\"3.%20%E2%80%8B%E2%80%8B%E6%9F%A5%E7%9C%8B%20DNS%20%E7%BC%93%E5%AD%98%E2%80%8B%E2%80%8B\">3. \u200b\u200b\u67e5\u770b DNS \u7f13\u5b58\u200b\u200b<\/h6>\n<p># \u6e05\u9664\u7f13\u5b58&#xff08;\u4ec5\u9650\u8c03\u8bd5&#xff09;<br \/>\nsudo rndc flush <\/p>\n<hr \/>\n<h5 id=\"%E2%80%8B%E2%80%8B%E5%85%AD%E3%80%81%E6%80%BB%E7%BB%93%E2%80%8B%E2%80%8B\">\u200b\u200b\u516d\u3001\u603b\u7ed3\u200b\u200b<\/h5>\n<ul>\n<li>\u200b\u200b\u5b89\u88c5\u6838\u5fc3\u200b\u200b&#xff1a;\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6\u8bed\u6cd5\u6b63\u786e\u3001\u6743\u9650\u5408\u7406\u3002<\/li>\n<li>\u200b\u200b\u6392\u67e5\u6b65\u9aa4\u200b\u200b&#xff1a;\n<li>\u68c0\u67e5\u670d\u52a1\u72b6\u6001\u548c\u65e5\u5fd7&#xff1b;<\/li>\n<li>\u9a8c\u8bc1\u9632\u706b\u5899\/SELinux&#xff1b;<\/li>\n<li>\u4f7f\u7528 dig \u6216 nslookup \u6d4b\u8bd5\u67e5\u8be2&#xff1b;<\/li>\n<li>\u6293\u5305\u5206\u6790\u7f51\u7edc\u6d41\u91cf\u3002<\/li>\n<\/li>\n<li>\u200b\u200b\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u200b\u200b&#xff1a;\n<ul>\n<li>\u542f\u7528 DNSSEC \u589e\u5f3a\u5b89\u5168\u6027&#xff1b;<\/li>\n<li>\u90e8\u7f72\u4e3b\u4ece DNS \u5b9e\u73b0\u9ad8\u53ef\u7528&#xff1b;<\/li>\n<li>\u5b9a\u671f\u66f4\u65b0 Bind \u7248\u672c\u4fee\u590d\u6f0f\u6d1e\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529164620-68388f5c5ea96.gif\" \/><\/p>\n<p>\u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650&#xff0c;\u5982\u6709\u7eb0\u6f0f&#xff0c;\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63&#xff01;&#x1f604;&#x1f604;&#x1f604;<\/p>\n<p>&#x1f498;&#x1f498;&#x1f498;\u5982\u679c\u89c9\u5f97\u8fd9\u7bc7\u6587\u5bf9\u4f60\u6709\u5e2e\u52a9\u7684\u8bdd&#xff0c;\u4e5f\u8bf7\u7ed9\u4e2a\u70b9\u8d5e\u3001\u6536\u85cf\u4e0b\u5427&#xff0c;\u975e\u5e38\u611f\u8c22!&#x1f44d; &#x1f44d; &#x1f44d;<\/p>\n<p>&#x1f525;&#x1f525;&#x1f525;Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427&#xff01;&#x1f319;&#x1f319;&#x1f319;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb937\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u6458\u8981\uff1a\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728CentOS 7\/8\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eBind DNS\u670d\u52a1\u7684\u5b8c\u6574\u6d41\u7a0b\u3002\u5185\u5bb9\u5305\u62ec\uff1a1\uff09\u901a\u8fc7yum\/dnf\u5b89\u88c5Bind\u8f6f\u4ef6\u5305\u5e76\u542f\u52a8\u670d\u52a1\uff1b2\uff09\u914d\u7f6e\u4e3b\u914d\u7f6e\u6587\u4ef6\/etc\/named.conf\u548c\u533a\u57df\u6587\u4ef6\uff1b3\uff09\u8bbe\u7f6e\u9632\u706b\u5899\u548cSELinux\u653e\u884cDNS\u670d\u52a1\uff1b4\uff09\u5e38\u89c1\u6545\u969c\u6392\u67e5\u65b9\u6cd5\uff08\u670d\u52a1\u72b6\u6001\u68c0\u67e5\u3001\u65e5\u5fd7\u5206\u6790\u3001\u67e5\u8be2\u6d4b\u8bd5\uff09\uff1b5\uff09\u9ad8\u7ea7\u8c03\u8bd5\u5de5\u5177\uff08tcpdump\u6293\u5305\u3001rndc\u547d\u4ee4\uff09\u7684\u4f7f\u7528\u3002\u6587\u7ae0\u8fd8\u63d0\u4f9b\u4e86\u914d\u7f6e\u793a\u4f8b\u548c\u5e38\u89c1\u9519\u8bef\u89e3\u51b3\u65b9\u6848\uff0c\u6700\u540e\u5f3a\u8c03\u751f\u4ea7\u73af\u5883\u5e94\u8003\u8651DNSSEC\u5b89\u5168\u6027\u548c\u4e3b\u4ece\u67b6\u6784\u9ad8\u53ef\u7528\u6027\u3002\u9002\u5408\u9700\u8981\u642d\u5efaDNS\u670d\u52a1\u5668\u7684\u7cfb\u7edf\u7ba1\u7406\u5458<\/p>\n","protected":false},"author":2,"featured_media":40633,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-40636","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HoRain\u4e91-CentOS \u4e0b Bind \u670d\u52a1\uff08DNS \u670d\u52a1\u5668\uff09\u7684\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5\u6307\u5357 - \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\/40636.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HoRain\u4e91-CentOS \u4e0b Bind \u670d\u52a1\uff08DNS \u670d\u52a1\u5668\uff09\u7684\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb937\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u6458\u8981\uff1a\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728CentOS 7\/8\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eBind DNS\u670d\u52a1\u7684\u5b8c\u6574\u6d41\u7a0b\u3002\u5185\u5bb9\u5305\u62ec\uff1a1\uff09\u901a\u8fc7yum\/dnf\u5b89\u88c5Bind\u8f6f\u4ef6\u5305\u5e76\u542f\u52a8\u670d\u52a1\uff1b2\uff09\u914d\u7f6e\u4e3b\u914d\u7f6e\u6587\u4ef6\/etc\/named.conf\u548c\u533a\u57df\u6587\u4ef6\uff1b3\uff09\u8bbe\u7f6e\u9632\u706b\u5899\u548cSELinux\u653e\u884cDNS\u670d\u52a1\uff1b4\uff09\u5e38\u89c1\u6545\u969c\u6392\u67e5\u65b9\u6cd5\uff08\u670d\u52a1\u72b6\u6001\u68c0\u67e5\u3001\u65e5\u5fd7\u5206\u6790\u3001\u67e5\u8be2\u6d4b\u8bd5\uff09\uff1b5\uff09\u9ad8\u7ea7\u8c03\u8bd5\u5de5\u5177\uff08tcpdump\u6293\u5305\u3001rndc\u547d\u4ee4\uff09\u7684\u4f7f\u7528\u3002\u6587\u7ae0\u8fd8\u63d0\u4f9b\u4e86\u914d\u7f6e\u793a\u4f8b\u548c\u5e38\u89c1\u9519\u8bef\u89e3\u51b3\u65b9\u6848\uff0c\u6700\u540e\u5f3a\u8c03\u751f\u4ea7\u73af\u5883\u5e94\u8003\u8651DNSSEC\u5b89\u5168\u6027\u548c\u4e3b\u4ece\u67b6\u6784\u9ad8\u53ef\u7528\u6027\u3002\u9002\u5408\u9700\u8981\u642d\u5efaDNS\u670d\u52a1\u5668\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/40636.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-29T16:46:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529164619-68388f5bd123d.png\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/40636.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/40636.html\",\"name\":\"HoRain\u4e91-CentOS \u4e0b Bind \u670d\u52a1\uff08DNS \u670d\u52a1\u5668\uff09\u7684\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-29T16:46:21+00:00\",\"dateModified\":\"2025-05-29T16:46:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/40636.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/40636.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/40636.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HoRain\u4e91--CentOS \u4e0b Bind \u670d\u52a1\uff08DNS \u670d\u52a1\u5668\uff09\u7684\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5\u6307\u5357\"}]},{\"@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":"HoRain\u4e91-CentOS \u4e0b Bind \u670d\u52a1\uff08DNS \u670d\u52a1\u5668\uff09\u7684\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5\u6307\u5357 - \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\/40636.html","og_locale":"zh_CN","og_type":"article","og_title":"HoRain\u4e91-CentOS \u4e0b Bind \u670d\u52a1\uff08DNS \u670d\u52a1\u5668\uff09\u7684\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb937\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u6458\u8981\uff1a\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728CentOS 7\/8\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eBind DNS\u670d\u52a1\u7684\u5b8c\u6574\u6d41\u7a0b\u3002\u5185\u5bb9\u5305\u62ec\uff1a1\uff09\u901a\u8fc7yum\/dnf\u5b89\u88c5Bind\u8f6f\u4ef6\u5305\u5e76\u542f\u52a8\u670d\u52a1\uff1b2\uff09\u914d\u7f6e\u4e3b\u914d\u7f6e\u6587\u4ef6\/etc\/named.conf\u548c\u533a\u57df\u6587\u4ef6\uff1b3\uff09\u8bbe\u7f6e\u9632\u706b\u5899\u548cSELinux\u653e\u884cDNS\u670d\u52a1\uff1b4\uff09\u5e38\u89c1\u6545\u969c\u6392\u67e5\u65b9\u6cd5\uff08\u670d\u52a1\u72b6\u6001\u68c0\u67e5\u3001\u65e5\u5fd7\u5206\u6790\u3001\u67e5\u8be2\u6d4b\u8bd5\uff09\uff1b5\uff09\u9ad8\u7ea7\u8c03\u8bd5\u5de5\u5177\uff08tcpdump\u6293\u5305\u3001rndc\u547d\u4ee4\uff09\u7684\u4f7f\u7528\u3002\u6587\u7ae0\u8fd8\u63d0\u4f9b\u4e86\u914d\u7f6e\u793a\u4f8b\u548c\u5e38\u89c1\u9519\u8bef\u89e3\u51b3\u65b9\u6848\uff0c\u6700\u540e\u5f3a\u8c03\u751f\u4ea7\u73af\u5883\u5e94\u8003\u8651DNSSEC\u5b89\u5168\u6027\u548c\u4e3b\u4ece\u67b6\u6784\u9ad8\u53ef\u7528\u6027\u3002\u9002\u5408\u9700\u8981\u642d\u5efaDNS\u670d\u52a1\u5668\u7684\u7cfb\u7edf\u7ba1\u7406\u5458","og_url":"https:\/\/www.wsisp.com\/helps\/40636.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-29T16:46:21+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529164619-68388f5bd123d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/40636.html","url":"https:\/\/www.wsisp.com\/helps\/40636.html","name":"HoRain\u4e91-CentOS \u4e0b Bind \u670d\u52a1\uff08DNS \u670d\u52a1\u5668\uff09\u7684\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-29T16:46:21+00:00","dateModified":"2025-05-29T16:46:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/40636.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/40636.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/40636.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"HoRain\u4e91--CentOS \u4e0b Bind \u670d\u52a1\uff08DNS \u670d\u52a1\u5668\uff09\u7684\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5\u6307\u5357"}]},{"@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\/40636","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=40636"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/40636\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/40633"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=40636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=40636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=40636"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=40636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}