{"id":32253,"date":"2025-04-23T12:06:10","date_gmt":"2025-04-23T04:06:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/32253.html"},"modified":"2025-04-23T12:06:10","modified_gmt":"2025-04-23T04:06:10","slug":"dns%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e6%9c%8d%e5%8a%a1%e5%99%a8-12","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/32253.html","title":{"rendered":"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668"},"content":{"rendered":"<\/p>\n<h4>\u76ee\u5f55<\/h4>\n<ul>\n<li>\u6982\u8ff0<\/li>\n<li>\n<ul>\n<li>\u4ea7\u751f\u539f\u56e0<\/li>\n<li>\u4f5c\u7528<\/li>\n<li>\u8fde\u63a5\u65b9\u5f0f<\/li>\n<li>\u56e0\u7279\u7f51\u7684\u57df\u540d\u7ed3\u6784<\/li>\n<li>\n<ul>\n<li>\u62d3\u6251<\/li>\n<li>\u5206\u7c7b<\/li>\n<li>\u57df\u540d\u670d\u52a1\u5668\u7c7b\u578b\u5212\u5206<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>DNS\u57df\u540d\u89e3\u6790\u8fc7\u7a0b<\/li>\n<li>\n<ul>\n<li>\u5206\u7c7b<\/li>\n<li>\u89e3\u6790\u56fe&#xff1a;<\/li>\n<li>\n<ul>\n<li>\u8fc7\u7a0b\u5206\u6790<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u642d\u5efaDNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668<\/li>\n<li>\n<ul>\n<li>\u6982\u8ff0<\/li>\n<li>\u5b89\u88c5\u8f6f\u4ef6<\/li>\n<li>bind\u4e2d\u7684\u4e09\u4e2a\u91cd\u8981\u6587\u4ef6<\/li>\n<li>\u914d\u7f6e\u6587\u4ef6\u5206\u6790<\/li>\n<li>\u533a\u57df\u914d\u7f6e\u6587\u4ef6<\/li>\n<li>\n<ul>\n<li>\u4f5c\u7528<\/li>\n<li>\u533a\u57df\u914d\u7f6e\u6587\u4ef6\u793a\u4f8b\u5206\u6790<\/li>\n<\/ul>\n<\/li>\n<li>\u6b63\u5411\u89e3\u6790\u8d44\u6e90\u6587\u4ef6<\/li>\n<li>\u53cd\u5411\u89e3\u6790\u8d44\u6e90\u6587\u4ef6<\/li>\n<\/ul>\n<\/li>\n<li>\u5b9e\u9a8c1&#xff08;\u6b63\u5411\u89e3\u6790&#xff09;<\/li>\n<li>\u5b9e\u9a8c\u4e8c&#xff08;\u53cd\u5411\u89e3\u6790&#xff09;<\/li>\n<li>\u5b9e\u9a8c3&#xff08;\u90e8\u7f72DNS\u4e3b\u4ece\u670d\u52a1\u5668&#xff09;<\/li>\n<li>\n<ul>\n<li>\u4f5c\u7528<\/li>\n<li>\u5b8c\u5168\u533a\u57df\u4f20\u9001<\/li>\n<li>\u589e\u91cf\u533a\u57df\u4f20\u9001<\/li>\n<li>\u6ce8\u610f<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u6982\u8ff0<\/h2>\n<h3>\u4ea7\u751f\u539f\u56e0<\/h3>\n<ul>\n<li>IP \u5730\u5740:\u662f\u4e92\u8054\u7f51\u4e0a\u8ba1\u7b97\u673a\u552f\u4e00\u7684\u903b\u8f91\u5730\u5740&#xff0c;\u901a\u8fc7 IP \u5730\u5740\u5b9e\u73b0\u4e0d\u540c\u8ba1\u7b97\u673a\u4e4b\u95f4\u7684\u76f8\u4e92\u901a\u4fe1&#xff0c;\u6bcf\u53f0\u8054\u7f51\u8ba1\u7b97\u673a\u90fd\u9700\u8981\u901a\u8fc7 IP \u5730\u5740\u6765\u4e92\u76f8\u8054\u7cfb\u548c\u5206\u522b&#xff0c;\u4f46\u7531\u4e8e IP \u5730\u5740\u662f\u7531\u4e00\u4e32\u5bb9\u6613\u6df7\u6dc6\u7684\u6570\u5b57\u4e32\u6784\u6210&#xff0c;\u4eba\u4eec\u5f88\u96be\u8bb0\u5fc6\u6240\u6709\u8ba1\u7b97\u673a\u7684 IP \u5730\u5740&#xff0c;\u8fd9\u6837\u5bf9\u4e8e\u6211\u4eec\u65e5\u5e38\u5de5\u4f5c\u751f\u6d3b\u8bbf\u95ee\u4e0d\u540c\u7f51\u7ad9\u662f\u5f88\u56f0\u96be\u7684\u3002<\/li>\n<li>\u57fa\u4e8e\u8fd9\u79cd\u80cc\u666f&#xff0c;\u4eba\u4eec\u5728 IP \u5730\u5740\u7684\u57fa\u7840\u4e0a\u53c8\u53d1\u5c55\u51fa\u4e86\u4e00\u79cd\u66f4\u6613\u8bc6\u522b\u7684\u7b26\u53f7\u5316\u6807\u8bc6&#xff0c;\u8fd9\u79cd\u6807\u8bc6\u7531\u4eba\u4eec\u81ea\u884c\u9009\u62e9\u7684\u5b57\u6bcd\u548c\u6570\u5b57\u6784\u6210&#xff0c;\u76f8\u6bd4 IP \u5730\u5740\u66f4\u6613\u88ab\u8bc6\u522b\u548c\u8bb0\u5fc6&#xff0c;\u9010\u6e10\u4ee3\u66ff IP \u5730\u5740\u6210\u4e3a\u4e92\u8054\u7f51\u7528\u6237\u8fdb\u884c\u8bbf\u95ee\u4e92\u8054\u7684\u4e3b\u8981\u5165\u53e3\u3002\u8fd9\u79cd\u7b26\u53f7\u5316\u6807\u8bc6\u5c31\u662f\u57df\u540d<\/li>\n<li>\u57df\u540d\u867d\u7136\u66f4\u6613\u88ab\u7528\u6237\u6240\u63a5\u53d7\u548c\u4f7f\u7528&#xff0c;\u4f46\u8ba1\u7b97\u673a\u53ea\u80fd\u8bc6\u522b\u7eaf\u6570\u5b57\u6784\u6210\u7684 IP \u5730\u5740&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u8bfb\u53d6\u57df\u540d\u3002\u56e0\u6b64\u8981\u60f3\u8fbe\u5230\u8bbf\u95ee\u6548\u679c&#xff0c;\u5c31\u9700\u8981\u5c06\u57df\u540d\u7ffb\u8bd1\u6210 IP \u5730\u5740\u3002\u800c DNS \u57df\u540d\u89e3\u6790\u627f\u62c5\u7684\u5c31\u662f\u8fd9\u79cd\u7ffb\u8bd1\u6548\u679c<\/li>\n<\/ul>\n<h3>\u4f5c\u7528<\/h3>\n<ul>\n<li>DNS&#xff08;Domain Name System&#xff09;\u662f\u4e92\u8054\u7f51\u4e0a\u7684\u4e00\u9879\u670d\u52a1&#xff0c;\u7528\u4e8e\u5c06\u57df\u540d\u548cIP\u5730\u5740\u8fdb\u884c\u76f8\u4e92\u6620\u5c04&#xff0c;\u4f7f\u4eba\u66f4\u65b9\u4fbf\u7684\u8bbf\u95ee\u4e92\u8054\u7f51<\/li>\n<li>\u6b63\u5411\u89e3\u6790&#xff1a;\u57df\u540d-&gt;IP<\/li>\n<li>\u53cd\u5411\u89e3\u6790&#xff1a;IP-&gt;\u57df\u540d<\/li>\n<\/ul>\n<h3>\u8fde\u63a5\u65b9\u5f0f<\/h3>\n<ul>\n<li>DNS\u4f7f\u752853\u7aef\u53e3\u76d1\u542c\u7f51\u7edc<\/li>\n<li>\u67e5\u770b\u65b9\u6cd5&#xff1a;<\/li>\n<li>DNS\u9ed8\u8ba4\u4ee5UDP\u8fd9\u4e2a\u8f83\u5feb\u901f\u7684\u6570\u636e\u4f20\u8f93\u534f\u8bae\u6765\u67e5\u8be2&#xff0c;\u4f46\u6ca1\u6709\u67e5\u8be2\u5230\u5b8c\u6574\u7684\u4fe1\u606f\u65f6&#xff0c;\u5c31\u4f1a\u518d\u6b21\u4ee5TCP\u534f\u8bae\u91cd\u65b0\u67e5\u8be2\u5219\u542f\u52a8DNS\u65f6&#xff0c;\u4f1a\u540c\u65f6\u542f\u52a8TCP\u4ee5\u53caUDP\u7684port53<\/li>\n<\/ul>\n<h3>\u56e0\u7279\u7f51\u7684\u57df\u540d\u7ed3\u6784<\/h3>\n<h4>\u62d3\u6251<\/h4>\n<ul>\n<li>\u7531\u4e8e\u56e0\u7279\u7f51\u7684\u7528\u6237\u6570\u91cf\u8f83\u591a&#xff0c;\u5219\u56e0\u7279\u7f51\u547d\u540d\u65f6\u91c7\u7528\u5c42\u6b21\u6811\u72b6\u7ed3\u6784\u7684\u547d\u540d\u65b9\u6cd5\u3002<\/li>\n<li>\u57df\u540d(domain name)&#xff1a;\u4efb\u4f55\u4e00\u4e2a\u8fde\u63a5\u5728\u56e0\u7279\u7f51\u4e0a\u7684\u4e3b\u673a\u6216\u8def\u7531\u5668&#xff0c;\u90fd\u6709\u4e00\u4e2a\u552f\u4e00\u7684\u5c42\u6b21\u7ed3\u6784\u7684\u540d\u79f0<\/li>\n<li>\u57df&#xff08;domain)&#xff1a;\u662f\u540d\u5b57\u7a7a\u95f4\u4e2d\u4e00\u4e2a\u53ef\u88ab\u7ba1\u7406\u7684\u5212\u5206\u7ed3\u6784\u3002<\/li>\n<li>\u6ce8\u610f&#xff1a;\u57df\u540d\u53ea\u662f\u903b\u8f91\u6982\u5ff5&#xff0c;\u5e76\u4e0d\u4ee3\u8868\u8ba1\u7b97\u673a\u6240\u5728\u7684\u7269\u7406\u5730\u70b9<\/li>\n<\/ul>\n<h4>\u5206\u7c7b<\/h4>\n<ul>\n<li>\u56fd\u5bb6\u9876\u7ea7\u57df\u540d&#xff1a;\u91c7\u7528ISO3166\u7684\u89c4\u5b9a&#xff0c;\u5982&#xff1a;cn\u4ee3\u8868\u4e2d\u56fd&#xff0c;us\u4ee3\u8868\u7f8e\u56fd&#xff0c;uk\u4ee3\u8868\u82f1\u56fd&#xff0c;\u7b49\u7b49\u3002\u56fd\u5bb6\u57df\u540d\u53c8\u5e38\u8bb0\u4e3aCCTLD(country code top-level domains&#xff0c;cc\u8868\u793a\u56fd\u5bb6\u4ee3\u7801contry-code)<\/li>\n<li>\u901a\u7528\u9876\u7ea7\u57df\u540d&#xff1a;\u6700\u5e38\u89c1\u7684\u901a\u7528\u9876\u7ea7\u57df\u540d\u67097\u4e2a\n<ul>\n<li>com (\u516c\u53f8\u4f01\u4e1a)<\/li>\n<li>net (\u7f51\u7edc\u670d\u52a1\u673a\u6784)<\/li>\n<li>org (\u975e\u8425\u5229\u7ec4\u7ec7)<\/li>\n<li>int (\u56fd\u9645\u7ec4\u7ec7)<\/li>\n<li>gov (\u7f8e\u56fd\u7684\u653f\u5e9c\u90e8\u95e8)<\/li>\n<li>mil (\u7f8e\u56fd\u7684\u519b\u4e8b\u90e8\u95e8)<\/li>\n<\/ul>\n<\/li>\n<li>\u57fa\u7840\u7ed3\u6784\u57df\u540d(infrastructure domain)&#xff1a;\u8fd9\u79cd\u9876\u7ea7\u57df\u540d\u53ea\u6709\u4e00\u4e2a&#xff0c;\u5373arpa&#xff0c;\u7528\u4e8e\u53cd\u5411\u57df\u540d\u89e3\u6790&#xff0c;\u56e0\u6b64\u79f0\u4e3a\u53cd\u5411\u57df\u540d<\/li>\n<\/ul>\n<h4>\u57df\u540d\u670d\u52a1\u5668\u7c7b\u578b\u5212\u5206<\/h4>\n<ul>\n<li>\n<p>\u7ec4\u7ec7\u67b6\u6784&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423040606-6808672e2f6eb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u6839\u57df\u540d\u670d\u52a1\u5668&#xff1a;\u6700\u9ad8\u5c42\u6b21\u7684\u57df\u540d\u670d\u52a1\u5668&#xff0c;\u6240\u6709\u7684\u6839\u57df\u540d\u670d\u52a1\u5668\u90fd\u77e5\u9053\u6240\u6709\u7684\u9876\u7ea7\u57df\u540d\u670d\u52a1\u5668\u7684\u57df\u540d\u548cIP\u5730\u5740\u3002\u672c\u5730\u57df\u540d\u670d\u52a1\u5668\u8981\u5bf9\u56e0\u7279\u7f51\u4e0a\u4efb\u4f55\u4e00\u4e2a\u57df\u540d\u8fdb\u884c\u89e3\u6790&#xff0c;\u53ea\u8981\u81ea\u5df1\u65e0\u6cd5\u89e3\u6790&#xff0c;\u5c31\u9996\u5148\u6c42\u52a9\u6839\u57df\u540d\u670d\u52a1\u5668\u3002\u5219\u6839\u57df\u540d\u670d\u52a1\u5668\u662f\u6700\u91cd\u8981\u7684\u57df\u540d\u670d\u52a1\u5668\u3002\u5047\u5b9a\u6240\u6709\u7684\u6839\u57df\u540d\u670d\u52a1\u5668\u90fd\u762b\u75ea\u4e86&#xff0c;\u90a3\u4e48\u6574\u4e2aDNS\u7cfb\u7edf\u5c31\u65e0\u6cd5\u5de5\u4f5c\u3002\u6240\u4ee5\u6839\u57df\u540d\u670d\u52a1\u5668\u5e76\u4e0d\u76f4\u63a5\u628a\u5f85\u67e5\u8be2\u7684\u57df\u540d\u76f4\u63a5\u89e3\u6790\u51faIP\u5730\u5740&#xff0c;\u800c\u662f\u544a\u8bc9\u672c\u5730\u57df\u540d\u670d\u52a1\u5668\u4e0b\u4e00\u6b65\u5e94\u5f53\u627e\u54ea\u4e00\u4e2a\u9876\u7ea7\u57df\u540d\u670d\u52a1\u5668\u8fdb\u884c\u67e5\u8be2\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423040606-6808672ec0bf3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u5728\u4e0e\u73b0\u6709IPv4\u6839\u670d\u52a1\u5668\u4f53\u7cfb\u67b6\u6784\u5145\u5206\u517c\u5bb9\u57fa\u7840\u4e0a&#xff0c;\u7531\u6211\u56fd\u4e0b\u4e00\u4ee3\u4e92\u8054\u7f51\u56fd\u5bb6\u5de5\u7a0b\u4e2d\u5fc3\u9886\u8854\u53d1\u8d77\u7684\u201c\u96ea\u4eba\u8ba1\u5212\u201d\u4e8e2016\u5e74\u5728\u7f8e\u56fd\u3001\u65e5\u672c\u3001\u5370\u5ea6\u3001\u4fc4\u7f57\u65af\u3001\u5fb7\u56fd\u3001\u6cd5\u56fd\u7b49\u5168\u740316\u4e2a\u56fd\u5bb6\u5b8c\u621025\u53f0IPv6&#xff08;\u4e92\u8054\u7f51\u534f\u8bae\u7b2c\u516d\u7248&#xff09;\u6839\u670d\u52a1\u5668\u67b6\u8bbe&#xff0c;\u4e8b\u5b9e\u4e0a\u5f62\u6210\u4e8613\u53f0\u539f\u6709\u6839\u52a025\u53f0IPv6\u6839\u7684\u65b0\u683c\u5c40&#xff0c;\u4e3a\u5efa\u7acb\u591a\u8fb9\u3001\u6c11\u4e3b\u3001\u900f\u660e\u7684\u56fd\u9645\u4e92\u8054\u7f51\u6cbb\u7406\u4f53\u7cfb\u6253\u4e0b\u575a\u5b9e\u57fa\u7840\u3002\u4e2d\u56fd\u90e8\u7f72\u4e86\u5176\u4e2d\u76844\u53f0&#xff0c;\u75311\u53f0\u4e3b\u6839\u670d\u52a1\u5668\u548c3\u53f0\u8f85\u6839\u670d\u52a1\u5668\u7ec4\u6210&#xff0c;\u6253\u7834\u4e86\u4e2d\u56fd\u8fc7\u53bb\u6ca1\u6709\u6839\u670d\u52a1\u5668\u7684\u56f0\u5883\u3002<\/p>\n<\/li>\n<li>\n<p>\u9876\u7ea7\u57df\u540d\u670d\u52a1\u5668&#xff1a;\u8d1f\u8d23\u7ba1\u7406\u5728\u8be5\u9876\u7ea7\u57df\u540d\u670d\u52a1\u5668\u6ce8\u518c\u7684\u4e8c\u7ea7\u57df\u540d<\/p>\n<\/li>\n<li>\n<p>\u6743\u9650\u57df\u540d\u670d\u52a1\u5668&#xff1a;\u8d1f\u8d23\u4e00\u4e2a\u201c\u533a\u201d\u7684\u57df\u540d\u670d\u52a1\u5668<\/p>\n<\/li>\n<li>\n<p>\u672c\u5730\u57df\u540d\u670d\u52a1\u5668&#xff1a;\u672c\u5730\u57df\u540d\u670d\u52a1\u5668\u4e0d\u5c5e\u4e8e\u57df\u540d\u670d\u52a1\u5668\u7684\u5c42\u6b21\u7ed3\u6784&#xff0c;\u5f53\u4e3b\u673a\u53d1\u51faDNS\u67e5\u8be2\u65f6&#xff0c;\u8fd9\u4e2a\u67e5\u8be2\u62a5\u6587\u5c31\u53d1\u9001\u7ed9\u672c\u5730\u57df\u540d\u670d\u52a1\u5668<\/p>\n<\/li>\n<li>\n<p>\u4e3a\u4e86\u63d0\u9ad8\u57df\u540d\u670d\u52a1\u5668\u7684\u53ef\u9760\u6027&#xff0c;DNS\u57df\u540d\u670d\u52a1\u5668\u90fd\u628a\u6570\u636e\u590d\u5236\u5230\u51e0\u4e2a\u57df\u540d\u670d\u52a1\u5668\u6765\u4fdd\u5b58&#xff0c;\u5982&#xff1a;<\/p>\n<ul>\n<li>\u4e3b\u670d\u52a1\u5668&#xff1a;\u5728\u7279\u5b9a\u533a\u57df\u5185\u5177\u6709\u552f\u4e00\u6027&#xff0c;\u8d1f\u8d23\u7ef4\u62a4\u8be5\u533a\u57df\u5185\u7684\u57df\u540d\u4e0e IP \u5730\u5740\u4e4b\u95f4\u7684\u5bf9\u5e94\u5173\u7cfb&#xff08;\u771f\u6b63\u5e72\u6d3b\u7684&#xff09;<\/li>\n<li>\u4ece\u670d\u52a1\u5668&#xff1a;\u4ece\u4e3b\u670d\u52a1\u5668\u4e2d\u83b7\u5f97\u57df\u540d\u4e0e IP \u5730\u5740\u7684\u5bf9\u5e94\u5173\u7cfb\u5e76\u8fdb\u884c\u7ef4\u62a4&#xff0c;\u4ee5\u9632\u4e3b\u670d\u52a1\u5668\u5b95\u673a\u7b49\u60c5\u51b5&#xff08;\u6253\u4e0b\u624b\u7684&#xff09;<\/li>\n<li>\u7f13\u5b58\u670d\u52a1\u5668&#xff1a;\u901a\u8fc7\u5411\u5176\u4ed6\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668\u67e5\u8be2\u83b7\u5f97\u57df\u540d\u4e0e IP \u5730\u5740\u7684\u5bf9\u5e94\u5173\u7cfb&#xff0c;\u5e76\u5c06\u7ecf\u5e38\u67e5\u8be2\u7684\u57df\u540d\u4fe1\u606f\u4fdd\u5b58\u5230\u670d\u52a1\u5668\u672c\u5730&#xff0c;\u4ee5\u6b64\u6765\u63d0\u9ad8\u91cd\u590d\u67e5\u8be2\u65f6\u7684\u6548\u7387&#xff0c;\u4e00\u822c\u90e8\u7f72\u5728\u4f01\u4e1a\u5185\u7f51\u7684\u7f51\u5173\u4f4d\u7f6e&#xff0c;\u7528\u4e8e\u52a0\u901f\u7528\u6237\u7684\u57df\u540d\u67e5\u8be2\u8bf7\u6c42<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>DNS\u57df\u540d\u89e3\u6790\u8fc7\u7a0b<\/h2>\n<h3>\u5206\u7c7b<\/h3>\n<ul>\n<li>\u9012\u5f52\u89e3\u6790&#xff1a;DNS \u670d\u52a1\u5668\u5728\u6536\u5230\u7528\u6237\u53d1\u8d77\u7684\u8bf7\u6c42\u65f6&#xff0c;\u5fc5\u987b\u5411\u7528\u6237\u8fd4\u56de\u4e00\u4e2a\u51c6\u786e\u7684\u67e5\u8be2\u7ed3\u679c\u3002\u5982\u679c DNS \u670d\u52a1\u5668\u672c\u5730\u6ca1\u6709\u5b58\u50a8\u4e0e\u4e4b\u5bf9\u5e94\u7684\u4fe1\u606f&#xff0c;\u5219\u8be5\u670d\u52a1\u5668\u9700\u8981\u8be2\u95ee\u5176\u4ed6\u670d\u52a1\u5668&#xff0c;\u5e76\u5c06\u8fd4\u56de\u7684\u67e5\u8be2\u7ed3\u679c\u63d0\u4ea4\u7ed9\u7528\u6237<\/li>\n<li>\u8fed\u4ee3\u89e3\u6790&#xff08;\u53cd\u590d&#xff09;&#xff1a;DNS \u670d\u52a1\u5668\u5728\u6536\u5230\u7528\u6237\u53d1\u8d77\u7684\u8bf7\u6c42\u65f6&#xff0c;\u5e76\u4e0d\u76f4\u63a5\u56de\u590d\u67e5\u8be2\u7ed3\u679c&#xff0c;\u800c\u662f\u544a\u8bc9\u53e6\u4e00\u53f0 DNS \u670d\u52a1\u5668\u7684\u5730\u5740&#xff0c;\u7528\u6237\u518d\u5411\u8fd9\u53f0 DNS \u670d\u52a1\u5668\u63d0\u4ea4\u8bf7\u6c42&#xff0c;\u4f9d\u6b21\u53cd\u590d&#xff0c;\u76f4\u5230\u8fd4\u56de\u67e5\u8be2\u7ed3\u679c<\/li>\n<\/ul>\n<h3>\u89e3\u6790\u56fe&#xff1a;<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423040608-6808673027a0b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u8fc7\u7a0b\u5206\u6790<\/h4>\n<ul>\n<li>\u7b2c\u4e00\u6b65&#xff1a;\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165www . google .com \u57df\u540d&#xff0c;\u672c\u5730\u7535\u8111\u4f1a\u68c0\u67e5\u6d4f\u89c8\u5668\u7f13\u5b58\u4e2d\u6709\u6ca1\u6709\u8fd9\u4e2a\u57df\u540d\u5bf9\u5e94\u7684\u89e3\u6790\u8fc7\u7684 IP \u5730\u5740&#xff0c;\u5982\u679c\u7f13\u5b58\u4e2d\u6709&#xff0c;\u8fd9\u4e2a\u89e3\u6790\u8fc7\u7a0b\u5c31\u7ed3\u675f\u3002\u6d4f\u89c8\u5668\u7f13\u5b58\u57df\u540d\u4e5f\u662f\u6709\u9650\u5236\u7684&#xff0c;\u4e0d\u4ec5\u6d4f\u89c8\u5668\u7f13\u5b58\u5927\u5c0f\u6709\u9650\u5236&#xff0c;\u800c\u4e14\u7f13\u5b58\u7684\u65f6\u95f4\u4e5f\u6709\u9650\u5236&#xff0c;\u901a\u5e38\u60c5\u51b5\u4e0b\u4e3a\u51e0\u5206\u949f\u5230\u51e0\u5c0f\u65f6\u4e0d\u7b49&#xff0c;\u57df\u540d\u88ab\u7f13\u5b58\u7684\u65f6\u95f4\u9650\u5236\u53ef\u4ee5\u901a\u8fc7 TTL \u5c5e\u6027\u6765\u8bbe\u7f6e\u3002\u8fd9\u4e2a\u7f13\u5b58\u65f6\u95f4\u592a\u957f\u548c\u592a\u77ed\u90fd\u4e0d\u592a\u597d&#xff0c;\u5982\u679c\u65f6\u95f4\u592a\u957f&#xff0c;\u4e00\u65e6\u57df\u540d\u88ab\u89e3\u6790\u5230\u7684 IP \u6709\u53d8\u5316&#xff0c;\u4f1a\u5bfc\u81f4\u88ab\u5ba2\u6237\u7aef\u7f13\u5b58\u7684\u57df\u540d\u65e0\u6cd5\u89e3\u6790\u5230\u53d8\u5316\u540e\u7684 IP \u5730\u5740&#xff0c;\u4ee5\u81f4\u8be5\u57df\u540d\u4e0d\u80fd\u6b63\u5e38\u89e3\u6790&#xff0c;\u8fd9\u6bb5\u65f6\u95f4\u5185\u6709\u4e00\u90e8\u5206\u7528\u6237\u65e0\u6cd5\u8bbf\u95ee\u7f51\u7ad9\u3002\u5982\u679c\u8bbe\u7f6e\u65f6\u95f4\u592a\u77ed&#xff0c;\u4f1a\u5bfc\u81f4\u7528\u6237\u6bcf\u6b21\u8bbf\u95ee\u7f51\u7ad9\u90fd\u8981\u91cd\u65b0\u89e3\u6790\u4e00\u6b21\u57df\u540d<\/li>\n<li>\u7b2c\u4e8c\u6b65&#xff1a;\u5982\u679c\u6d4f\u89c8\u5668\u7f13\u5b58\u4e2d\u6ca1\u6709\u6570\u636e&#xff0c;\u6d4f\u89c8\u5668\u4f1a\u67e5\u627e\u64cd\u4f5c\u7cfb\u7edf\u7f13\u5b58\u4e2d\u662f\u5426\u6709\u8fd9\u4e2a\u57df\u540d\u5bf9\u5e94\u7684 DNS \u89e3\u6790\u7ed3\u679c\u3002\u5176\u5b9e\u64cd\u4f5c\u7cfb\u7edf\u4e5f\u6709\u4e00\u4e2a[\u57df\u540d\u89e3\u6790]\u7684\u8fc7\u7a0b&#xff0c;\u5728 Linux \u4e2d\u53ef\u4ee5\u901a\u8fc7 \/ etc\/hosts \u6587\u4ef6\u6765\u8bbe\u7f6e&#xff0c;\u800c\u5728 windows \u4e2d\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e C:\\\\Windows\\\\System32\\\\drivers\\\\etc\\\\hosts \u6587\u4ef6\u6765\u8bbe\u7f6e&#xff0c;\u7528\u6237\u53ef\u4ee5\u5c06\u4efb\u4f55\u57df\u540d\u89e3\u6790\u5230\u4efb\u4f55\u80fd\u591f\u8bbf\u95ee\u7684 IP \u5730\u5740\u3002\u4f8b\u5982&#xff0c;\u6211\u4eec\u5728\u6d4b\u8bd5\u65f6\u53ef\u4ee5\u5c06\u4e00\u4e2a\u57df\u540d\u89e3\u6790\u5230\u4e00\u53f0\u6d4b\u8bd5\u670d\u52a1\u5668\u4e0a&#xff0c;\u8fd9\u6837\u4e0d\u7528\u4fee\u6539\u4efb\u4f55\u4ee3\u7801\u5c31\u80fd\u6d4b\u8bd5\u5230\u5355\u72ec\u670d\u52a1\u5668\u4e0a\u7684\u4ee3\u7801\u7684\u4e1a\u52a1\u903b\u8f91\u662f\u5426\u6b63\u786e\u3002\u6b63\u662f\u56e0\u4e3a\u6709\u8fd9\u79cd\u672c\u5730 DNS \u89e3\u6790\u7684\u89c4\u7a0b&#xff0c;\u6240\u4ee5\u6709\u9ed1\u5ba2\u5c31\u53ef\u80fd\u901a\u8fc7\u4fee\u6539\u7528\u6237\u7684\u57df\u540d\u6765\u628a\u7279\u5b9a\u7684\u57df\u540d\u89e3\u6790\u5230\u4ed6\u6307\u5b9a\u7684 IP \u5730\u5740\u4e0a&#xff0c;\u5bfc\u81f4\u8fd9\u4e9b\u57df\u540d\u88ab\u52ab\u6301<\/li>\n<li>\u7b2c\u4e09\u6b65&#xff1a;\u524d\u4e24\u6b65\u662f\u5728\u672c\u5730\u7535\u8111\u4e0a\u5b8c\u6210\u7684&#xff0c;\u82e5\u65e0\u6cd5\u89e3\u6790\u65f6&#xff0c;\u5c31\u8981\u7528\u5230\u6211\u4eec\u7f51\u7edc\u914d\u7f6e\u4e2d\u7684 \u201cDNS \u670d\u52a1\u5668\u5730\u5740\u201d \u4e86\u3002\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u628a\u8fd9\u4e2a\u57df\u540d\u53d1\u9001\u7ed9\u8fd9\u4e2a\u672c\u5730 DNS \u670d\u52a1\u5668\u3002\u6bcf\u4e2a\u5b8c\u6574\u7684\u5185\u7f51\u901a\u5e38\u90fd\u4f1a\u914d\u7f6e\u672c\u5730 DNS \u670d\u52a1\u5668&#xff0c;\u4f8b\u5982\u7528\u6237\u662f\u5728\u5b66\u6821\u6216\u5de5\u4f5c\u5355\u4f4d\u63a5\u5165\u4e92\u8054\u7f51&#xff0c;\u90a3\u4e48\u7528\u6237\u7684\u672c\u5730 DNS \u670d\u52a1\u5668\u80af\u5b9a\u5728\u5b66\u6821\u6216\u5de5\u4f5c\u5355\u4f4d\u91cc\u9762\u3002\u5b83\u4eec\u4e00\u822c\u90fd\u4f1a\u7f13\u5b58\u57df\u540d\u89e3\u6790\u7ed3\u679c&#xff0c;\u5f53\u7136\u7f13\u5b58\u65f6\u95f4\u662f\u53d7\u5230\u57df\u540d\u7684\u5931\u6548\u65f6\u95f4\u63a7\u5236\u7684\u3002\u5927\u7ea6 80% \u7684\u57df\u540d\u89e3\u6790\u5230\u8fd9\u91cc\u5c31\u7ed3\u675f\u4e86&#xff0c;\u540e\u7eed\u7684 DNS \u8fed\u4ee3\u548c\u9012\u5f52\u4e5f\u662f\u7531\u672c\u5730 DNS \u670d\u52a1\u5668\u8d1f\u8d23<\/li>\n<li>\u7b2c\u56db\u6b65&#xff1a;\u5982\u679c\u672c\u5730 DNS \u670d\u52a1\u5668\u4ecd\u7136\u6ca1\u6709\u547d\u4e2d&#xff0c;\u5c31\u76f4\u63a5\u5230\u6839 DNS \u670d\u52a1\u5668\u8bf7\u6c42\u89e3\u6790<\/li>\n<li>\u7b2c\u4e94\u6b65&#xff1a;\u6839 DNS \u670d\u52a1\u5668\u8fd4\u56de\u7ed9\u672c\u5730 DNS \u57df\u540d\u670d\u52a1\u5668\u4e00\u4e2a\u9876\u7ea7 DNS \u670d\u52a1\u5668\u5730\u5740&#xff0c;\u5b83\u662f\u56fd\u9645\u9876\u7ea7\u57df\u540d\u670d\u52a1\u5668&#xff0c;\u5982. com\u3001.cn\u3001.org \u7b49&#xff0c;\u5168\u7403\u53ea\u6709 13 \u53f0\u5de6\u53f3<\/li>\n<li>\u7b2c\u516d\u6b65&#xff1a;\u672c\u5730 DNS \u670d\u52a1\u5668\u518d\u5411\u4e0a\u4e00\u6b65\u83b7\u5f97\u7684\u9876\u7ea7 DNS \u670d\u52a1\u5668\u53d1\u9001\u89e3\u6790\u8bf7\u6c42<\/li>\n<li>\u7b2c\u4e03\u6b65&#xff1a;\u63a5\u53d7\u8bf7\u6c42\u7684\u9876\u7ea7 DNS \u670d\u52a1\u5668\u67e5\u627e\u5e76\u8fd4\u56de\u6b64\u57df\u540d\u5bf9\u5e94\u7684 Name Server \u57df\u540d\u670d\u52a1\u5668\u7684\u5730\u5740&#xff0c;\u8fd9\u4e2a Name Server \u670d\u52a1\u5668\u5c31\u662f\u6211\u8981\u8bbf\u95ee\u7684\u7f51\u7ad9\u57df\u540d\u63d0\u4f9b\u5546\u7684\u670d\u52a1\u5668&#xff0c;\u5176\u5b9e\u8be5\u57df\u540d\u7684\u89e3\u6790\u4efb\u52a1\u5c31\u662f\u7531\u57df\u540d\u63d0\u4f9b\u5546\u7684\u670d\u52a1\u5668\u6765\u5b8c\u6210\u3002 \u6bd4\u5982\u6211\u8981\u8bbf\u95ee www.baidu.com&#xff0c;\u800c\u8fd9\u4e2a\u57df\u540d\u662f\u4ece A \u516c\u53f8\u6ce8\u518c\u83b7\u5f97\u7684&#xff0c;\u90a3\u4e48 A \u516c\u53f8\u4e0a\u7684\u670d\u52a1\u5668\u5c31\u4f1a\u6709 www.baidu.com \u7684\u76f8\u5173\u4fe1\u606f<\/li>\n<li>\u7b2c\u516b\u6b65&#xff1a;\u8fd4\u56de\u8be5\u57df\u540d\u5bf9\u5e94\u7684 IP \u548c TTL \u503c&#xff0c;\u672c\u5730 DNS \u670d\u52a1\u5668\u4f1a\u7f13\u5b58\u8fd9\u4e2a\u57df\u540d\u548c IP \u7684\u5bf9\u5e94\u5173\u7cfb&#xff0c;\u7f13\u5b58\u65f6\u95f4\u7531 TTL \u503c\u63a7\u5236<\/li>\n<li>\u7b2c\u4e5d\u6b65&#xff1a;Name Server \u670d\u52a1\u5668\u6536\u5230\u67e5\u8be2\u8bf7\u6c42\u540e\u518d\u5176\u6570\u636e\u5e93\u4e2d\u8fdb\u884c\u67e5\u8be2&#xff0c;\u627e\u5230\u6620\u5c04\u5173\u7cfb\u540e\u5c06\u5176IP\u5730\u5740\u8fd4\u56de\u7ed9\u672c\u5730DNS\u670d\u52a1\u5668<\/li>\n<li>\u7b2c\u5341\u6b65&#xff1a;\u672c\u5730DNS\u670d\u52a1\u5668\u628a\u89e3\u6790\u7684\u7ed3\u679c\u8fd4\u56de\u7ed9\u672c\u5730\u7535\u8111&#xff0c;\u672c\u5730\u7535\u8111\u6839\u636e TTL \u503c\u7f13\u5b58\u5728\u672c\u5730\u7cfb\u7edf\u7f13\u5b58\u4e2d&#xff0c;\u57df\u540d\u89e3\u6790\u8fc7\u7a0b\u7ed3\u675f\u5728\u5b9e\u9645\u7684 DNS \u89e3\u6790\u8fc7\u7a0b\u4e2d&#xff0c;\u53ef\u80fd\u8fd8\u4e0d\u6b62\u8fd9 10 \u6b65&#xff0c;\u5982 Name Server \u53ef\u80fd\u6709\u5f88\u591a\u7ea7&#xff0c;\u6216\u8005\u6709\u4e00\u4e2a GTM \u6765\u8d1f\u8f7d\u5747\u8861\u63a7\u5236&#xff0c;\u8fd9\u90fd\u6709\u53ef\u80fd\u4f1a\u5f71\u54cd\u57df\u540d\u89e3\u6790\u8fc7\u7a0b<\/li>\n<li>\u6ce8\u610f&#xff1a;\n<ul>\n<li>\u4ece\u5ba2\u6237\u7aef\u5230\u672c\u5730DNS\u670d\u52a1\u5668\u662f\u5c5e\u4e8e\u9012\u5f52\u67e5\u8be2&#xff0c;\u800cDNS\u670d\u52a1\u5668\u4e4b\u95f4\u4f7f\u7528\u7684\u4ea4\u4e92\u67e5\u8be2\u5c31\u662f\u8fed\u4ee3\u67e5\u8be2<\/li>\n<li>114.114.114.114\u662f\u56fd\u5185\u79fb\u52a8\u3001\u7535\u4fe1\u548c\u8054\u901a\u901a\u7528\u7684DNS&#xff0c;\u624b\u673a\u548c\u7535\u8111\u7aef\u90fd\u53ef\u4ee5\u4f7f\u7528&#xff0c;\u5e72\u51c0\u65e0\u5e7f\u544a&#xff0c;\u89e3\u6790\u6210\u529f\u7387\u76f8\u5bf9\u6765\u8bf4\u66f4\u9ad8&#xff0c;\u56fd\u5185\u7528\u6237\u4f7f\u7528\u7684\u6bd4\u8f83\u591a&#xff0c;\u800c\u4e14\u901f\u5ea6\u76f8\u5bf9\u5feb\u3001\u7a33\u5b9a&#xff0c;\u662f\u56fd\u5185\u7528\u6237\u4e0a\u7f51\u5e38\u7528\u7684DNS\u3002<\/li>\n<li>223.5.5.5\u548c223.6.6.6\u662f\u963f\u91cc\u63d0\u4f9b\u7684\u514d\u8d39\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668\u5730\u5740<\/li>\n<li>8.8.8.8\u662fGOOGLE\u516c\u53f8\u63d0\u4f9b\u7684DNS&#xff0c;\u8be5\u5730\u5740\u662f\u5168\u7403\u901a\u7528\u7684&#xff0c;\u76f8\u5bf9\u6765\u8bf4&#xff0c;\u66f4\u9002\u5408\u56fd\u5916\u4ee5\u53ca\u8bbf\u95ee\u56fd\u5916\u7f51\u7ad9\u7684\u7528\u6237\u4f7f\u7528<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u642d\u5efaDNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668<\/h2>\n<h3>\u6982\u8ff0<\/h3>\n<ul>\n<li>BIND&#xff1a;Berkeley Internet Name Domain &#xff0c;\u4f2f\u514b\u5229\u56e0\u7279\u7f51\u57df\u540d\u89e3\u6790\u670d\u52a1\u662f\u4e00\u79cd\u5168\u7403\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u3001\u6700\u9ad8\u6548\u7684\u3001\u6700\u5b89\u5168\u7684\u57df\u540d\u89e3\u6790\u670d\u52a1\u7a0b\u5e8f<\/li>\n<\/ul>\n<h3>\u5b89\u88c5\u8f6f\u4ef6<\/h3>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum  install  bind  -y<\/span><\/p>\n<h3>bind\u4e2d\u7684\u4e09\u4e2a\u91cd\u8981\u6587\u4ef6<\/h3>\n<ul>\n<li>\/etc\/named.conf : \u4e3b\u914d\u7f6e\u6587\u4ef6&#xff0c;\u517159\u884c&#xff0c;\u53bb\u9664\u6ce8\u91ca\u548c\u7a7a\u884c\u4e4b\u548c\u6709\u6548\u884c\u6570\u4ec530\u884c\u5de6\u53f3&#xff0c;\u7528\u4e8e\u8bbe\u7f6ebind\u670d\u52a1\u7a0b\u5e8f\u7684\u8fd0\u884c<\/li>\n<\/ul>\n<p>\/\/<br \/>\n\/\/ named.conf<br \/>\n\/\/<br \/>\n\/\/ Provided by Red Hat <span class=\"token builtin class-name\">bind<\/span> package to configure the ISC BIND named<span class=\"token punctuation\">(<\/span><span class=\"token number\">8<\/span><span class=\"token punctuation\">)<\/span> DNS<br \/>\n\/\/ server as a caching only nameserver <span class=\"token punctuation\">(<\/span>as a localhost DNS resolver only<span class=\"token punctuation\">)<\/span>.<br \/>\n\/\/<br \/>\n\/\/ See \/usr\/share\/doc\/bind*\/sample\/ <span class=\"token keyword\">for<\/span> example named configuration files.<br \/>\n\/\/<\/p>\n<p>options <span class=\"token punctuation\">{<\/span><br \/>\n        listen-on port <span class=\"token number\">53<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token number\">127.0<\/span>.0.1<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        listen-on-v6 port <span class=\"token number\">53<\/span> <span class=\"token punctuation\">{<\/span> ::1<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        directory       <span class=\"token string\">&#034;\/var\/named&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        dump-file       <span class=\"token string\">&#034;\/var\/named\/data\/cache_dump.db&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        statistics-file <span class=\"token string\">&#034;\/var\/named\/data\/named_stats.txt&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        memstatistics-file <span class=\"token string\">&#034;\/var\/named\/data\/named_mem_stats.txt&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        secroots-file   <span class=\"token string\">&#034;\/var\/named\/data\/named.secroots&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        recursing-file  <span class=\"token string\">&#034;\/var\/named\/data\/named.recursing&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        allow-query     <span class=\"token punctuation\">{<\/span> localhost<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        \/*<br \/>\n         &#8211; If you are building an AUTHORITATIVE DNS server, <span class=\"token keyword\">do<\/span> NOT <span class=\"token builtin class-name\">enable<\/span> recursion.<br \/>\n         &#8211; If you are building a RECURSIVE <span class=\"token punctuation\">(<\/span>caching<span class=\"token punctuation\">)<\/span> DNS server, you need to <span class=\"token builtin class-name\">enable<\/span><br \/>\n           recursion.<br \/>\n         &#8211; If your recursive DNS server has a public IP address, you MUST <span class=\"token builtin class-name\">enable<\/span> access<br \/>\n           control to limit queries to your legitimate users. Failing to <span class=\"token keyword\">do<\/span> so will<br \/>\n           cause your server to become part of large scale DNS amplification<br \/>\n           attacks. Implementing BCP38 within your network would greatly<br \/>\n           reduce such attack surface<br \/>\n        *\/<br \/>\n        recursion <span class=\"token function\">yes<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        dnssec-validation <span class=\"token function\">yes<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        managed-keys-directory <span class=\"token string\">&#034;\/var\/named\/dynamic&#034;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        pid-file <span class=\"token string\">&#034;\/run\/named\/named.pid&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        session-keyfile <span class=\"token string\">&#034;\/run\/named\/session.key&#034;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        include <span class=\"token string\">&#034;\/etc\/crypto-policies\/back-ends\/bind.config&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\nlogging <span class=\"token punctuation\">{<\/span><br \/>\n        channel default_debug <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;data\/named.run&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n                severity dynamic<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>zone <span class=\"token string\">&#034;.&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> hint<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;named.ca&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>include <span class=\"token string\">&#034;\/etc\/named.rfc1912.zones&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\ninclude <span class=\"token string\">&#034;\/etc\/named.root.key&#034;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\/etc\/named.rfc1912.zones &#xff1a; \u533a\u57df\u914d\u7f6e\u6587\u4ef6&#xff08;zone&#xff09;&#xff0c;\u7528\u4e8e\u4fdd\u5b58\u57df\u540d\u548cIP\u5730\u5740\u5bf9\u5e94\u5173\u7cfb\u6587\u4ef6\u7684\u6240\u5728\u4f4d\u7f6e&#xff0c;\u7c7b\u4f3c\u4e8e\u56fe\u4e66\u76ee\u5f55&#xff0c;\u5f53\u9700\u8981\u4fee\u6539\u57df\u540d\u4e0eIP\u6620\u5c04\u5173\u7cfb\u65f6\u9700\u8981\u5728\u6b64\u6587\u4ef6\u4e2d\u67e5\u627e\u76f8\u5173\u6587\u4ef6\u4f4d\u7f6e<\/li>\n<\/ul>\n<p>\/\/ named.rfc1912.zones:<br \/>\n\/\/<br \/>\n\/\/ Provided by Red Hat caching-nameserver package<br \/>\n\/\/<br \/>\n\/\/ ISC BIND named zone configuration <span class=\"token keyword\">for<\/span> zones recommended by<br \/>\n\/\/ RFC <span class=\"token number\">1912<\/span> section <span class=\"token number\">4.1<\/span> <span class=\"token builtin class-name\">:<\/span> localhost TLDs and address zones<br \/>\n\/\/ and https:\/\/tools.ietf.org\/html\/rfc6303<br \/>\n\/\/ <span class=\"token punctuation\">(<\/span>c<span class=\"token punctuation\">)<\/span><span class=\"token number\">2007<\/span> R W Franks<br \/>\n\/\/<br \/>\n\/\/ See \/usr\/share\/doc\/bind*\/sample\/ <span class=\"token keyword\">for<\/span> example named configuration files.<br \/>\n\/\/<br \/>\n\/\/ Note: empty-zones-enable <span class=\"token function\">yes<\/span><span class=\"token punctuation\">;<\/span> option is default.<br \/>\n\/\/ If private ranges should be forwarded, <span class=\"token function\">add<\/span><br \/>\n\/\/ disable-empty-zone <span class=\"token string\">&#034;.&#034;<\/span><span class=\"token punctuation\">;<\/span> into options<br \/>\n\/\/<\/p>\n<p>zone <span class=\"token string\">&#034;localhost.localdomain&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;named.localhost&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        allow-update <span class=\"token punctuation\">{<\/span> none<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>zone <span class=\"token string\">&#034;localhost&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;named.localhost&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        allow-update <span class=\"token punctuation\">{<\/span> none<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>zone <span class=\"token string\">&#034;1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;named.loopback&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        allow-update <span class=\"token punctuation\">{<\/span> none<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>zone <span class=\"token string\">&#034;1.0.0.127.in-addr.arpa&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;named.loopback&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        allow-update <span class=\"token punctuation\">{<\/span> none<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>zone <span class=\"token string\">&#034;0.in-addr.arpa&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;named.empty&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        allow-update <span class=\"token punctuation\">{<\/span> none<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\/var\/named\u76ee\u5f55&#xff1a;\u6570\u636e\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55&#xff0c;\u8be5\u76ee\u5f55\u5b58\u50a8\u4fdd\u5b58\u57df\u540d\u548cIP\u5730\u5740\u6620\u5c04\u5173\u7cfb\u7684\u6570\u636e\u6587\u4ef6<\/li>\n<\/ul>\n<p><span class=\"token string\">&#034; &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n&#034;<\/span> Netrw Directory Listing                                        <span class=\"token punctuation\">(<\/span>netrw v171<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token string\">&#034;   \/var\/named<br \/>\n&#034;<\/span>   Sorted by      name<br \/>\n<span class=\"token string\">&#034;   Sort sequence: [\\\\\/]$,\\\\&lt;core\\\\%(\\\\.\\\\d\\\\&#043;\\\\)\\\\&#061;\\\\&gt;,\\\\.h$,\\\\.c$,\\\\.cpp$,\\\\~\\\\&#061;\\\\*$,*,\\\\.o$,\\\\.obj$,\\\\.inf<br \/>\n&#034;<\/span>   Quick Help: <span class=\"token operator\">&lt;<\/span>F<span class=\"token operator\"><span class=\"token file-descriptor important\">1<\/span>&gt;<\/span>:help  -:go up <span class=\"token function\">dir<\/span>  D:delete  R:rename  s:sort-by  x:special<br \/>\n&#034; <span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;&#061;<\/span><br \/>\n<span class=\"token punctuation\">..<\/span>\/<br \/>\n.\/<br \/>\ndata\/<br \/>\ndynamic\/<br \/>\nslaves\/<br \/>\nnamed.ca<br \/>\nnamed.empty<br \/>\nnamed.localhost<br \/>\nnamed.loopback<\/p>\n<h3>\u914d\u7f6e\u6587\u4ef6\u5206\u6790<\/h3>\n<ul>\n<li>\u4e3b\u914d\u7f6e\u6587\u4ef6\u51714\u90e8\u5206\u7ec4\u6210&#xff0c;options{}&#xff0c;logging{}&#xff0c;zone{}&#xff0c;include<\/li>\n<\/ul>\n<p>options <span class=\"token punctuation\">{<\/span>   <span class=\"token comment\"># \u5168\u5c40\u53c2\u6570\u8bbe\u7f6e<\/span><br \/>\n        listen-on port <span class=\"token number\">53<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token number\">127.0<\/span>.0.1<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u91cd\u70b9&#xff0c;\u76d1\u542c\u5141\u8bb8\u8bbf\u95ee\u7684ip\u4e0e\u7aef\u53e3&#xff0c;\u53ef\u4ee5\u4f7f\u7528ip\u5730\u5740&#xff0c;\u7f51\u6bb5&#xff0c;\u6240\u6709\u4e3b\u673a&#xff08;any&#xff09;<\/span><br \/>\n        listen-on-v6 port <span class=\"token number\">53<\/span> <span class=\"token punctuation\">{<\/span> ::1<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u91cd\u70b9&#xff0c;\u76d1\u542c\u5141\u8bb8\u8bbf\u95ee\u7684ipv6\u4e0e\u7aef\u53e3<\/span><br \/>\n        directory       <span class=\"token string\">&#034;\/var\/named&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># DNS\u6570\u636e\u76ee\u5f55\u4f4d\u7f6e&#xff0c;\u9ed8\u8ba4\u5373\u53ef<\/span><br \/>\n        dump-file       <span class=\"token string\">&#034;\/var\/named\/data\/cache_dump.db&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u9ed8\u8ba4\u7f13\u5b58\u6587\u4ef6\u4f4d\u7f6e&#xff0c;\u9ed8\u8ba4\u5373\u53ef<\/span><br \/>\n        statistics-file <span class=\"token string\">&#034;\/var\/named\/data\/named_stats.txt&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># DNS\u72b6\u6001\u6587\u4ef6\u4fdd\u5b58\u6587\u4ef6&#xff0c;\u9ed8\u8ba4\u5373\u53ef<\/span><br \/>\n        memstatistics-file <span class=\"token string\">&#034;\/var\/named\/data\/named_mem_stats.txt&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u5185\u5b58\u72b6\u6001\u6587\u4ef6\u4fdd\u5b58\u6587\u4ef6&#xff0c;\u9ed8\u8ba4\u5373\u53ef<\/span><br \/>\n        secroots-file   <span class=\"token string\">&#034;\/var\/named\/data\/named.secroots&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">#  \u5b89\u5168\u6839\u670d\u52a1\u5668\u4fdd\u5b58\u4f4d\u7f6e&#xff0c;\u9ed8\u8ba4\u5373\u53ef<\/span><br \/>\n        recursing-file  <span class=\"token string\">&#034;\/var\/named\/data\/named.recursing&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u9012\u5f52\u67e5\u8be2\u6587\u4ef6\u4fdd\u5b58\u4f4d\u7f6e&#xff0c;\u9ed8\u8ba4\u5373\u53ef<\/span><br \/>\n        allow-query     <span class=\"token punctuation\">{<\/span> localhost<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\"># \u91cd\u70b9&#xff0c;\u8868\u793a\u5141\u8bb8\u90a3\u4e9b\u5ba2\u6237\u7aef\u8fdb\u884c\u8bbf\u95ee&#xff0c;\u53ef\u4ee5\u4e66\u5199IP\u5730\u5740&#xff0c;\u7f51\u6bb5&#xff0c;\u6240\u6709\u4e3b\u673a&#xff08;any&#xff09;<\/span><\/p>\n<p>        recursion <span class=\"token function\">yes<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u91cd\u70b9&#xff0c;\u5141\u8bb8\u9012\u5f52\u67e5\u8be2&#xff0c;\u82e5\u5220\u9664\u5219\u4e3a\u8fed\u4ee3\u67e5\u8be2<\/span><\/p>\n<p>        dnssec-validation <span class=\"token function\">yes<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">#  \u5f00\u542f\u52a0\u5bc6&#xff0c;\u9ed8\u8ba4\u5373\u53ef<\/span><\/p>\n<p>        managed-keys-directory <span class=\"token string\">&#034;\/var\/named\/dynamic&#034;<\/span><span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">#  \u6307\u5b9a\u76ee\u5f55\u6587\u4ef6\u4fdd\u5b58\u4f4d\u7f6e&#xff0c;\u7528\u4e8e\u7ba1\u7406\u5bc6\u94a5&#xff08;DNSSEC&#xff09;<\/span><\/p>\n<p>        pid-file <span class=\"token string\">&#034;\/run\/named\/named.pid&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        session-keyfile <span class=\"token string\">&#034;\/run\/named\/session.key&#034;<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\"># pid\u6587\u4ef6\u4fdd\u5b58\u8def\u5f84&#xff0c;\u81ea\u52a8\u751f\u6210&#xff0c;\u9ed8\u8ba4\u5373\u53ef<\/span><\/p>\n<p>        include <span class=\"token string\">&#034;\/etc\/crypto-policies\/back-ends\/bind.config&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u5f15\u7528\u7cfb\u7edf\u7684\u7edf\u4e00\u52a0\u5bc6\u7b56\u7565\u6587\u4ef6&#xff0c;\u4f7f\u5f97bind\u7684\u52a0\u5bc6\u914d\u7f6e\u7b26\u5408\u7cfb\u7edf\u7684\u5b89\u5168\u7b56\u7565\u8981\u6c42<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\nlogging <span class=\"token punctuation\">{<\/span>   <span class=\"token comment\"># \u6307\u5b9a\u65e5\u5fd7\u8bb0\u5f55\u7684\u5206\u7c7b\u53ca\u5b58\u50a8\u76ee\u5f55<\/span><br \/>\n        channel default_debug <span class=\"token punctuation\">{<\/span>    <span class=\"token comment\"># \u8bbe\u7f6e\u65e5\u5fd7\u8f93\u51fa\u65b9\u5f0f<\/span><br \/>\n                <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;data\/named.run&#034;<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\"># \u4ea7\u751f\u65e5\u5fd7\u4fe1\u606f\u6587\u4ef6\u7684\u4f4d\u7f6e<\/span><br \/>\n                severity dynamic<span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u65e5\u5fd7\u7ea7\u522b<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>zone <span class=\"token string\">&#034;.&#034;<\/span> IN <span class=\"token punctuation\">{<\/span>     <span class=\"token comment\"># zone\u8868\u793a\u533a\u57df&#xff0c;\u201c.\u201d \u8868\u793a\u6839&#xff0c;\u6b64\u5904\u8bbe\u7f6eDNS\u6839\u670d\u52a1\u5668\u7684\u76f8\u5173\u4fe1\u606f<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> hint<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\"># \u8868\u793a\u670d\u52a1\u5668\u7684\u7c7b\u578b\u4e3a\u6839<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;named.ca&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u7528\u4e8e\u4fdd\u5b58DNS\u6839\u670d\u52a1\u5668\u4fe1\u606f\u7684\u6587\u4ef6&#xff0c;\u5b58\u50a8\u8def\u5f84\/var\/named\/named.ca,\u4e00\u5171\u670913\u53f0ipv4\u548c13\u53f0ipv6\u6839\u670d\u52a1\u5668\u4fe1\u606f<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>include <span class=\"token string\">&#034;\/etc\/named.rfc1912.zones&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u8868\u793a\u5f53\u524dDNS\u670d\u52a1\u5668\u7684\u533a\u57df\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e<\/span><br \/>\ninclude <span class=\"token string\">&#034;\/etc\/named.root.key&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u5bc6\u94a5\u5b58\u50a8\u6587\u4ef6\u4f4d\u7f6e<\/span><\/p>\n<ul>\n<li>\u4e00\u822c\u9700\u8981\u4fee\u6539\u4e09\u90e8\u5206&#xff1a;\n<ul>\n<li>listen-on port 53 { 127.0.0.1; }; \u76d1\u542cip\u53ca\u7aef\u53e3<\/li>\n<li>allow-query { localhost; }; \u5141\u8bb8\u54ea\u4e9b\u5ba2\u6237\u7aef\u8bbf\u95ee<\/li>\n<li>recursion yes; # \u662f\u5426\u5f00\u542f\u9012\u5f52\u67e5\u8be2<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u533a\u57df\u914d\u7f6e\u6587\u4ef6<\/h3>\n<h4>\u4f5c\u7528<\/h4>\n<ul>\n<li>\/etc\/named.rfc1912.zones\u6587\u4ef6\u4e3abind\u670d\u52a1\u7a0b\u5e8f\u7684\u533a\u57df\u914d\u7f6e\u6587\u4ef6&#xff0c;\u7528\u6765\u4fdd\u5b58\u57df\u540d\u4e0eIP\u5730\u5740\u6620\u5c04\u5173\u7cfb\u6587\u4ef6\u7684\u4f4d\u7f6e&#xff0c;\u662f\u4e00\u7cfb\u5217\u529f\u80fd\u6a21\u677f\u7684\u96c6\u5408<\/li>\n<\/ul>\n<h4>\u533a\u57df\u914d\u7f6e\u6587\u4ef6\u793a\u4f8b\u5206\u6790<\/h4>\n<ul>\n<li>\u6b63\u5411\u89e3\u6790<\/li>\n<\/ul>\n<p>zone <span class=\"token string\">&#034;localhost.localdomain&#034;<\/span> IN <span class=\"token punctuation\">{<\/span>  <span class=\"token comment\"># \u6b63\u5411\u89e3\u6790\u57df\u540d<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u670d\u52a1\u7c7b\u578b&#xff1a;master\u8868\u793a\u4e3b\u670d\u52a1\u5668&#xff0c;slave\u8868\u793a\u4ece\u670d\u52a1\u5668&#xff0c;hint\u8868\u793a\u6839\u670d\u52a1\u5668<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;named.localhost&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u57df\u540d\u4e0eIP\u5730\u5740\u89c4\u5219\u6587\u4ef6\u5b58\u50a8\u4f4d\u7f6e<\/span><br \/>\n        allow-update <span class=\"token punctuation\">{<\/span> none<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u5141\u8bb8\u90a3\u4e9b\u5ba2\u6237\u7aef\u52a8\u6001\u66f4\u65b0\u672c\u673a\u57df\u540d\u89e3\u6790<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\"># allow-update&#xff1a;\u5141\u8bb8\u66f4\u65b0\u89e3\u6790\u5e93\u5185\u5bb9&#xff0c;\u4e00\u822c\u5173\u95ed<\/span><br \/>\n<span class=\"token comment\"># allow-query&#xff1a;\u5141\u8bb8\u67e5\u8be2\u7684\u4e3b\u673a&#xff0c;\u767d\u540d\u5355<\/span><br \/>\n<span class=\"token comment\"># allow-tranfter &#xff1a; \u5141\u8bb8\u540c\u6b65\u7684\u4e3b\u673a&#xff0c;\u767d\u540d\u5355&#xff0c;\u5e38\u7528<\/span><br \/>\n<span class=\"token comment\"># allow-recursion&#xff1a; \u5141\u8bb8\u9012\u5f52\u7684\u4e3b\u673a<\/span><\/p>\n<ul>\n<li>\u53cd\u5411\u89e3\u6790<\/li>\n<\/ul>\n<p>zone <span class=\"token string\">&#034;1.0.0.127.in-addr.arpa&#034;<\/span> IN <span class=\"token punctuation\">{<\/span>  <span class=\"token comment\"># \u8868\u793a127.0.0.1\u7684\u53cd\u5411\u89e3\u6790\u914d\u7f6e&#xff0c;IP\u5730\u5740\u9700\u8981\u5012\u7f6e\u4e66\u5199&#xff0c;\u53ea\u9700\u4e66\u5199\u7f51\u6bb5\u5373\u53ef<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;named.loopback&#034;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\"># \u53cd\u5411\u89e3\u6790\u7684\u89c4\u5219\u6587\u4ef6\u4fdd\u5b58\u4f4d\u7f6e<\/span><br \/>\n        allow-update <span class=\"token punctuation\">{<\/span> none<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h3>\u6b63\u5411\u89e3\u6790\u8d44\u6e90\u6587\u4ef6<\/h3>\n<ul>\n<li>\u67e5\u770b<\/li>\n<\/ul>\n<p><span class=\"token variable\">$TTL<\/span> 1D  <span class=\"token comment\"># \u8bbe\u7f6e\u751f\u5b58\u5468\u671f\u65f6\u95f4\u4e3a1\u5929&#xff0c;$\u8868\u793a\u5b8f\u5b9a\u4e49<\/span><br \/>\n&#064;       IN SOA  &#064; rname.invalid. <span class=\"token punctuation\">(<\/span><br \/>\n<span class=\"token comment\"># &#064;&#xff1a;\u8868\u793azone\u57df&#xff0c;\u73b0\u5728\u8868\u793a\u57df\u540d&#xff0c;\u5982baidu.com<\/span><br \/>\n<span class=\"token comment\"># IN SOA&#xff1a;\u6388\u6743\u4fe1\u606f\u5f00\u59cb<\/span><br \/>\n<span class=\"token comment\"># rname.invalid. :\u57df\u540d\u7ba1\u7406\u5458\u7684\u90ae\u7bb1&#xff08;\u4e0d\u80fd\u4f7f\u7528&#064;&#xff0c;\u4f7f\u7528\u70b9\u4ee3\u66ff\u90ae\u7bb1\u5206\u9694\u7b26&#064;&#xff09;<\/span><br \/>\n                                        <span class=\"token number\">0<\/span>       <span class=\"token punctuation\">;<\/span> serial  <span class=\"token comment\"># \u5e8f\u5217\u53f7&#xff0c;10\u4f4d\u4ee5\u5185\u7684\u6574\u6570<\/span><br \/>\n                                        1D      <span class=\"token punctuation\">;<\/span> refresh  <span class=\"token comment\"># \u66f4\u65b0\u9891\u7387\u4e3a1\u5929<\/span><br \/>\n                                        1H      <span class=\"token punctuation\">;<\/span> retry  <span class=\"token comment\"># \u5931\u8d25\u91cd\u8bd5\u5b9e\u8df5\u4e3a1\u5c0f\u65f6<\/span><br \/>\n                                        1W      <span class=\"token punctuation\">;<\/span> expire  <span class=\"token comment\"># \u5931\u6548\u5b9e\u8df51\u5468<\/span><br \/>\n                                        3H <span class=\"token punctuation\">)<\/span>    <span class=\"token punctuation\">;<\/span> minimum  <span class=\"token comment\"># \u7f13\u5b58\u5b9e\u8df5\u4e3a3\u5c0f\u65f6<\/span><br \/>\n        NS      &#064;<br \/>\n        A       <span class=\"token number\">127.0<\/span>.0.1<br \/>\n        AAAA    ::1<br \/>\n<span class=\"token comment\"># A&#xff1a;\u8868\u793aipv4\u5730\u5740&#xff0c;AAAA\u8868\u793aipv6\u5730\u5740<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423040608-68086730f0746.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\n<p>\u57df\u540d\u89e3\u6790\u8bb0\u5f55\u5206\u6790<\/p>\n<ul>\n<li>A\u8bb0\u5f55&#xff1a;A \u4ee3\u8868 Address&#xff0c;\u7528\u6765\u6307\u5b9a\u57df\u540d\u5bf9\u5e94\u7684 IP \u5730\u5740&#xff0c;\u5982\u5c06 item.taobao.com \u6307\u5b9a\u5230 115.238.23.xxx&#xff0c;\u5c06 switch.taobao.com \u6307\u5b9a\u5230 121.14.24.xxx<\/li>\n<li>MX\u8bb0\u5f55&#xff1a;Mail Exchange&#xff0c;\u5c31\u662f\u53ef\u4ee5\u5c06\u67d0\u4e2a\u57df\u540d\u4e0b\u7684\u90ae\u4ef6\u670d\u52a1\u5668\u6307\u5411\u81ea\u5df1\u7684 Mail Server&#xff0c;\u5982 taobao.com \u57df\u540d\u7684 A \u8bb0\u5f55 IP \u5730\u5740\u662f 115.238.25.xxx&#xff0c;\u5982\u679c\u5c06 MX \u8bb0\u5f55\u8bbe\u7f6e\u4e3a 115.238.25.xxx&#xff0c;\u5373 xxx&#064;taobao.com \u7684\u90ae\u4ef6\u8def\u7531&#xff0c;DNS \u4f1a\u5c06\u90ae\u4ef6\u53d1\u9001\u5230 115.238.25.xxx \u6240\u5728\u7684\u670d\u52a1\u5668&#xff0c;\u800c\u6b63\u5e38\u901a\u8fc7 Web \u8bf7\u6c42\u7684\u8bdd\u4ecd\u7136\u89e3\u6790\u5230 A \u8bb0\u5f55\u7684 IP \u5730\u5740<\/li>\n<li>NS\u8bb0\u5f55&#xff1a;\u4e3a\u67d0\u4e2a\u57df\u540d\u6307\u5b9a DNS \u89e3\u6790\u670d\u52a1\u5668&#xff0c;\u4e5f\u5c31\u662f\u8fd9\u4e2a\u57df\u540d\u7531\u6307\u5b9a\u7684 IP \u5730\u5740\u7684 DNS \u670d\u52a1\u5668\u53d6\u89e3\u6790<\/li>\n<li>CNAME \u8bb0\u5f55&#xff1a;Canonical Name&#xff0c;\u5373\u522b\u540d\u89e3\u6790\u3002\u6240\u8c13\u522b\u540d\u89e3\u6790\u5c31\u662f\u53ef\u4ee5\u4e3a\u4e00\u4e2a\u57df\u540d\u8bbe\u7f6e\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u522b\u540d&#xff0c;\u5982\u5c06 aaa.com \u89e3\u6790\u5230 bbb.net\u3001\u5c06 ccc.com \u4e5f\u89e3\u6790\u5230 bbb.net&#xff0c;\u5176\u4e2d bbb.net \u5206\u522b\u662f aaa.com \u548c ccc.com \u7684\u522b\u540d<\/li>\n<li>TXT \u8bb0\u5f55&#xff1a;\u4e3a\u67d0\u4e2a\u4e3b\u673a\u540d\u6216\u57df\u540d\u8bbe\u7f6e\u8bf4\u660e&#xff0c;\u5982\u53ef\u4ee5\u4e3a ddd.net \u8bbe\u7f6e TXT \u8bb0\u5f55\u4e3a \u201c\u8fd9\u662f XXX \u7684\u535a\u5ba2\u201d \u8fd9\u6837\u7684\u8bf4\u660e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u53cd\u5411\u89e3\u6790\u8d44\u6e90\u6587\u4ef6<\/h3>\n<p><span class=\"token variable\">$TTL<\/span> 1D<br \/>\n&#064;       IN SOA  &#064; rname.invalid. <span class=\"token punctuation\">(<\/span><br \/>\n                                        <span class=\"token number\">0<\/span>       <span class=\"token punctuation\">;<\/span> serial<br \/>\n                                        1D      <span class=\"token punctuation\">;<\/span> refresh<br \/>\n                                        1H      <span class=\"token punctuation\">;<\/span> retry<br \/>\n                                        1W      <span class=\"token punctuation\">;<\/span> expire<br \/>\n                                        3H <span class=\"token punctuation\">)<\/span>    <span class=\"token punctuation\">;<\/span> minimum<br \/>\nIN NS       ns.\u57df\u540d.   <span class=\"token comment\"># \u57df\u540d\u670d\u52a1\u5668\u8bb0\u5f55&#xff0c;\u6ce8\u610f\u7ed3\u5c3e\u7684\u70b9<\/span><br \/>\nns IN  A   \u57df\u540d\u89e3\u6790\u670d\u52a1\u5668\u7684IP\u5730\u5740<br \/>\nIP\u5730\u5740PTR      \u57df\u540d.   <span class=\"token comment\"># PTR \u6307\u9488\u8bb0\u5f55&#xff0c;\u7528\u4e8e\u53cd\u5411\u89e3\u6790<\/span><\/p>\n<h2>\u5b9e\u9a8c1&#xff08;\u6b63\u5411\u89e3\u6790&#xff09;<\/h2>\n<table>\n<tr>\u670d\u52a1\u7aefIP\u5ba2\u6237\u7aefIP\u7f51\u5740<\/tr>\n<tbody>\n<tr>\n<td>192.168.160.137<\/td>\n<td>192.168.160.138<\/td>\n<td>www.openlab.com<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u51c6\u5907\u5de5\u4f5c<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># setenforce 0<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl stop firewalld<\/span><br \/>\n<span class=\"token comment\"># \u670d\u52a1\u7aef\u53ca\u5ba2\u6237\u7aef\u90fd\u8bbe\u7f6e\u9759\u6001IP\u5730\u5740<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum  install bind -y<\/span><\/p>\n<ul>\n<li>DNS\u89e3\u6790\u8bbe\u7f6e<\/li>\n<li>\u7b2c\u4e00\u6b65&#xff1a;\u670d\u52a1\u7aef\u64cd\u4f5c&#xff0c;\u914d\u7f6eDNS\u4e3b\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim  \/etc\/named.conf <\/span><\/p>\n<p>options <span class=\"token punctuation\">{<\/span><br \/>\n        listen-on port <span class=\"token number\">53<\/span> <span class=\"token punctuation\">{<\/span> any <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n\u2026\u2026<br \/>\n        allow-query     <span class=\"token punctuation\">{<\/span> any <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e8c\u6b65&#xff1a;\u670d\u52a1\u7aef\u64cd\u4f5c&#xff0c;\u7f16\u8f91\u533a\u57df\u914d\u7f6e\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u6e05\u7a7a\u540e\u6dfb\u52a0&#xff0c;\u4e5f\u63a8\u8350\u9009\u62e9\u4e00\u4e2a\u89e3\u6790\u6a21\u7248\u8fdb\u884c\u4fee\u6539<\/li>\n<\/ul>\n<p> <span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim  \/etc\/named.rfc1912.zones <\/span><br \/>\n <span class=\"token comment\"># \u9009\u62e9\u4e00\u4e2a\u6b63\u5411\u89e3\u6790\u6a21\u7248&#xff0c;\u8fdb\u884c\u4fee\u6539&#xff0c;\u8bbe\u7f6e\u89e3\u6790\u533a\u57df\u540d\u53ca\u5b58\u50a8\u89e3\u6790\u8bb0\u5f55\u7684\u6570\u636e\u6587\u4ef6\u540d<\/span><br \/>\nzone <span class=\"token string\">&#034;openlab.com&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;openlab.com.zone&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        allow-update <span class=\"token punctuation\">{<\/span> none<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e09\u6b65&#xff1a;\u670d\u52a1\u7aef\u64cd\u4f5c&#xff0c;\u7f16\u8f91\u6570\u636e\u914d\u7f6e\u6587\u4ef6&#xff0c;\u63a8\u8350\u4f7f\u7528cp -a\u547d\u4ee4\u5b8c\u5168\u62f7\u8d1d\u4e00\u4efd\u6b63\u5411\u89e3\u6790\u6a21\u677f&#xff0c;\u5728\u4fee\u6539\u5c40\u90e8<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cd \/var\/named<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ls<\/span><br \/>\ndata  dynamic  named.ca  named.empty  named.localhost  named.loopback  slaves<br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cp -a named.localhost  openlab.com.zone<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim openlab.com.zone<\/span><br \/>\n<span class=\"token variable\">$TTL<\/span> 1D<br \/>\nopenlab.com.    IN SOA  ns.openlab.com. andy.qq.com. <span class=\"token punctuation\">(<\/span><br \/>\n                                        <span class=\"token number\">0<\/span>       <span class=\"token punctuation\">;<\/span> serial<br \/>\n                                        1D      <span class=\"token punctuation\">;<\/span> refresh<br \/>\n                                        1H      <span class=\"token punctuation\">;<\/span> retry<br \/>\n                                        1W      <span class=\"token punctuation\">;<\/span> expire<br \/>\n                                        3H <span class=\"token punctuation\">)<\/span>    <span class=\"token punctuation\">;<\/span> minimum<br \/>\nopenlab.com.    IN      NS      ns.opnelab.com.<br \/>\nns.openlab.com. IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nwww.openlab.com.        IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nbbs.openlab.com.        IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nftp.openlab.com.        IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nwww1.openlab.com.       IN      CNAME   www.openlab.com.<\/p>\n<ul>\n<li>\u7b2c\u56db\u6b65&#xff1a;\u670d\u52a1\u7aef\u64cd\u4f5c&#xff0c;\u91cd\u542f\u670d\u52a1<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl start named<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e94\u6b65&#xff1a;\u5ba2\u6237\u7aef\u64cd\u4f5c&#xff0c;\u5c06\u5ba2\u6237\u7aef\u7684\u7f51\u5361\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684DNS\u89e3\u6790\u5730\u5740\u4fee\u6539\u4e3a\u670d\u52a1\u7aef\u7684IP\u5730\u5740<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/etc\/sysconfig\/network-scripts\/ifcfg-ens32<\/span><br \/>\n<span class=\"token assign-left variable\">DNS1<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">192.168<\/span>.160.137<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection reload # \u91cd\u8f7d\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up ens32 # \u6fc0\u6d3b<\/span><\/p>\n<ul>\n<li>\u7b2c\u516d\u6b65&#xff1a;\u5ba2\u6237\u7aef\u6d4b\u8bd5<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nslookup<\/span><br \/>\n<span class=\"token operator\">&gt;<\/span> www.openlab.com<br \/>\nServer:         <span class=\"token number\">192.168<\/span>.160.137<br \/>\nAddress:        <span class=\"token number\">192.168<\/span>.160.137<span class=\"token comment\">#53<\/span><\/p>\n<p>Name:   www.openlab.com<br \/>\nAddress: <span class=\"token number\">192.168<\/span>.160.137<br \/>\n<span class=\"token operator\">&gt;<\/span> www1.openalb.com<br \/>\nServer:         <span class=\"token number\">192.168<\/span>.160.137<br \/>\nAddress:        <span class=\"token number\">192.168<\/span>.160.137<span class=\"token comment\">#53<\/span><\/p>\n<p>** server can&#039;t <span class=\"token function\">find<\/span> www1.openalb.com: SERVFAIL<br \/>\n<span class=\"token operator\">&gt;<\/span> <span class=\"token comment\"># ctrl&#043;d\u9000\u51fa<\/span><\/p>\n<p><span class=\"token comment\"># \u6216\u8005\u4f7f\u7528\u4e0b\u5217\u65b9\u6cd5\u6d4b\u8bd5<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node1 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># host  www.openlab.com<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node1 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># dig  &#064;192.168.13.134  www.openlab.com<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u7b2c\u4e09\u6b65\u6570\u636e\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u8fdb\u884c\u7cbe\u7b80<\/p>\n<ul>\n<li>SOA\u8d77\u59cb\u6388\u6743\u8bb0\u5f55&#xff1a;openlab.com. IN SOA ns.openlab.com. admin.openlab.com. (&#xff09;&#xff0c;\u8868\u793aopenlab.com.\u8fd9\u4e2a\u57df\u540d\u6307\u5b9adns\u670d\u52a1\u5668\u4e3ans.openlab.com.\u8fd9\u53f0\u4e3b\u673a&#xff0c;\u4ee5\u53ca\u5176\u5b83\u9644\u52a0\u4fe1\u606f<\/li>\n<li>ns\u8bb0\u5f55&#xff1a;openlab.com. IN NS ns.openlab.com. &#xff0c;\u58f0\u660eopenlab.com.\u8fd9\u4e2a\u57df\u540d\u7684dns\u670d\u52a1\u5668\u4e3ans.openlab.com.\u4e3b\u673a<\/li>\n<li>\u4ee5\u4e0a\u533a\u522b&#xff1a;NS\u8bb0\u5f55\u4ec5\u4ec5\u53ea\u662f\u58f0\u660e\u8be5\u57df\u5185\u54ea\u53f0\u4e3b\u673a\u662fdns\u670d\u52a1\u5668&#xff0c;\u7528\u6765\u63d0\u4f9b\u540d\u79f0\u89e3\u6790\u670d\u52a1&#xff0c;NS\u8bb0\u5f55\u4e0d\u4f1a\u533a\u5206\u54ea\u53f0dns\u670d\u52a1\u5668\u662fmaster\u54ea\u53f0dns\u670d\u52a1\u5668\u662fslave\u3002\u800cSOA\u8bb0\u5f55\u5219\u7528\u4e8e\u6307\u5b9a\u54ea\u4e2aNS\u8bb0\u5f55\u5bf9\u5e94\u7684\u4e3b\u673a\u662fmaster dns\u670d\u52a1\u5668&#xff0c;\u4e5f\u5c31\u662f\u4ece\u591a\u4e2adns\u670d\u52a1\u5668\u4e2d\u6311\u9009\u4e00\u53f0\u4efb\u547d\u5176\u4e3a\u8be5\u57df\u5185\u7684master dns\u670d\u52a1\u5668&#xff0c;\u5176\u4ed6\u7684\u90fd\u662fslave&#xff0c;\u90fd\u9700\u8981\u4ecemaster\u4e0a\u83b7\u53d6\u57df\u76f8\u5173\u6570\u636e<\/li>\n<li>A\u8bb0\u5f55&#xff1a;\u8868\u793a\u90a3\u53f0\u4e3b\u673a\u89e3\u6790\u4e3a\u4ec0\u4e48IP\u5730\u5740<\/li>\n<li>CNAME\u8bb0\u5f55&#xff1a;\u522b\u540d&#xff0c;www1.openlab.com.\u4e3b\u673a\u89e3\u6790\u4e3awww.openlab.com.\u4e3b\u673a\u5728\u67e5\u627e\u5bf9\u5e94IP<\/li>\n<li>\u7cbe\u7b80\u539f\u5219&#xff1a;\n<ul>\n<li>\u53ef\u4ee5\u4f7f\u7528&#064;\u66ff\u4ee3\u57df\u540d&#xff0c;\u5982&#064;\u66ff\u4ee3openlab.com.<\/li>\n<li>\u53ef\u4ee5\u4f7f\u7528\u7a7a\u683c\u6216tab\u91cd\u590d\u7ee7\u627f\u4e0a\u4e00\u884c\u7b2c\u4e00\u5217\u7684\u503c<\/li>\n<li>\u53ef\u4ee5\u7701\u7565\u57df\u540d&#xff0c;\u4f1a\u81ea\u52a8\u8865\u5168&#xff0c;\u5982&#xff1a;www\u4e3awww.openlab.com.<\/li>\n<li>\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u7701\u7565\u5982\u4e0b&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p> <span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim  openlab.com.zone<\/span><\/p>\n<p><span class=\"token variable\">$TTL<\/span> 1D<br \/>\n&#064;    IN SOA  ns.openlab.com. admin.openlab.com. <span class=\"token punctuation\">(<\/span><br \/>\n                                        <span class=\"token number\">0<\/span>       <span class=\"token punctuation\">;<\/span> serial<br \/>\n                                        1D      <span class=\"token punctuation\">;<\/span> refresh<br \/>\n                                        1H      <span class=\"token punctuation\">;<\/span> retry<br \/>\n                                        1W      <span class=\"token punctuation\">;<\/span> expire<br \/>\n                                        3H <span class=\"token punctuation\">)<\/span>    <span class=\"token punctuation\">;<\/span> minimum<br \/>\n   NS      ns.openlab.com.<br \/>\nns         IN      A       <span class=\"token number\">192.168<\/span>.48.130<br \/>\nwww        IN      A       <span class=\"token number\">192.168<\/span>.48.130<br \/>\n<span class=\"token function\">ftp<\/span>        IN      A       <span class=\"token number\">192.168<\/span>.48.130<br \/>\nbbs        IN      A       <span class=\"token number\">192.168<\/span>.48.130<br \/>\nwww1       IN      CNAME   www<\/p>\n<h2>\u5b9e\u9a8c\u4e8c&#xff08;\u53cd\u5411\u89e3\u6790&#xff09;<\/h2>\n<table>\n<tr>\u670d\u52a1\u7aefIP\u5ba2\u6237\u7aefIP\u7f51\u5740<\/tr>\n<tbody>\n<tr>\n<td>192.168.160.137<\/td>\n<td>192.168.160.138<\/td>\n<td>www.openlab.com<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u7b2c\u4e00\u6b65&#xff1a;\u670d\u52a1\u7aef\u64cd\u4f5c&#xff0c;\u4fee\u6539\u4e3b\u914d\u7f6e\u6587\u4ef6(\u57fa\u4e8e\u5b9e\u9a8c1\u53ef\u4ee5\u4e0d\u505a\u4fee\u6539)<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim  \/etc\/named.conf <\/span><\/p>\n<p>options <span class=\"token punctuation\">{<\/span><br \/>\n        listen-on port <span class=\"token number\">53<\/span> <span class=\"token punctuation\">{<\/span> any <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n\u2026\u2026<br \/>\n        allow-query     <span class=\"token punctuation\">{<\/span> any <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e8c\u6b65&#xff1a;\u4fee\u6539\u533a\u57df\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim  \/etc\/named.rfc1912.zones   <\/span><br \/>\nzone <span class=\"token string\">&#034;160.168.192.in-addr.arpa&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;192.168.160.arpa&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        allow-update <span class=\"token punctuation\">{<\/span> none<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e09\u6b65&#xff1a;\u670d\u52a1\u7aef\u64cd\u4f5c&#xff0c;\u7f16\u8f91\u6570\u636e\u914d\u7f6e\u6587\u4ef6&#xff0c;\u590d\u5236\u4e00\u4efd\u53cd\u5411\u89e3\u6790\u6a21\u7248&#xff08;named.loopback&#xff09;&#xff0c;\u5728\u4fee\u6539\u5c40\u90e8\u5373\u53ef<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cd  \/var\/named\/<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cp  -a  named.loopback  192.168.13.arpa<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim 192.168.160.arpa<\/span><br \/>\n<span class=\"token variable\">$TTL<\/span> 1D<br \/>\n&#064;       IN SOA  ns.openlab.com. zz.qq.com. <span class=\"token punctuation\">(<\/span><br \/>\n                                        <span class=\"token number\">0<\/span>       <span class=\"token punctuation\">;<\/span> serial<br \/>\n                                        1D      <span class=\"token punctuation\">;<\/span> refresh<br \/>\n                                        1H      <span class=\"token punctuation\">;<\/span> retry<br \/>\n                                        1W      <span class=\"token punctuation\">;<\/span> expire<br \/>\n                                        3H <span class=\"token punctuation\">)<\/span>    <span class=\"token punctuation\">;<\/span> minimum<br \/>\n        NS      ns.openlab.com.<br \/>\n<span class=\"token number\">137<\/span>     IN      PTR     ns.openlab.com.<br \/>\n<span class=\"token number\">137<\/span>     IN      PTR     www.openlab.com.<br \/>\n<span class=\"token number\">137<\/span>     IN      PTR     bbs.openlab.com.<br \/>\n<span class=\"token number\">137<\/span>     IN      PTR     ftp.openlab.com.<\/p>\n<ul>\n<li>\u7b2c\u56db\u6b65 &#xff1a;\u91cd\u542f\u670d\u52a1<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl start named<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e94\u6b65&#xff1a;\u5ba2\u6237\u7aef\u6d4b\u8bd5<\/li>\n<\/ul>\n<p>&#096;<span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nslookup<\/span><br \/>\n<span class=\"token operator\">&gt;<\/span> www.openlab.com<br \/>\nServer:         <span class=\"token number\">192.168<\/span>.160.137<br \/>\nAddress:        <span class=\"token number\">192.168<\/span>.160.137<span class=\"token comment\">#53<\/span><\/p>\n<p>Name:   www.openlab.com<br \/>\nAddress: <span class=\"token number\">192.168<\/span>.160.137<br \/>\n<span class=\"token operator\">&gt;<\/span> <span class=\"token number\">192.168<\/span>.160.137<br \/>\n<span class=\"token number\">137.160<\/span>.168.192.in-addr.arpa    name <span class=\"token operator\">&#061;<\/span> ftp.openlab.com.<br \/>\n<span class=\"token number\">137.160<\/span>.168.192.in-addr.arpa    name <span class=\"token operator\">&#061;<\/span> www.openlab.com.<br \/>\n<span class=\"token number\">137.160<\/span>.168.192.in-addr.arpa    name <span class=\"token operator\">&#061;<\/span> ns.openlab.com.<br \/>\n<span class=\"token number\">137.160<\/span>.168.192.in-addr.arpa    name <span class=\"token operator\">&#061;<\/span> bbs.openlab.com.<br \/>\n<span class=\"token operator\">&gt;<\/span> <span class=\"token comment\"># Ctrl&#043;d\u9000\u51fa<\/span><\/p>\n<h2>\u5b9e\u9a8c3&#xff08;\u90e8\u7f72DNS\u4e3b\u4ece\u670d\u52a1\u5668&#xff09;<\/h2>\n<h3>\u4f5c\u7528<\/h3>\n<ul>\n<li>DNS\u4f5c\u4e3a\u91cd\u8981\u7684\u4e92\u8054\u7f51\u57fa\u7840\u8bbe\u65bd\u670d\u52a1&#xff0c;\u4fdd\u8bc1 DNS \u57df\u540d\u89e3\u6790\u670d\u52a1\u7684\u6b63\u5e38\u8fd0\u8f6c\u81f3\u5173\u91cd\u8981&#xff0c;\u53ea\u6709\u8fd9\u6837\u624d\u80fd\u63d0\u4f9b\u7a33\u5b9a\u3001\u5feb\u901f\u4e14\u4e0d\u95f4\u65ad\u7684\u57df\u540d\u67e5\u8be2\u670d\u52a1<\/li>\n<li>DNS \u57df\u540d\u89e3\u6790\u670d\u52a1\u4e2d&#xff0c;\u4ece\u670d\u52a1\u5668\u53ef\u4ee5\u4ece\u4e3b\u670d\u52a1\u5668\u4e0a\u83b7\u53d6\u6307\u5b9a\u7684\u533a\u57df\u6570\u636e\u6587\u4ef6&#xff0c;\u4ece\u800c\u8d77\u5230\u5907\u4efd\u89e3\u6790\u8bb0\u5f55\u4e0e\u8d1f\u8f7d\u5747\u8861\u7684\u4f5c\u7528&#xff0c;\u56e0\u6b64\u901a\u8fc7\u90e8\u7f72\u4ece\u670d\u52a1\u5668\u53ef\u4ee5\u51cf\u8f7b\u4e3b\u670d\u52a1\u5668\u7684\u8d1f\u8f7d\u538b\u529b&#xff0c;\u8fd8\u53ef\u4ee5\u63d0\u5347\u7528\u6237\u7684\u67e5\u8be2\u6548\u7387<\/li>\n<li>\u6ce8\u610f&#xff1a;\n<ul>\n<li>\u65f6\u95f4\u540c\u6b65\u5fc5\u987b\u4fdd\u6301\u4e00\u81f4\u6027<\/li>\n<li>bind\u6700\u597d\u4f7f\u7528\u540c\u4e00\u7248\u672c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u5b8c\u5168\u533a\u57df\u4f20\u9001<\/h3>\n<ul>\n<li>\u4e00\u4e2a\u533a\u57df\u6587\u4ef6\u590d\u5236\u5230\u591a\u4e2a\u4ece\u670d\u52a1\u5668\u4e0a\u7684\u8fc7\u7a0b\u79f0\u4e3a\u533a\u57df\u4f20\u9001<\/li>\n<li>\u5c06\u4e3b\u670d\u52a1\u5668\u7684\u6240\u6709\u4fe1\u606f\u5168\u90e8\u590d\u5236\u5230\u4ece\u670d\u52a1\u5668\u4e2d&#xff0c;\u79f0\u4e3a\u5b8c\u5168\u533a\u57df\u4f20\u9001&#xff0c;\u5373\u590d\u5236\u6574\u4e2a\u533a\u57df\u6587\u4ef6<\/li>\n<li>\u5b9e\u9a8c\u8bf4\u660e<\/li>\n<\/ul>\n<table>\n<tr>\u8bbe\u5907IP\u7cfb\u7edf<\/tr>\n<tbody>\n<tr>\n<td>\u4e3b\u670d\u52a1\u5668<\/td>\n<td>192.168.160.137<\/td>\n<td>openeuler22.03<\/td>\n<\/tr>\n<tr>\n<td>\u4ece\u670d\u52a1\u5668<\/td>\n<td>192.168.160.138<\/td>\n<td>openeuler22.03<\/td>\n<\/tr>\n<tr>\n<td>\u5ba2\u6237\u7aef<\/td>\n<td>192.168.160.139<\/td>\n<td>openeuler22.03<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u7b2c\u4e00\u6b65&#xff1a;\u4e24\u4e2a\u670d\u52a1\u5668server\u548cnode\u6062\u590d\u5feb\u7167&#xff0c;\u5b89\u88c5\u8f6f\u4ef6&#xff0c;\u8bbe\u7f6e\u9759\u6001ip<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># setenforce 0<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl stop firewalld<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># setenforce 0<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl stop firewalld<\/span><br \/>\n<span class=\"token comment\"># \u670d\u52a1\u7aef\u53ca\u5ba2\u6237\u7aef\u90fd\u8bbe\u7f6e\u9759\u6001IP\u5730\u5740<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum  install bind -y<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum  install bind -y<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e8c\u6b65&#xff1a;\u4e3b\u670d\u52a1\u5668server\u7aef\u64cd\u4f5c&#xff0c;\u8bbe\u7f6eDNS\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff0c;\u4fee\u6539\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/etc\/named.conf<\/span><br \/>\noptions <span class=\"token punctuation\">{<\/span><br \/>\n        listen-on port <span class=\"token number\">53<\/span> <span class=\"token punctuation\">{<\/span> any<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><br \/>\n        allow-query     <span class=\"token punctuation\">{<\/span> any<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e09\u6b65&#xff1a;\u4e3b\u670d\u52a1\u5668server\u2018\u64cd\u4f5c&#xff0c;\u8bbe\u7f6e\u533a\u57df\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/etc\/named.rfc1912.zones<\/span><br \/>\n<span class=\"token comment\"># \u91cd\u70b9&#xff1a;\u6539\u4e3a\u540c\u6b65\u6a21\u5f0f&#xff0c;\u683c\u5f0f\u4e3aallow-transfer { \u4ece\u670d\u52a1\u5668\u7684IP\u5730\u5740; };<\/span><br \/>\nzone <span class=\"token string\">&#034;openlab.com&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> master<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;openlab.com.zone&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        allow-tranfer <span class=\"token punctuation\">{<\/span> <span class=\"token number\">192.168<\/span>.160.138<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u7b2c\u56db\u6b65&#xff1a;\u4e3b\u670d\u52a1\u5668server\u7aef\u64cd\u4f5c&#xff0c;\u8bbe\u7f6e\u6b63\u5411\u89e3\u6790\u7684\u6570\u636e\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cd \/var\/named<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ls<\/span><br \/>\ndata  dynamic  named.ca  named.empty  named.localhost  named.loopback  slaves<br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cp -a named.localhost openlab.com.zone<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim openlab.com.zone<\/span><br \/>\n<span class=\"token variable\">$TTL<\/span> 1D<br \/>\nopenlab.com.    IN SOA  ns.opnelab.com. aa.qq.com <span class=\"token punctuation\">(<\/span><br \/>\n                                        <span class=\"token number\">0<\/span>       <span class=\"token punctuation\">;<\/span> serial<br \/>\n                                        1D      <span class=\"token punctuation\">;<\/span> refresh<br \/>\n                                        1H      <span class=\"token punctuation\">;<\/span> retry<br \/>\n                                        1W      <span class=\"token punctuation\">;<\/span> expire<br \/>\n                                        3H <span class=\"token punctuation\">)<\/span>    <span class=\"token punctuation\">;<\/span> minimum<br \/>\nopenlab.com.    IN      NS      ns.openlab.com.<br \/>\nopenlab.com.    IN      NS      slave.openlab.com.   <span class=\"token comment\"># \u589e\u51cf\u4ece<\/span><br \/>\nns.openlab.com. IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nslave.openlab.com.      IN      A       <span class=\"token number\">192.168<\/span>.160.138    <span class=\"token comment\"># \u589e\u52a0\u4ece<\/span><br \/>\nbbs.openlab.com.        IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nwww.openlab.com.        IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nftp.openlab.com.        IN      A       <span class=\"token number\">192.168<\/span>.160.137<\/p>\n<ul>\n<li>\u7b2c\u4e94\u6b65&#xff1a;\u4e3b\u670d\u52a1\u5668server\u7aef\u64cd\u4f5c&#xff0c;\u91cd\u542f\u670d\u52a1<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server named<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl restart named<\/span><\/p>\n<ul>\n<li>\u7b2c\u516d\u6b65&#xff1a;\u4ece\u670d\u52a1\u5668node\u7aef\u64cd\u4f5c&#xff0c;\u4fee\u6539\u4e3b\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/etc\/named.conf<\/span><br \/>\noptions <span class=\"token punctuation\">{<\/span><br \/>\n        listen-on port <span class=\"token number\">53<\/span> <span class=\"token punctuation\">{<\/span> any<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><br \/>\n        allow-query     <span class=\"token punctuation\">{<\/span> any<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e03\u6b65&#xff1a;\u4fee\u6539\u533a\u57df\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<p>zone <span class=\"token string\">&#034;openlab.com&#034;<\/span> IN <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token builtin class-name\">type<\/span> slave<span class=\"token punctuation\">;<\/span> <span class=\"token comment\"># \u670d\u52a1\u7c7b\u578b\u53d8\u66f4\u4e3a\u4ece<\/span><br \/>\n        masters <span class=\"token punctuation\">{<\/span> <span class=\"token number\">192.168<\/span>.160.137<span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\"># \u8bbe\u7f6e\u4e3b\u670d\u52a1\u5668\u7684IP\u5730\u5740<\/span><br \/>\n        <span class=\"token function\">file<\/span> <span class=\"token string\">&#034;slaves\/openlab.com.zone&#034;<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\"># \u4ece\u670d\u52a1\u5668\u7684\u6570\u636e\u914d\u7f6e\u6587\u4ef6\u5b58\u50a8\u4f4d\u7f6e\u5fc5\u987b\u4e3aslaves\u76ee\u5f55\u4e0b<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u7b2c\u516b\u6b65&#xff1a;\u4ece\u670d\u52a1\u5668node\u7aef\u91cd\u542f\u670d\u52a1&#xff0c;\u5f53\u4ece\u670d\u52a1\u5668\u670d\u52a1\u91cd\u542f&#xff0c;\u4f1a\u5411\u4e3b\u670d\u52a1\u5668\u540c\u6b65\u62c9\u53d6\u6570\u636e\u5230\/var\/named\/slaves<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mkdir -p \/var\/named\/slaves<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cd \/var\/named\/slaves<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node slaves<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ls   # \u91cd\u542f\u524d\u4e3a\u7a7a\u76ee\u5f55<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node slaves<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl restart named<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node slaves<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ls     # \u62c9\u53d6\u6570\u636e<\/span><br \/>\nopenlab.com.zone<\/p>\n<ul>\n<li>\u7b2c\u4e5d\u6b65&#xff1a;node1\u7aef\u6d4b\u8bd5<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/etc\/sysconfig\/network-scripts\/ifcfg-ens32    # dns\u6539\u6210137&#xff0c;138\u90fd\u884c&#xff0c;\u6539\u6210138\u662f\u4e3a\u4e86\u6d4b\u8bd5\u4ece\u670d\u52a1\u5668<\/span><br \/>\n<span class=\"token assign-left variable\">DNS1<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">192.168<\/span>.160.138   <\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection reload<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nmcli connection up ens32<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nslookup www.openlab.com<\/span><br \/>\nServer:         <span class=\"token number\">192.168<\/span>.160.138<br \/>\nAddress:        <span class=\"token number\">192.168<\/span>.160.138<span class=\"token comment\">#53<\/span><\/p>\n<p>Name:   www.openlab.com<br \/>\nAddress: <span class=\"token number\">192.168<\/span>.160.137<\/p>\n<h3>\u589e\u91cf\u533a\u57df\u4f20\u9001<\/h3>\n<ul>\n<li>\u529f\u80fd&#xff1a;\u4ec5\u590d\u5236\u533a\u57df\u4e2d\u53d8\u5316\u7684\u6570\u636e\u90e8\u5206<\/li>\n<li>\u7b2c\u4e00\u6b65&#xff1a;\u4e3b\u670d\u52a1\u5668server\u7aef\u64cd\u4f5c&#xff0c;\u4fee\u6539\u6570\u636e\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># vim \/var\/named\/openlab.com.zone<\/span><br \/>\n<span class=\"token variable\">$TTL<\/span> 1D<br \/>\nopenlab.com.    IN SOA  ns.openlab.com. aa.qq.com <span class=\"token punctuation\">(<\/span><br \/>\n                                        <span class=\"token number\">1<\/span>       <span class=\"token punctuation\">;<\/span> serial   <span class=\"token comment\"># \u4fee\u6539<\/span><br \/>\n                                        1D      <span class=\"token punctuation\">;<\/span> refresh<br \/>\n                                        1H      <span class=\"token punctuation\">;<\/span> retry<br \/>\n                                        1W      <span class=\"token punctuation\">;<\/span> expire<br \/>\n                                        3H <span class=\"token punctuation\">)<\/span>    <span class=\"token punctuation\">;<\/span> minimum<br \/>\nopenlab.com.    IN      NS      ns.openlab.com.<br \/>\nopenlab.com.    IN      NS      slave.openlab.com.<br \/>\nopenlab.com.    IN      MX      <span class=\"token number\">8<\/span>       mail.openlab.com.   <span class=\"token comment\"># \u589e\u52a0<\/span><\/p>\n<p>ns.openlab.com.         IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nslave.openlab.com.      IN      A       <span class=\"token number\">192.168<\/span>.160.138<\/p>\n<p>mail.openlab.com.       IN      A       <span class=\"token number\">192.168<\/span>.160.137   <span class=\"token comment\"># \u589e\u52a0<\/span><br \/>\nbbs.openlab.com.        IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nwww.openlab.com.        IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nftp.openlab.com.        IN      A       <span class=\"token number\">192.168<\/span>.160.137<br \/>\nwww1.openlab.com.       IN      CNAME   www.openlab.com.   <span class=\"token comment\">#\u589e\u52a0<\/span><\/p>\n<p><span class=\"token comment\"># \u6ce8\u610f&#xff1a;1       ; serial\u4e2d\u5e8f\u53f7\u4fee\u6539\u4e3a1&#xff0c;\u5426\u5219\u4ece\u670d\u52a1\u5668\u4e0d\u4f1a\u66f4\u65b0\u6570\u636e<\/span><\/p>\n<ul>\n<li>\u4e3b\u670d\u52a1\u5668server\u7aef\u64cd\u4f5c&#xff0c;\u91cd\u542f\u670d\u52a1<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl restart named<\/span><\/p>\n<ul>\n<li>\u7b2c\u4e09\u6b65&#xff1a;\u4ece\u670d\u52a1\u5668node\u7aef&#xff0c;\u91cd\u542f\u670d\u52a1<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node slaves<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl restart named<\/span><\/p>\n<ul>\n<li>\u7b2c\u56db\u6b65&#xff1a;\u5ba2\u6237\u7aefnode1\u6d4b\u8bd5<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;node ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nslookup<\/span><br \/>\n<span class=\"token operator\">&gt;<\/span> www1.openlab.com<br \/>\nServer:         <span class=\"token number\">192.168<\/span>.160.138<br \/>\nAddress:        <span class=\"token number\">192.168<\/span>.160.138<span class=\"token comment\">#53<\/span><\/p>\n<p>** server can&#039;t <span class=\"token function\">find<\/span> www1.openlab.com: NXDOMAIN<br \/>\n<span class=\"token operator\">&gt;<\/span> www1.openlab.com<br \/>\nServer:         <span class=\"token number\">192.168<\/span>.160.138<br \/>\nAddress:        <span class=\"token number\">192.168<\/span>.160.138<span class=\"token comment\">#53<\/span><\/p>\n<p>www1.openlab.com        canonical name <span class=\"token operator\">&#061;<\/span> www.openlab.com.<br \/>\nName:   www.openlab.com<br \/>\nAddress: <span class=\"token number\">192.168<\/span>.160.137<\/p>\n<h3>\u6ce8\u610f<\/h3>\n<ul>\n<li>\u5e8f\u53f7\u5fc5\u987b\u6bd4\u539f\u5e8f\u53f7\u8981\u5927<\/li>\n<li>\u66f4\u65b0\u9891\u7387\u9700\u8981\u6539\u5c0f\u4e00\u4e9b&#xff0c;\u8fd9\u6837\u53ef\u4ee5\u66f4\u5feb\u770b\u5230\u5b9e\u9a8c\u7ed3\u679c<\/li>\n<li>\u589e\u91cf\u4f20\u9001\u4e2d\u4e3b\u670d\u52a1\u7aef\u9700\u8981\u5199\u5173\u4e8e\u4ece\u670d\u52a1\u5668\u7684NS\u8bb0\u5f55\u548cA\u8bb0\u5f55&#xff0c;\u5426\u5219\u4ece\u670d\u52a1\u5668\u7aef\u4e0d\u66f4\u65b0\u6570\u636e<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb999\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf29\u6b21\u3002IP \u5730\u5740:\u662f\u4e92\u8054\u7f51\u4e0a\u8ba1\u7b97\u673a\u552f\u4e00\u7684\u903b\u8f91\u5730\u5740\uff0c\u901a\u8fc7 IP \u5730\u5740\u5b9e\u73b0\u4e0d\u540c\u8ba1\u7b97\u673a\u4e4b\u95f4\u7684\u76f8\u4e92\u901a\u4fe1\uff0c\u6bcf\u53f0\u8054\u7f51\u8ba1\u7b97\u673a\u90fd\u9700\u8981\u901a\u8fc7 IP \u5730\u5740\u6765\u4e92\u76f8\u8054\u7cfb\u548c\u5206\u522b\uff0c\u4f46\u7531\u4e8e IP \u5730\u5740\u662f\u7531\u4e00\u4e32\u5bb9\u6613\u6df7\u6dc6\u7684\u6570\u5b57\u4e32\u6784\u6210\uff0c\u4eba\u4eec\u5f88\u96be\u8bb0\u5fc6\u6240\u6709\u8ba1\u7b97\u673a\u7684 IP  \u5730\u5740\uff0c\u8fd9\u6837\u5bf9\u4e8e\u6211\u4eec\u65e5\u5e38\u5de5\u4f5c\u751f\u6d3b\u8bbf\u95ee\u4e0d\u540c\u7f51\u7ad9\u662f\u5f88\u56f0\u96be\u7684\u3002\u57fa\u4e8e\u8fd9\u79cd\u80cc\u666f\uff0c\u4eba\u4eec\u5728 IP  \u5730\u5740\u7684\u57fa\u7840\u4e0a\u53c8\u53d1\u5c55\u51fa\u4e86\u4e00\u79cd\u66f4\u6613\u8bc6\u522b\u7684\u7b26\u53f7\u5316\u6807\u8bc6\uff0c\u8fd9\u79cd\u6807\u8bc6\u7531\u4eba\u4eec\u81ea\u884c\u9009\u62e9\u7684\u5b57\u6bcd\u548c\u6570\u5b57\u6784\u6210\uff0c\u76f8\u6bd4 IP \u5730\u5740\u66f4\u6613\u88ab\u8bc6\u522b\u548c\u8bb0\u5fc6\uff0c\u9010\u6e10\u4ee3\u66ff IP  \u5730\u5740\u6210\u4e3a\u4e92\u8054\u7f51\u7528\u6237\u8fdb\u884c\u8bbf\u95ee\u4e92\u8054\u7684\u4e3b\u8981\u5165\u53e3\u3002_\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668<\/p>\n","protected":false},"author":2,"featured_media":32249,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[705,167,43,78],"topic":[],"class_list":["post-32253","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-rhce","tag-167","tag-43","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668 - \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\/32253.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb999\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf29\u6b21\u3002IP \u5730\u5740:\u662f\u4e92\u8054\u7f51\u4e0a\u8ba1\u7b97\u673a\u552f\u4e00\u7684\u903b\u8f91\u5730\u5740\uff0c\u901a\u8fc7 IP \u5730\u5740\u5b9e\u73b0\u4e0d\u540c\u8ba1\u7b97\u673a\u4e4b\u95f4\u7684\u76f8\u4e92\u901a\u4fe1\uff0c\u6bcf\u53f0\u8054\u7f51\u8ba1\u7b97\u673a\u90fd\u9700\u8981\u901a\u8fc7 IP \u5730\u5740\u6765\u4e92\u76f8\u8054\u7cfb\u548c\u5206\u522b\uff0c\u4f46\u7531\u4e8e IP \u5730\u5740\u662f\u7531\u4e00\u4e32\u5bb9\u6613\u6df7\u6dc6\u7684\u6570\u5b57\u4e32\u6784\u6210\uff0c\u4eba\u4eec\u5f88\u96be\u8bb0\u5fc6\u6240\u6709\u8ba1\u7b97\u673a\u7684 IP \u5730\u5740\uff0c\u8fd9\u6837\u5bf9\u4e8e\u6211\u4eec\u65e5\u5e38\u5de5\u4f5c\u751f\u6d3b\u8bbf\u95ee\u4e0d\u540c\u7f51\u7ad9\u662f\u5f88\u56f0\u96be\u7684\u3002\u57fa\u4e8e\u8fd9\u79cd\u80cc\u666f\uff0c\u4eba\u4eec\u5728 IP \u5730\u5740\u7684\u57fa\u7840\u4e0a\u53c8\u53d1\u5c55\u51fa\u4e86\u4e00\u79cd\u66f4\u6613\u8bc6\u522b\u7684\u7b26\u53f7\u5316\u6807\u8bc6\uff0c\u8fd9\u79cd\u6807\u8bc6\u7531\u4eba\u4eec\u81ea\u884c\u9009\u62e9\u7684\u5b57\u6bcd\u548c\u6570\u5b57\u6784\u6210\uff0c\u76f8\u6bd4 IP \u5730\u5740\u66f4\u6613\u88ab\u8bc6\u522b\u548c\u8bb0\u5fc6\uff0c\u9010\u6e10\u4ee3\u66ff IP \u5730\u5740\u6210\u4e3a\u4e92\u8054\u7f51\u7528\u6237\u8fdb\u884c\u8bbf\u95ee\u4e92\u8054\u7684\u4e3b\u8981\u5165\u53e3\u3002_\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/32253.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-23T04:06:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423040606-6808672e2f6eb.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=\"12 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32253.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/32253.html\",\"name\":\"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-23T04:06:10+00:00\",\"dateModified\":\"2025-04-23T04:06:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/32253.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/32253.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32253.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668\"}]},{\"@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":"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668 - \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\/32253.html","og_locale":"zh_CN","og_type":"article","og_title":"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb999\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf29\u6b21\u3002IP \u5730\u5740:\u662f\u4e92\u8054\u7f51\u4e0a\u8ba1\u7b97\u673a\u552f\u4e00\u7684\u903b\u8f91\u5730\u5740\uff0c\u901a\u8fc7 IP \u5730\u5740\u5b9e\u73b0\u4e0d\u540c\u8ba1\u7b97\u673a\u4e4b\u95f4\u7684\u76f8\u4e92\u901a\u4fe1\uff0c\u6bcf\u53f0\u8054\u7f51\u8ba1\u7b97\u673a\u90fd\u9700\u8981\u901a\u8fc7 IP \u5730\u5740\u6765\u4e92\u76f8\u8054\u7cfb\u548c\u5206\u522b\uff0c\u4f46\u7531\u4e8e IP \u5730\u5740\u662f\u7531\u4e00\u4e32\u5bb9\u6613\u6df7\u6dc6\u7684\u6570\u5b57\u4e32\u6784\u6210\uff0c\u4eba\u4eec\u5f88\u96be\u8bb0\u5fc6\u6240\u6709\u8ba1\u7b97\u673a\u7684 IP \u5730\u5740\uff0c\u8fd9\u6837\u5bf9\u4e8e\u6211\u4eec\u65e5\u5e38\u5de5\u4f5c\u751f\u6d3b\u8bbf\u95ee\u4e0d\u540c\u7f51\u7ad9\u662f\u5f88\u56f0\u96be\u7684\u3002\u57fa\u4e8e\u8fd9\u79cd\u80cc\u666f\uff0c\u4eba\u4eec\u5728 IP \u5730\u5740\u7684\u57fa\u7840\u4e0a\u53c8\u53d1\u5c55\u51fa\u4e86\u4e00\u79cd\u66f4\u6613\u8bc6\u522b\u7684\u7b26\u53f7\u5316\u6807\u8bc6\uff0c\u8fd9\u79cd\u6807\u8bc6\u7531\u4eba\u4eec\u81ea\u884c\u9009\u62e9\u7684\u5b57\u6bcd\u548c\u6570\u5b57\u6784\u6210\uff0c\u76f8\u6bd4 IP \u5730\u5740\u66f4\u6613\u88ab\u8bc6\u522b\u548c\u8bb0\u5fc6\uff0c\u9010\u6e10\u4ee3\u66ff IP \u5730\u5740\u6210\u4e3a\u4e92\u8054\u7f51\u7528\u6237\u8fdb\u884c\u8bbf\u95ee\u4e92\u8054\u7684\u4e3b\u8981\u5165\u53e3\u3002_\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668","og_url":"https:\/\/www.wsisp.com\/helps\/32253.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-23T04:06:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423040606-6808672e2f6eb.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"12 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/32253.html","url":"https:\/\/www.wsisp.com\/helps\/32253.html","name":"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-23T04:06:10+00:00","dateModified":"2025-04-23T04:06:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/32253.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/32253.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/32253.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668"}]},{"@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\/32253","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=32253"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/32253\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/32249"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=32253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=32253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=32253"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=32253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}