{"id":28460,"date":"2025-04-20T00:31:11","date_gmt":"2025-04-19T16:31:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/28460.html"},"modified":"2025-04-20T00:31:11","modified_gmt":"2025-04-19T16:31:11","slug":"dns%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e6%9c%8d%e5%8a%a1%e5%99%a8-linux%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/28460.html","title":{"rendered":"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668-- Linux\u4e2d"},"content":{"rendered":"<h2>DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668<\/h2>\n<h3>1. DNS\u7b80\u4ecb<\/h3>\n<ul>\n<li>DNS&#xff08;Domain Name System&#xff09;\u662f\u4e92\u8054\u7f51\u4e0a\u7684\u4e00\u9879\u670d\u52a1&#xff0c;\u5b83\u4f5c\u4e3a\u5c06\u57df\u540d\u548cIP\u5730\u5740\u76f8\u4e92\u6620\u5c04\u7684\u4e00\u4e2a\u5206\u5e03\u5f0f\u6570\u636e\u5e93&#xff0c;\u80fd\u591f\u4f7f\u4eba\u66f4\u65b9\u4fbf\u7684\u8bbf\u95ee\u4e92\u8054\u7f51\u3002<\/li>\n<li>DNS\u4f7f\u7528\u7684\u662f53\u7aef\u53e3&#xff0c;<\/li>\n<li>\u901a\u5e38DNS\u662f\u4ee5UDP\u8fd9\u4e2a\u8f83\u5feb\u901f\u7684\u6570\u636e\u4f20\u8f93\u534f\u8bae\u6765\u67e5\u8be2\u7684&#xff0c;\u4f46\u662f\u6ca1\u6709\u67e5\u8be2\u5230\u5b8c\u6574\u7684\u4fe1\u606f\u65f6&#xff0c;\u5c31\u4f1a\u518d\u6b21\u4ee5TCP\u8fd9\u4e2a\u534f\u8bae\u6765\u91cd\u65b0\u67e5\u8be2\u6240\u4ee5\u542f\u52a8DNS\u65f6&#xff0c;\u4f1a\u540c\u65f6\u542f\u52a8TCP\u4ee5\u53caUDP\u7684port53\u3002<\/li>\n<\/ul>\n<h3>2. \u56e0\u7279\u7f51\u7684\u57df\u540d\u7ed3\u6784<\/h3>\n<ul>\n<li>\u7531\u4e8e\u56e0\u7279\u7f51\u7684\u7528\u6237\u6570\u91cf\u8f83\u591a&#xff0c;\u6240\u4ee5\u56e0\u7279\u7f51\u5728\u547d\u540d\u65f6\u91c7\u7528\u7684\u662f\u5c42\u6b21\u6811\u72b6\u7ed3\u6784\u7684\u547d\u540d\u65b9\u6cd5\u3002\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\u5b57&#xff0c;\u5373\u57df\u540d(domain name)\u3002\u201c\u57df\u201d(domain)\u662f\u540d\u5b57\u7a7a\u95f4\u4e2d\u4e00\u4e2a\u53ef\u88ab\u7ba1\u7406\u7684\u5212\u5206<\/li>\n<li>\u56fd\u5bb6\u9876\u7ea7\u57df\u540d&#xff1a;\u91c7\u7528ISO3166\u7684\u89c4\u5b9a\u3002\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)\u3002<\/li>\n<li>\u901a\u7528\u9876\u7ea7\u57df\u540d&#xff1a;\u6700\u5e38\u89c1\u7684\u901a\u7528\u9876\u7ea7\u57df\u540d\u67097\u4e2a&#xff0c;\u5373&#xff1a;com(\u516c\u53f8\u4f01\u4e1a)&#xff0c;net(\u7f51\u7edc\u670d\u52a1\u673a\u6784)&#xff0c;org(\u975e\u8425\u5229\u7ec4\u7ec7)&#xff0c;int(\u56fd\u9645\u7ec4\u7ec7)&#xff0c;gov(\u7f8e\u56fd\u7684\u653f\u5e9c\u90e8\u95e8)&#xff0c;mil(\u7f8e\u56fd\u7684\u519b\u4e8b\u90e8\u95e8)\u3002<\/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\u3002<\/li>\n<\/ul>\n<h3>3. \u57df\u540d\u670d\u52a1\u5668\u7684\u7c7b\u578b\u5212\u5206<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419163109-6803cfcdcf80b.png\" alt=\"\" \/><\/p>\n<p>\u200b \u6839\u57df\u540d\u670d\u52a1\u5668&#xff1a;\u6700\u9ad8\u5c42\u6b21\u7684\u57df\u540d\u670d\u52a1\u5668&#xff0c;\u4e5f\u662f\u6700\u91cd\u8981\u7684\u57df\u540d\u670d\u52a1\u5668\u3002\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\u4e0d\u7ba1\u662f\u54ea\u4e00\u4e2a\u672c\u5730\u57df\u540d\u670d\u52a1\u5668&#xff0c;\u82e5\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\u6240\u4ee5\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\u9700\u8981\u6ce8\u610f\u7684\u662f&#xff0c;\u5728\u5f88\u591a\u60c5\u51b5\u4e0b&#xff0c;\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<\/p>\n<p>\u200b \u73b0\u5982\u4eca\u5168\u7403\u4e00\u5171\u6295\u653e13\u4e2a\u6839\u670d\u52a1\u5668\u6839\u670d\u52a1\u5668\u4e3b\u8981\u7528\u6765\u7ba1\u7406\u4e92\u8054\u7f51\u7684\u4e3b\u76ee\u5f55&#xff0c;\u5168\u4e16\u754c\u53ea\u670913\u53f0\u30021\u4e2a\u4e3a\u4e3b\u6839\u670d\u52a1\u5668&#xff0c;\u653e\u7f6e\u5728\u7f8e\u56fd\u3002\u5176\u4f5912\u4e2a\u5747\u4e3a\u8f85\u6839\u670d\u52a1\u5668&#xff0c;\u5176\u4e2d9\u4e2a\u653e\u7f6e\u5728\u7f8e\u56fd&#xff0c;\u6b27\u6d322\u4e2a&#xff0c;\u4f4d\u4e8e\u82f1\u56fd\u548c\u745e\u5178&#xff0c;\u4e9a\u6d321\u4e2a&#xff0c;\u4f4d\u4e8e\u65e5\u672c\u3002\u6240\u6709\u6839\u670d\u52a1\u5668\u5747\u7531\u7f8e\u56fd\u653f\u5e9c\u6388\u6743\u7684\u4e92\u8054\u7f51\u57df\u540d\u4e0e\u53f7\u7801\u5206\u914d\u673a\u6784ICANN\u7edf\u4e00\u7ba1\u7406&#xff0c;\u8d1f\u8d23\u5168\u7403\u4e92\u8054\u7f51\u57df\u540d\u6839\u670d\u52a1\u5668\u3001\u57df\u540d\u4f53\u7cfb\u548cIP\u5730\u5740\u7b49\u7684\u7ba1\u7406\u3002 \u8fd913\u53f0\u6839\u670d\u52a1\u5668\u53ef\u4ee5\u6307\u6325Firefox\u6216\u4e92\u8054\u7f51 Explorer\u8fd9\u6837\u7684Web\u6d4f\u89c8\u5668\u548c\u7535\u5b50\u90ae\u4ef6\u7a0b\u5e8f\u63a7\u5236\u4e92\u8054\u7f51\u901a\u4fe1\u3002\u6362\u53e5\u8bdd\u8bf4\u2014\u2014\u653b\u51fb\u6574\u4e2a\u56e0\u7279\u7f51\u6700\u6709\u529b\u3001\u6700\u76f4\u63a5&#xff0c;\u4e5f\u662f\u6700\u81f4\u547d\u7684\u65b9\u6cd5\u6050\u6015\u5c31\u662f\u653b\u51fb\u6839\u57df\u540d\u670d\u52a1\u5668\u4e86\u3002<\/p>\n<p>\u200b \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<ul>\n<li>\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\u3002<\/li>\n<li>\u6743\u9650\u57df\u540d\u670d\u52a1\u5668&#xff1a;\u8d1f\u8d23\u4e00\u4e2a\u201c\u533a\u201d\u7684\u57df\u540d\u670d\u52a1\u5668\u3002<\/li>\n<li>\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;\u4f46\u662f\u5b83\u5bf9\u57df\u540d\u7cfb\u7edf\u975e\u5e38\u91cd\u8981\u3002\u5f53\u4e00\u4e2a\u4e3b\u673a\u53d1\u51faDNS\u67e5\u8be2\u8bf7\u6c42\u65f6&#xff0c;\u8fd9\u4e2a\u67e5\u8be2\u8bf7\u6c42\u62a5\u6587\u5c31\u53d1\u9001\u7ed9\u672c\u5730\u57df\u540d\u670d\u52a1\u5668\u3002<\/li>\n<li>\u4e3b\u4eceDNS\u670d\u52a1\u5668&#xff1a;\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;\u5176\u4e2d\u7684\u4e00\u4e2a\u5c31\u662f\u4e3bDNS\u670d\u52a1\u5668&#xff08;Master name server&#xff09;&#xff0c;\u8d1f\u8d23\u89e3\u6790\u81f3\u5c11\u4e00\u4e2a\u57df\u3002\u5176\u4ed6\u7684\u662f\u8f85\u52a9&#xff08;\u4ece&#xff09;DNS\u670d\u52a1\u5668&#xff08;Slave name server&#xff09;&#xff1a;\u8d1f\u8d23\u89e3\u6790\u81f3\u5c11\u4e00\u4e2a\u57df&#xff0c;\u662f\u4e3bDNS\u670d\u52a1\u5668\u7684\u8f85\u52a9\u3002\u5f53\u4e3b\u57df\u540d\u670d\u52a1\u5668\u51fa\u6545\u969c\u65f6&#xff0c;\u8f85\u52a9\u57df\u540d\u670d\u52a1\u5668\u53ef\u4ee5\u4fdd\u8bc1DNS\u7684\u67e5\u8be2\u5de5\u4f5c\u4e0d\u4f1a\u4e2d\u65ad\u3002\u4e3b\u57df\u540d\u670d\u52a1\u5668\u5b9a\u671f\u628a\u6570\u636e\u590d\u5236\u5230\u8f85\u52a9\u57df\u540d\u670d\u52a1\u5668\u4e2d&#xff0c;\u800c\u66f4\u6539\u6570\u636e\u53ea\u80fd\u5728\u4e3b\u57df\u540d\u670d\u52a1\u5668\u4e2d\u8fdb\u884c\u3002\u8fd9\u6837\u5c31\u4fdd\u8bc1\u4e86\u6570\u636e\u7684\u4e00\u81f4\u6027\u3002<\/li>\n<\/ul>\n<h3>4. DNS\u57df\u540d\u89e3\u6790\u7684\u8fc7\u7a0b<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419163110-6803cfce0fb4e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4f8b\u5b50<\/p>\n<p>[root&#064;localhost ~]# nslookup<br \/>\n&gt; set type&#061;ns#\u8bbe\u7f6e\u67e5\u8be2\u7c7b\u578b\u4e3a\u67e5\u8be2\u57df\u540d\u7684\u6743\u5a01\u540d\u79f0\u670d\u52a1\u5668&#xff08;Name Server&#xff0c;\u7b80\u79f0 NS&#xff09;\u8bb0\u5f55<br \/>\n&gt; .<br \/>\nNon-authoritative answer:<br \/>\n. nameserver &#061; b.root-servers.net.<br \/>\n*** ***<br \/>\n# \u8bbe\u7f6e\u67e5\u8be2\u7c7b\u578b\u4e3a\u67e5\u8be2\u57df\u540d\u5bf9\u5e94\u7684 A \u8bb0\u5f55,A \u8bb0\u5f55&#xff08;Address Record&#xff09;\u4e5f\u53eb\u4e3b\u673a\u8bb0\u5f55&#xff0c;\u5b83\u4e3b\u8981\u662f\u5c06\u57df\u540d\u6620\u5c04\u5230\u5bf9\u5e94\u7684 IPv4 \u5730\u5740\u4e0a<br \/>\n&gt; set type&#061;a<br \/>\n&gt; b.root-servers.net.<br \/>\nNon-authoritative answer:<br \/>\nName: b.root-servers.net<br \/>\nAddress: 170.247.170.2<br \/>\n&gt; server 170.247.170.2<br \/>\n&gt; set type&#061;ns<br \/>\n&gt; com.<br \/>\nAuthoritative answers can be found from:<br \/>\ncom nameserver &#061; a.gtld-servers.net.<br \/>\n*** ***<br \/>\na.gtld-servers.net internet address &#061; 192.5.6.30<br \/>\n&gt; server 192.33.14.30<br \/>\nDefault server: 192.33.14.30<br \/>\nAddress: 192.33.14.30#53<br \/>\n&gt; set type&#061;ns<br \/>\n&gt; bilibili.com.<br \/>\n&gt; server 1.12.0.17<br \/>\n&gt; set type&#061;a<br \/>\n&gt; www.bilibili.com<br \/>\nwww.bilibili.com canonical name &#061; a.w.bilicdn1.com.<br \/>\n&gt; a.w.bilicdn1.com.<\/p>\n<h3>5. DNS\u670d\u52a1\u5668\u914d\u7f6e<\/h3>\n<ul>\n<li>\n<p>\u5173\u4e8e\u670d\u52a1\u7aef<\/p>\n<table>\n<tr>\u8f6f\u4ef6\u5b89\u88c5\u5305bind<\/tr>\n<tbody>\n<tr>\n<td>\u670d\u52a1\u540d\u79f0<\/td>\n<td>named<\/td>\n<\/tr>\n<tr>\n<td>\u4e3b\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>\/etc\/named.conf<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u76ee\u5f55<\/td>\n<td>\/var\/named<\/td>\n<\/tr>\n<tr>\n<td>\u7aef\u53e3<\/td>\n<td>tcp\/53 udp\/53<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>\n<p>dns\u670d\u52a1\u7684\u5b89\u88c5\u4e0e\u542f\u7528<\/p>\n<ul>\n<li>\n<p>\u5b89\u88c5<\/p>\n<p> dnf install bind -y\n <\/li>\n<li>\n<p>\u542f\u7528<\/p>\n<p> systemctl enable &#8211;now named<br \/>\nfirewall-cmd &#8211;permanent &#8211;add-service&#061;dns #\u7528\u4e8e\u5411\u9632\u706b\u5899\u7684\u6c38\u4e45\u914d\u7f6e\u89c4\u5219\u91cc\u6dfb\u52a0\u5141\u8bb8 DNS \u670d\u52a1\u76f8\u5173\u6d41\u91cf\u901a\u8fc7\u7684\u89c4\u5219<br \/>\nfirewall-cmd &#8211;reload#\u91cd\u65b0\u52a0\u8f7d firewalld \u9632\u706b\u5899\u7684\u914d\u7f6e&#xff0c;\u4f7f\u5f97\u4e4b\u524d\u6dfb\u52a0\u7684\u6c38\u4e45\u89c4\u5219\u80fd\u591f\u7acb\u5373\u751f\u6548\n <\/li>\n<li>\n<p>\u5f00\u653e\u670d\u52a1<\/p>\n<p> [root&#064;localhost ~]# vim \/etc\/named.conf<br \/>\nlisten-on port 53 { any; } ##\u5728\u672c\u5730\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u4e0a\u5f00\u542f53\u7aef\u53e3<br \/>\nallow-query { any; }; ##\u5141\u8bb8\u67e5\u8be2A\u8bb0\u5f55\u7684\u5ba2\u6237\u7aef\u5217\u8868<br \/>\ndnssec-validation no; ##\u7981\u7528dns\u5b89\u5168\u6821\u9a8c&#xff0c;\u4f7fdns\u80fd\u591f\u7f13\u5b58\u5916\u90e8\u4fe1\u606f\u5230\u672c\u673a<br \/>\nforwarders  { 114.114.114.114; };##\u7528\u4e8e\u6307\u5b9a\u8f6c\u53d1\u5668&#xff08;Forwarders&#xff09;\u7684 IP \u5730\u5740\u5217\u8868<br \/>\n[root&#064;localhost ~]# systemctl restart named\n <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>6. DNS\u4f01\u4e1a\u7ea7\u9ad8\u7ea7\u914d\u7f6e<\/h3>\n<ul>\n<li>\n<p>\u9ad8\u901f\u7f13\u5b58dns<\/p>\n<ul>\n<li>\n<p>\u9ad8\u901f\u7f13\u5b58dns\u662f\u4e00\u4e2a\u975e\u6743\u5a01\u7684dns&#xff0c;\u5728dns\u670d\u52a1\u5668\u4e2d\u672c\u8eab\u5e76\u6ca1\u6709\u6570\u636e&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5f53\u5ba2\u6237\u9700\u8981\u89e3\u6790\u57df\u540d\u65f6\u9996\u5148\u67e5\u8be2\u7f13\u5b58\u4e2d\u662f\u5426\u6709\u6570\u636e&#xff0c;\u5982\u679c\u6ca1\u6709\u5c31\u4f1a\u4ece\u6307\u5b9a\u7684dns\u670d\u52a1\u5668\u4e2d\u7f13\u5b58&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u9ad8\u901f\u7f13\u5b58dns\u53ef\u4ee5\u5927\u5927\u8282\u7701\u5185\u7f51\u5728\u505a\u5730\u5740\u89e3\u6790\u4e0a\u6240\u9700\u8981\u82b1\u8d39\u7684\u65f6\u95f4&#xff1b;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u9ad8\u901f\u7f13\u5b58\u914d\u7f6e\u53c2\u6570<\/p>\n<p> [root&#064;localhost ~]# vim \/etc\/named.conf<br \/>\nforwarders { 114.114.114.114; };<br \/>\nsystemctl restart named\n <\/li>\n<li>\n<p>DNS\u7684\u6b63\u5411\u89e3\u6790<\/p>\n<ul>\n<li>\n<p>\u4f5c\u7528&#xff1a;\u5f53\u5ba2\u6237\u8bbe\u5b9a\u5f53\u524ddns\u670d\u52a1\u5668\u4e3adns\u89e3\u6790\u670d\u52a1\u5668\u65f6&#xff0c;\u6b63\u5411\u89e3\u6790\u5373\u4e3a\u5ba2\u6237\u63d0\u4f9bA\u8bb0\u5f55\u5ba2\u6237\u63d0\u4f9b\u57df\u540d&#xff0c;dns\u670d\u52a1\u5668\u8d1f\u8d23\u628a\u57df\u540d\u89e3\u6790\u6210\u5bf9\u5e94IP<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u65bd\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7f16\u5199zones\u6587\u4ef6\u8bbe\u5b9a\u8981\u7ef4\u62a4\u7684\u57df<\/p>\n<p> [root&#064;localhost ~]# vim \/etc\/named.rfc1912.zone<br \/>\nzone &#034;easylee.org&#034; IN { ##\u7ef4\u62a4\u7684\u57df\u540d<br \/>\n    type master; ##\u5f53\u524d\u670d\u52a1\u5668\u4f4d\u4e3bdns<br \/>\n    file &#034;easylee.org.zone&#034;; ##\u57df\u540dA\u8bb0\u5f55\u6587\u4ef6<br \/>\n    allow-update { none; }; ##\u5141\u8bb8\u66f4\u65b0\u4e3b\u673a\u5217\u8868<br \/>\n};\n <\/li>\n<li>\n<p>\u6839\u636ezones\u6587\u4ef6\u4e2d\u7684\u6307\u5b9a\u751f\u6210A\u8bb0\u5f55\u6587\u4ef6<\/p>\n<p> [root&#064;localhost ~]# cd \/var\/named\/<br \/>\n[root&#064;localhost named]# cp -p named.localhost easylee.org.zone<br \/>\n[root&#064;localhost named]# vim easylee.org.zone<br \/>\n## \u5728\u6b64\u6587\u4ef6\u4e2d&#xff0c;&#064;&#061;easylee.org,\u4e5f\u5c31\u662f&#064;\u76f8\u5f53\u4e8e\u7ef4\u62a4\u7684\u57df\u540d&#xff1b;<br \/>\n## \u5728\u6b64\u6587\u4ef6\u4e2d&#xff0c;\u6240\u6709&#xff08;\u9664\u4e86A\u8bb0\u5f55&#xff09;\u4e0d\u662f\u4ee5 . \u7ed3\u5c3e\u7684\u90fd\u4f1a\u5728\u672b\u5c3e\u9ed8\u8ba4\u52a0\u4e0a&#064;&#xff0c;\u4e5f\u5c31\u662f\u7ef4\u62a4\u7684\u57df\u540d&#xff0c;<br \/>\n$TTL 1D ##TIME-TOLIVE(dns\u5730\u5740\u4fdd\u5b58\u65f6\u95f4\u957f\u5ea6\u9ed8\u8ba4\u662f\u201cS\u201d)<br \/>\n&#064; IN SOA dns.easylee.org. root.easylee.org. ( ##SOA\u6388\u6743\u8d77\u59cb(Start of Authority)<br \/>\n        ##\u8d1f\u8d23\u7ba1\u7406\u7ba1\u7406\u5458\u90ae\u7bb1&#xff0c;NS\u670d\u52a1\u5668\u540d\u79f0\u7b497\u4e2a\u4fe1\u606f<br \/>\n            0 ; serial #\u57df\u540d\u7248\u672c\u5e8f\u5217\u53f7<br \/>\n            1D ; refresh #\u5237\u65b0\u65f6\u95f4&#xff08;\u8f85\u52a9dns&#xff09;<br \/>\n            1H ; retry #\u91cd\u8bd5\u65f6\u95f4&#xff08;\u8f85\u52a9dns&#xff09;<br \/>\n            1W ; expire #\u8fc7\u671f\u65f6\u95f4<br \/>\n            3H ) ; minimum #A\u8bb0\u5f55\u6700\u77ed\u6709\u6548\u671f&#xff0c;\u5982\u679c$TTL\u88ab\u8bbe\u5b9a\u90a3\u4e48\u4e00\u8bbe\u5b9a\u503c\u4e3a\u51c6<br \/>\n    NS dns.easylee.org. #nameserver \u57df\u540d<br \/>\ndns A 172.25.254.100 #nameserver A\u8bb0\u5f55<br \/>\nwww CNAME node.a.easylee.org. #Canonical Name&#xff08;\u89c4\u8303\u540d\u79f0&#xff0c;A\u8bb0\u5f55\u522b\u540d&#xff09;<br \/>\nnode.a A 172.25.254.101 #A\u8bb0\u5f55<br \/>\nnode.a A 172.25.254.102<br \/>\neasylee.org. MX 1 172.25.254.111. #\u90ae\u4ef6\u89e3\u6790\u8bb0\u5f55<\/p>\n<p>\u5f53\u66f4\u6539\u5b8c\u6bd5DNS\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\u540e\u4e00\u5b9a\u8981\u91cd\u542f\u670d\u52a1\u540e\u66f4\u6539\u5185\u5bb9\u624d\u80fd\u751f\u6548<\/p>\n<p>\u91cd\u542f\u670d\u52a1\u7684\u547d\u4ee4\u4e3a&#xff1a;systemctl restart namd<\/p>\n<p>\u5982\u679c\u91cd\u542f\u670d\u52a1\u5931\u8d25\u57fa\u672c\u53ef\u4ee5\u786e\u5b9a\u4e3a\u914d\u7f6e\u6587\u4ef6\u7684\u5185\u5bb9\u66f4\u6539\u7684\u6709\u95ee\u9898\u53ef\u4ee5\u4f7f\u7528\u7684\u67e5\u770b\u547d\u4ee4\u4e3a&#xff1a;journalctl -xeu named.service<\/p>\n<\/li>\n<li>\n<p>\u6d4b\u8bd5\u5b9e\u9a8c\u7ed3\u679c<\/p>\n<p> [root&#064;localhost ~]# dig -t A www.easylee.org &#064;172.25.254.100 ##\u67e5\u8be2A\u8bb0\u5f55<br \/>\n[root&#064;localhost ~]# dig -t mx easylee.org &#064;172.25.254.100 ##\u67e5\u8be2MX\u8bb0\u5f55<\/p>\n<p>\u5728\u67e5\u8be2\u7ed3\u679c\u65f6\u4f1a\u6709\u51e0\u79cd\u53cd\u9988\u503c<\/p>\n<table>\n<tr>\u72b6\u6001\u7801\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>NOERROR<\/td>\n<td>\u67e5\u8be2\u6210\u529f<\/td>\n<\/tr>\n<tr>\n<td>REFUSED<\/td>\n<td>\u67e5\u8be2\u88ab\u62d2\u7edd<\/td>\n<\/tr>\n<tr>\n<td>SERVFAIL<\/td>\n<td>\u67e5\u8be2\u5931\u8d25<\/td>\n<\/tr>\n<tr>\n<td>NXDOMAIN<\/td>\n<td>\u67e5\u8be2\u65e0\u6b64\u7ed3\u679c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>DNS\u7684\u53cd\u5411\u89e3\u6790<\/p>\n<ul>\n<li>\n<p>\u4f5c\u7528&#xff1a;\u5f53\u5ba2\u6237\u8bbe\u5b9a\u5f53\u524ddns\u670d\u52a1\u5668\u4e3adns\u89e3\u6790\u670d\u52a1\u5668\u65f6&#xff0c;\u6b63\u5411\u89e3\u6790\u5373\u4e3a\u5ba2\u6237\u63d0\u4f9bPRT\u8bb0\u5f55\u5ba2\u6237\u63d0\u4f9b\u57df\u540d&#xff0c;dns\u670d\u52a1\u5668\u8d1f\u8d23\u628a\u57df\u540d\u89e3\u6790\u6210\u5bf9\u5e94IP\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u65bd\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7f16\u5199zones\u6587\u4ef6\u8bbe\u5b9a\u8981\u7ef4\u62a4\u7684\u57df<\/p>\n<p> [root&#064;localhost ~]# vim \/etc\/named.rfc1912.zones<br \/>\n&#8230;<br \/>\nzone &#034;254.25.172.in-addr.arpa&#034; IN {<br \/>\n    type master;<br \/>\n    file &#034;172.25.254.ptr&#034;;<br \/>\n    allow-update { none; };<br \/>\n};<br \/>\n&#8230;\n <\/li>\n<li>\n<p>\u6839\u636ezones\u6587\u4ef6\u4e2d\u7684\u6307\u5b9a\u751f\u6210A\u8bb0\u5f55\u6587\u4ef6<\/p>\n<p> [root&#064;localhost ~]# cd \/var\/named\/<br \/>\n[root&#064;localhost named]# cp -p named.loopback 172.25.254.ptr<br \/>\n[root&#064;localhost named]# vim 172.25.254.ptr<br \/>\n$TTL 1D<br \/>\n&#064; IN SOA dns.easylee.org. root.easylee.org. (<br \/>\n                            0 ; serial<br \/>\n                            1D ; refresh<br \/>\n                            1H ; retry<br \/>\n                            1W ; expire<br \/>\n                            3H ) ; minimum<br \/>\nNS dns.easylee.org.<br \/>\ndns A 172.25.254.100<br \/>\n111 PTR bbs.easylee.org.<\/p>\n<p>\u6ce8\u610f\u914d\u7f6e\u5b8c\u6210\u540e\u9700\u8981\u91cd\u542fnamed\u670d\u52a1&#xff0c;\u5426\u5219\u4e0d\u751f\u6548&#xff01;&#xff01;<\/p>\n<\/li>\n<li>\n<p>\u6d4b\u8bd5\u5b9e\u9a8c\u7ed3\u679c<\/p>\n<p> [root&#064;localhost ~]# dig -x 172.25.254.111 &#064;172.25.254.100\n <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>DNS\u7684\u591a\u5411\u89e3\u6790\u65b9\u6848<\/p>\n<ul>\n<li>\n<p>\u914d\u7f6e\u5b9e\u9a8c\u73af\u5883<\/p>\n<p> ## \u5728\u5f53\u524d\u7f51\u5361\u4e2d\u6dfb\u52a0\u6240\u9700\u7f51\u6bb5IP<br \/>\n[root&#064;localhost ~]# ip addr add 192.168.0.100\/24 dev ens160<\/p>\n<p>\u5728\u6dfb\u52a0\u5b8c\u6bd5\u8fd9\u4e2aIP\u540eens160\u8fd9\u5757\u7f51\u5361\u4e0a\u5c31\u6709\u4e24\u4e2aIP<\/p>\n<p>172.25.254.100<\/p>\n<p>192.168.0.100<\/p>\n<p>\u6211\u4eec\u7528\u8fd9\u4e24\u4e2a\u4e0d\u540c\u7f51\u6bb5\u7684IP\u6765\u6a21\u62df\u591a\u7f51\u6bb5<\/p>\n<p>\u5f53\u524d\u7528ip addr \u547d\u4ee4\u6dfb\u52a0\u7684IP\u662f\u4e34\u65f6\u6dfb\u52a0&#xff0c;\u5f53\u7f51\u5361\u88ab\u5237\u65b0\u540e\u8be5IP\u5931\u6548<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u65bd\u65b9\u6cd5<\/p>\n<p> [root&#064;localhost ~]# vim \/etc\/named.conf<\/p>\n<ul>\n<li>\n<p>\u6ce8\u91ca\u5728\u4e3b\u914d\u7f6e\u6587\u4ef6\u4e2d\u9ed8\u8ba4\u7684zone\u8bed\u53e5\u5757<\/p>\n<p> \/*<br \/>\nzone &#034;.&#034; IN {<br \/>\ntype hint;<br \/>\nfile &#034;named.ca&#034;;<br \/>\n};<br \/>\ninclude &#034;\/etc\/named.rfc1912.zones&#034;;<br \/>\n*\/\n <\/li>\n<li>\n<p>\u6dfb\u52a0view\u8bed\u53e5\u5757\u6765\u9650\u5236\u8bbf\u95ee\u6570\u636e\u8d70\u5411<\/p>\n<p> view net-172 {<br \/>\n    match-clients { 172.25.254.0\/24; };<br \/>\n        zone &#034;.&#034; IN {<br \/>\n            type hint;<br \/>\n            file &#034;named.ca&#034;;<br \/>\n    };<br \/>\n    include &#034;\/etc\/named.rfc1912.zones&#034;;<br \/>\n};<br \/>\nview net-192 {<br \/>\n    match-clients { 192.168.0.0\/24; };<br \/>\n        zone &#034;.&#034; IN {<br \/>\n        type hint;<br \/>\n        file &#034;named.ca&#034;;<br \/>\n    };<br \/>\n    include &#034;\/etc\/named.rfc192.zones&#034;;<br \/>\n};<\/p>\n<p>view\u4e2d\u7684match-clients\u662f\u7528\u6765\u5339\u914d\u8bbf\u95ee\u6765\u6e90\u7684<\/p>\n<p>\u5339\u914d\u8bbf\u95ee\u6765\u6e90\u53ef\u4ee5\u586b\u5199\u591a\u4e2a&#xff0c;\u6bcf\u4e2a\u4e4b\u95f4\u7528\u7a7a\u683c\u5206\u9694<\/p>\n<\/li>\n<li>\n<p>\u751f\u6210\u5e76\u914d\u7f6ezones\u6587\u4ef6<\/p>\n<p> [root&#064;localhost ~]# cp -p \/etc\/named.rfc1912.zones \/etc\/named.rfc192.zones<br \/>\n[root&#064;localhost ~]# vim \/etc\/named.rfc192.zones<br \/>\nzone &#034;easylee.org&#034; IN {<br \/>\n    type master;<br \/>\n    file &#034;easylee-192.org.zone&#034;;<br \/>\n    allow-update { none; };<br \/>\n};\n <\/li>\n<li>\n<p>\u751f\u6210\u5e76\u914d\u7f6eA\u8bb0\u5f55\u6587\u4ef6<\/p>\n<p> [root&#064;localhost ~]# cp -p \/var\/named\/easylee.org.zone \/var\/named\/easylee-192.org.zone<br \/>\n[root&#064;localhost ~]# vim \/var\/named\/easylee-192.org.zone<br \/>\n$TTL 1D<br \/>\n&#064; IN SOA dns.easylee.org. root.easylee.org. (<br \/>\n                0 ; serial<br \/>\n                1D ; refresh<br \/>\n                1H ; retry<br \/>\n                1W ; expire<br \/>\n                3H ) ; minimum<br \/>\n            NS dns.easylee.org.<br \/>\ndns A 192.168.0.100<br \/>\nwww CNAME node.a.easylee.org.<br \/>\nnode.a A 192.168.0.101<br \/>\nnode.a A 192.168.0.102<br \/>\neasylee.org. MX 5 192.168.0.111.<\/p>\n<p>\u4fee\u6539\u5b8c\u6bd5\u914d\u7f6e\u6587\u4ef6\u540e\u4e00\u5b9a\u8981\u91cd\u542f\u670d\u52a1<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4e3b\u4eceDNS\u670d\u52a1\u5668<\/p>\n<ul>\n<li>\n<p>\u7b80\u4ecb&#xff1a;\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;\u5176\u4e2d\u7684\u4e00\u4e2a\u5c31\u662f\u4e3bDNS\u670d\u52a1\u5668&#xff08;Master name server&#xff09;&#xff0c;\u8d1f\u8d23\u89e3\u6790\u81f3\u5c11\u4e00\u4e2a\u57df\u3002\u5176\u4ed6\u7684\u662f\u8f85\u52a9&#xff08;\u4ece&#xff09;DNS\u670d\u52a1\u5668&#xff08;Slave name server&#xff09;&#xff1a;\u8d1f\u8d23\u89e3\u6790\u81f3\u5c11\u4e00\u4e2a\u57df&#xff0c;\u662f\u4e3bDNS\u670d\u52a1\u5668\u7684\u8f85\u52a9\u3002\u5f53\u4e3b\u57df\u540d\u670d\u52a1\u5668\u51fa\u6545\u969c\u65f6&#xff0c;\u8f85\u52a9\u57df\u540d\u670d\u52a1\u5668\u53ef\u4ee5\u4fdd\u8bc1DNS\u7684\u67e5\u8be2\u5de5\u4f5c\u4e0d\u4f1a\u4e2d\u65ad\u3002\u4e3b\u57df\u540d\u670d\u52a1\u5668\u5b9a\u671f\u628a\u6570\u636e\u590d\u5236\u5230\u8f85\u52a9\u57df\u540d\u670d\u52a1\u5668\u4e2d&#xff0c;\u800c\u66f4\u6539\u6570\u636e\u53ea\u80fd\u5728\u4e3b\u57df\u540d\u670d\u52a1\u5668\u4e2d\u8fdb\u884c\u3002\u8fd9\u6837\u5c31\u4fdd\u8bc1\u4e86\u6570\u636e\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u5b9e\u9a8c\u73af\u5883&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u65b0\u5efa\u4e00\u53f0\u4e3b\u673a\u4f5c\u4e3a\u8f85\u52a9DNS\u4e3b\u673a&#xff0c;\u5e76\u914d\u7f6e\u597d\u7f51\u7edc\u548c\u8f6f\u4ef6\u4ed3\u5e93&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5728\u65b0\u5efa\u4e3b\u673a\u4e2d\u5b89\u88c5DNS\u670d\u52a1\u5e76\u4fdd\u8bc1\u670d\u52a1\u53ef\u4ee5\u88ab\u8bbf\u95ee\u3002<\/p>\n<p> \u5b89\u88c5<br \/>\n  dnf install bind -y<br \/>\n\u542f\u7528<br \/>\n  systemctl enable &#8211;now named<br \/>\n  firewall-cmd &#8211;permanent &#8211;add-service&#061;dns #\u7528\u4e8e\u5411\u9632\u706b\u5899\u7684\u6c38\u4e45\u914d\u7f6e\u89c4\u5219\u91cc\u6dfb\u52a0\u5141\u8bb8DNS\u670d\u52a1\u76f8\u5173\u6d41\u91cf\u901a\u8fc7\u7684\u89c4\u5219<br \/>\n  firewall-cmd &#8211;reload#\u91cd\u65b0\u52a0\u8f7d firewalld \u9632\u706b\u5899\u7684\u914d\u7f6e&#xff0c;\u4f7f\u5f97\u4e4b\u524d\u6dfb\u52a0\u7684\u6c38\u4e45\u89c4\u5219\u80fd\u591f\u7acb\u5373\u751f\u6548<br \/>\n\u5f00\u653e\u670d\u52a1<br \/>\n  [root&#064;localhost ~]# vim \/etc\/named.conf<br \/>\n  listen-on port 53 { any; } ##\u5728\u672c\u5730\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u4e0a\u5f00\u542f53\u7aef\u53e3<br \/>\n  allow-query { any; }; ##\u5141\u8bb8\u67e5\u8be2A\u8bb0\u5f55\u7684\u5ba2\u6237\u7aef\u5217\u8868<br \/>\n  dnssec-validation no; ##\u7981\u7528dns\u5b89\u5168\u6821\u9a8c&#xff0c;\u4f7fdns\u80fd\u591f\u7f13\u5b58\u5916\u90e8\u4fe1\u606f\u5230\u672c\u673a<br \/>\n  forwarders  { 114.114.114.114; };##\u7528\u4e8e\u6307\u5b9a\u8f6c\u53d1\u5668&#xff08;Forwarders&#xff09;\u7684 IP \u5730\u5740\u5217\u8868<br \/>\n  [root&#064;localhost ~]# systemctl restart named\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5bf9\u8f85\u52a9DNS\u8fdb\u884c\u8bbe\u7f6e<\/p>\n<ul>\n<li>\n<p>\u4fee\u6539zones\u6587\u4ef6\u8bbe\u5b9a\u8981\u505a\u4e3b\u4ece\u7684\u57df<\/p>\n<p> [root&#064;localhost ~]# vim \/etc\/named.rfc1912.zones<br \/>\n    zone &#034;easylee.org&#034; IN {<br \/>\n    type slave;<br \/>\n    masters { 172.25.254.100; };<br \/>\n    file &#034;slaves\/easylee.org.zone&#034;;<br \/>\n\/\/ allow-update { none; };<br \/>\n};\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u542f\u52a8\u670d\u52a1\u5e76\u6d4b\u8bd5<\/p>\n<p> [root&#064;localhost ~]# systemctl enable &#8211;now named<br \/>\n[root&#064;localhost ~]# dig -t A www.easylee.org &#064;172.25.254.200<\/p>\n<p>\u4ee5\u4e0a\u64cd\u4f5c\u9664\u4e86\u6d4b\u8bd5\u547d\u4ee4\u5916\u90fd\u5728\u8f85\u52a9dns\u4e2d\u8fdb\u884c&#xff0c;\u5728\u5b9e\u9a8c\u8fdb\u884c\u65f6\u4e00\u5b9a\u8981\u5206\u6e05\u695a\u90a3\u4e2a\u662f\u4e3bdns\u90a3\u4e2a\u662f\u8f85\u52a9dns<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3\u6570\u636e\u65f6\u95f4\u540c\u6b65\u95ee\u9898<\/p>\n<ul>\n<li>\n<p>\u95ee\u9898&#xff1a;\u4e3b\u4ecedns\u7ecf\u8fc7\u4e0a\u8ff0\u8bbe\u5b9a\u540e\u5b58\u5728\u6570\u636e\u540c\u6b65\u5ef6\u8fdf&#xff0c;\u5728\u4e3bdns\u4e2d\u66f4\u6539\u6570\u636e\u540e\u8981\u7b49\u5230\u4e0b\u4e2a\u540c\u6b65\u5468\u671f\u7684\u65f6\u95f4\u5230\u6765\u624d\u80fd\u8fdb\u884c\u540c\u6b65&#xff0c;\u4e0b\u9762\u662f\u89e3\u51b3\u6570\u636e\u540c\u6b65\u7684\u5ef6\u8fdf\u95ee\u9898&#xff1a;<\/p>\n<\/li>\n<li>\n<p>\u5728\u4e3bdns\u4e2d\u8bbe\u7f6e\u6570\u636e\u66f4\u6539\u540e\u4e3b\u52a8\u901a\u77e5\u5bf9\u8c61<\/p>\n<p> [root&#064;localhost ~]# vim \/etc\/named.rfc1912.zones<br \/>\nzone &#034;easylee.org&#034; IN {<br \/>\n    type master;<br \/>\n    file &#034;easylee.org.zone&#034;;<br \/>\n    allow-update { none; };<br \/>\n    also-notify { 172.25.254.200; };<br \/>\n};\n <\/li>\n<li>\n<p>\u66f4\u6539A\u8bb0\u5f55\u6587\u4ef6\u6d4b\u8bd5\u7ed3\u679c<\/p>\n<p> [root&#064;localhost ~]# vim \/var\/named\/easylee.org.zone<br \/>\n$TTL 1D<br \/>\n&#064; IN SOA dns.easylee.org. root.easylee.org. (<br \/>\n                    2023032901 ; serial #\u66f4\u6539A\u8bb0\u5f55\u540e\u4e00\u5b9a\u8981\u66f4\u65b0serial\u503c<br \/>\n                    1D ; refresh<br \/>\n                    1H ; retry<br \/>\n                    1W ; expire<br \/>\n                    3H ) ; minimum<br \/>\nNS dns.easylee.org.<br \/>\ndns A 172.25.254.100<br \/>\nwww CNAME node.a.easylee.org.<br \/>\nnode.a A 172.25.254.200<br \/>\nnode.a A 172.25.254.202<br \/>\neasylee.org. MX 5 172.25.254.111.<\/p>\n<p>serial\u503c\u5fc5\u987b\u662f\u589e\u91cf\u66f4\u6539&#xff0c;\u5176\u6700\u5927\u4f4d\u6570\u4e3a10\u4f4d&#xff0c;\u5728\u4f01\u4e1a\u4e2d\u4e00\u822c\u4f1a\u7528\u8fd9\u4e2a\u6570\u5b57\u6765\u8bb0\u5f55\u66f4\u6539\u65f6\u95f4<\/p>\n<\/li>\n<li>\n<p>\u6d4b\u8bd5\u6570\u636e\u540c\u6b65\u6027<\/p>\n<p> [root&#064;localhost ~]# dig -t A www.easylee.org &#064;172.25.254.100<br \/>\n[root&#064;localhost ~]# dig -t A www.easylee.org &#064;172.25.254.200<\/p>\n<p>A 172.25.254.100 www CNAME node.a.easylee.org. node.a A 172.25.254.200 node.a A 172.25.254.202 easylee.org. MX 5 172.25.254.111.<\/p>\n<p>&gt; serial\u503c\u5fc5\u987b\u662f\u589e\u91cf\u66f4\u6539&#xff0c;\u5176\u6700\u5927\u4f4d\u6570\u4e3a10\u4f4d&#xff0c;\u5728\u4f01\u4e1a\u4e2d\u4e00\u822c\u4f1a\u7528\u8fd9\u4e2a\u6570\u5b57\u6765\u8bb0\u5f55\u66f4\u6539\u65f6\u95f4<\/p>\n<\/li>\n<li>\n<p>\u6d4b\u8bd5\u6570\u636e\u540c\u6b65\u6027<\/p>\n<p> [root&#064;localhost ~]# dig -t A www.easylee.org &#064;172.25.254.100<br \/>\n[root&#064;localhost ~]# dig -t A www.easylee.org &#064;172.25.254.200<\/p>\n<p>\u56de\u987e\u7ec3\u4e60\u2014\u5177\u4f53\u5b9e\u8df5\u6b65\u9aa4&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u89e3\u6790\u8fc7\u7a0b&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p>vim   \/etc\/resolv.conf&#xff08;\u67e5\u770bdns\u8bbe\u5b9a&#xff09;<br \/>\n[root&#064;localhost \u684c\u9762]# nslookup<br \/>\n&gt; set   type&#061;ns&#xff08;\u5148\u8bbf\u95ee\u6839\u662f\u8c01&#xff0c;\u6240\u4ee5\u8981\u6307\u5b9a\u89e3\u6790\u57df\u540d\u670d\u52a1\u5668&#xff09;<br \/>\n&gt; .&#xff08;\u95ee\u6839\u662f\u8c01&#xff0c;\u56de\u8f66\u91cc\u6709.nameserver &#061; m.root-servers.net.&#xff09;<br \/>\n&gt; set   type&#061;a<br \/>\n&gt; m.root-servers.net.&#xff08;\u95ee\u4ed6\u662f\u8c01&#xff0c;\u51fa\u73b0\u4ed6\u7684\u5730\u5740&#xff09;<br \/>\n&gt; server   202.12.27.33&#xff08;\u4f7f\u7528\u8fd9\u4e2a\u5730\u5740&#xff09;<br \/>\n\u8bbf\u95eewww.bilibili.com\u89e3\u6790\u8fc7\u7a0b&#xff08;\u89e3\u6790\u5feb\u6162\u5f71\u54cd\u5ba2\u6237\u8bbf\u95ee\u5feb\u6162&#xff09;<br \/>\n&gt; set   type&#061;ns<br \/>\n&gt; com.<br \/>\n&gt; server   192.5.6.30<br \/>\n&gt; set   type&#061;ns<br \/>\n&gt; bilibili.com<br \/>\n&gt; server   1.12.0.17<br \/>\n&gt; set   type&#061;a<br \/>\n&gt; www.bilibili.com.<br \/>\n&gt; a.w.bilicdn1.com.<\/p>\n<ul>\n<li>dns\u9ad8\u901f\u7f13\u5b58\u670d\u52a1\u5668<\/li>\n<\/ul>\n<p>\u5b9e\u9a8c\u73af\u5883&#xff08;\u4e24\u53f0\u4e3b\u673a&#xff0c;\u5f7c\u6b64\u901a\u4fe1&#xff0c;100\u7684\u4e3adns\u670d\u52a1\u5668&#xff09;<br \/>\n100\u7684\u5b89\u88c5dnf  install   bind   -y<br \/>\n rpm   -qc   bind  &#xff08;\u67e5\u770b\u6587\u4ef6&#xff09;<br \/>\n[root&#064;localhost \u684c\u9762]# vim    \/etc\/resolv.conf<br \/>\n[root&#064;localhost \u684c\u9762]# cat    \/etc\/resolv.conf<br \/>\n# Generated by NetworkManager<br \/>\nsearch    timinglee.org<br \/>\nnameserver 172.25.254.100&#xff08;\u4e24\u53f0\u4e3b\u673a\u7684dns\u90fd\u8981\u6307\u5b9a\u4e3a100\u7684ip,\u8981\u6d4b\u8c01&#xff0c;\u5c31\u6307\u5b9a\u8c01&#xff09;<br \/>\nsystemctl    start   named&#xff08;100\u7684\u670d\u52a1\u542f\u52a8&#xff09;<br \/>\nnetstat   -antlupe   |   grep   named&#xff08;\u67e5\u770bnamed\u7684\u4f7f\u7528\u7aef\u53e3&#xff09;<br \/>\ndig   www.baidu.com&#xff08;\u6d4b\u80fd\u5426\u901a&#xff0c;\u8fd9\u91cc\u4e0d\u80fd&#xff0c;\u56e0\u4e3a\u7aef\u53e3\u5728\u56de\u73af\u4e0a\u5f00&#xff0c;\u6ca1\u5728100\u4e0a\u5f00&#xff09;<br \/>\nvim    \/etc\/named.conf&#xff08;\u7f16\u8f91\u4ed6\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5728\u91cc\u9762\u6539\u6210listen-on port 53 { any; };&#xff0c;\u662f\u7aef\u53e3\u5728\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u4e0a\u5f00\u5f00\u542f&#xff09;<br \/>\nsystemctl    restart   named&#xff08;\u6539\u5b8c\u91cd\u542f\u670d\u52a1&#xff09;&#xff08;100\u7684\u8bbf\u95ee\u6210\u529f&#xff09;<br \/>\nallow-query     { any; };&#xff08;\u5141\u8bb8\u8c01\u7528\u5f53\u524ddns\u6765\u67e5\u8be2A\u8bb0\u5f55&#xff09;<br \/>\ndnssec-validation no;&#xff08;\u56e0\u4e3a\u662f\u79c1\u6709\u7684&#xff0c;\u8981\u5173\u95ed\u5b89\u5168\u6821\u9a8c&#xff09;&#xff08;\u8fd9\u6837200\u7684\u8bbf\u95ee\u4e5f\u6210\u529f&#xff09;<br \/>\n\u5728\u6587\u4ef6\u91cc\u4e5f\u53ef\u63d2\u5165forwarders       {114.114.114.114;   };&#xff08;\u5f53\u6211\u8fd9\u91cc\u6ca1\u5ba2\u6237\u8981\u7684&#xff0c;\u4ece\u8fd9\u53f0\u4e3b\u673a\u53bb&#xff0c;\u9ed8\u8ba4\u662f\u5230\u6839\u670d\u52a1\u5668&#xff09;&#xff08;\u52a0\u5feb\u8bbf\u95ee&#xff0c;\u8fd9\u53f0\u4e3b\u673a\u6ca1\u6709&#xff0c;\u4ece\u6307\u5b9a\u7684\u4e3b\u673a\u7f13\u5b58\u4fe1\u606f&#xff09;<\/p>\n<ul>\n<li>dns\u7684\u6b63\u5411\u89e3\u6790<\/li>\n<\/ul>\n<p>A\u8bb0\u5f55\u5c31\u662faddress<br \/>\n\u6784\u5efa\u5185\u90e8dns<br \/>\n vim   \/etc\/named.rfc1912.zones&#xff08;\u5728100\u7684\u7ef4\u62a4\u6587\u4ef6\u91cc\u6539&#xff09;<br \/>\nzone &#034;timinglee.org&#034; IN {<br \/>\n        type master;<br \/>\n        file &#034;timinglee.org.zone&#034;;<br \/>\n        allow-update { none; };&#xff08;\u88ab\u8bbf\u95eetiminglee.org\u8fd9\u4e2a\u57df\u540d\u65f6\u8bbf\u95eetiminglee.org\u3002zone\u8fd9\u4e2a\u6587\u4ef6&#xff09;<br \/>\n};<br \/>\n\u5efa\u8fd9\u4e2a\u6587\u4ef6\u7f16\u8f91<br \/>\n[root&#064;localhost \u684c\u9762]# cd   \/var\/named\/<br \/>\n[root&#064;localhost named]# ls<br \/>\ndata  dynamic  named.ca  named.empty  named.localhost  named.loopback  slaves<br \/>\n[root&#064;localhost named]# cp  -p    named.localhost    timinglee.org.zone&#xff08;\u6743\u9650\u7279\u6b8a&#xff0c;\u5fc5\u987b\u52a0p&#xff09;<br \/>\nroot&#064;localhost named]# vim   timinglee.org.zone&#xff08;\u91cc\u9762\u8bb0\u5f97\u7ed3\u5c3e\u52a0.\u4e0d\u52a0\u4f1a\u8865\u9f50&#064;&#xff09;<br \/>\ntail   \/var\/log\/messages&#xff08;\u62a5\u9519\u67e5\u770b\u65e5\u5fd7&#xff09;<br \/>\nSOA  dns.timinglee.org.  &#xff08;\u6388\u6743\u673a\u5236&#xff09;<\/p>\n<ul>\n<li>dns\u7684\u8bb0\u5f55\u7c7b\u578b-\u89c4\u8303\u57df\u540d\u89e3\u6790<\/li>\n<\/ul>\n<p>\u5185\u90e8\u670d\u52a1\u5668\u6709\u597d\u591a&#xff08;\u5185\u90e8\u57df\u540d&#xff09;&#xff0c;\u5bf9\u5916\u57df\u540d\u53ea\u6709\u4e00\u4e2a&#xff08;\u5916\u90e8\u57df\u540d&#xff09;<br \/>\n\u9700\u8981\u505a\u4e00\u4e2a\u89c4\u8303\u57df\u540d&#xff08;CNAME&#xff09;&#8211;\u6620\u5c04\u8bb0\u5f55&#8211;\u628a\u89c4\u8303\u7684\u57df\u540d\u6620\u5c04\u5230\u5185\u90e8\u57df\u540d&#xff0c;\u518d\u57df\u540d\u8fdb\u884c\u89e3\u6790<br \/>\nvim   \/var\/named\/timinglee.org.zone&#xff08;\u7f16\u8f91\u8fd9\u4e2a\u6587\u4ef6<br \/>\nwww     CNAME    node1.a.timinglee.org.<br \/>\nnode1.a  A       172.25.254.111<br \/>\nnode1.a  A       172.25.254.222<br \/>\n&#xff09;<br \/>\nsystemctl    restart   named&#xff08;\u91cd\u542f\u670d\u52a1&#xff09;<br \/>\ndig   www.timinglee.org<\/p>\n<ul>\n<li>dns\u7684\u8bb0\u5f55\u7c7b\u578b-\u90ae\u4ef6\u89e3\u6790\u8bb0\u5f55<\/li>\n<\/ul>\n<p>\u90ae\u4ef6\u53d1\u9001\u534f\u8bae&#8211;\u7528smtp\u534f\u8bae&#xff08;\u4e24\u670d\u52a1\u5668\u7aef\u53e3\u4e4b\u95f4&#xff0c;163\u5230qq&#xff0c;\u95eedns&#xff0c;dns\u544a\u8bc9\u4e00\u4e2aIp&#xff0c;\u8fd9\u4e2aip\u5c31\u662fqq.com\u57df\u7684mx&#xff08;\u90ae\u4ef6\u89e3\u6790\u8bb0\u5f55&#xff09;\u8bb0\u5f55,\u5230qq.com\u91cc\u7684163.com\u662f\u4e2a\u6570\u636e\u5305&#xff0c;\u5305\u5934\u6709\u4e2aip,\u8981\u628aip\u89e3\u6790\u6210\u57df\u540d&#xff08;163.com&#xff09;\u53eb\u505aptr&#xff08;\u53cd\u5411\u90ae\u4ef6\u89e3\u6790\u8bb0\u5f55&#xff09;&#xff0c;\u624d\u77e5\u9053\u90ae\u7bb1\u662f\u5565,\u5e76\u5b58\u5230\u8fd9\u4e2a\u90ae\u7bb1\u91cc&#xff09;<br \/>\nfrom  lee&#064;163.com&#xff08;\u540e\u9762\u90fd\u662f\u57df\u540d&#xff09;<br \/>\nto    lee&#064;qq.com<br \/>\ndig   -t   mx   timinglee.org&#xff08;mx\u8bb0\u5f55\u662f\u7a7a&#xff09;<br \/>\n\u505amx\u8bb0\u5f55<br \/>\nvim   \/var\/named\/timinglee.org.zone&#xff08;\u52a0\u5165timinglee.org   MX   1    172.25.254.100.\u540e\u9762\u6ce8\u610f\u5fc5\u987b\u52a0.&#xff09;<br \/>\n\u91cd\u542f\u670d\u52a1<br \/>\ndig   -t   mx   timinglee.org&#xff08;\u518d\u68c0\u6d4b&#xff09;<br \/>\n\u505aptr\u8bb0\u5f55<br \/>\n vim   \/etc\/named.rfc1912.zones&#xff08;\u52a0\u5165zone &#034;254.25.172.in-addr.arpa&#034; IN {<br \/>\n        type master;<br \/>\n        file &#034;172.25.254.ptr&#034;;<br \/>\n        allow-update { none; };<br \/>\n};<br \/>\n&#xff09;<br \/>\nroot&#064;localhost named]# cp   -p   named.loopback   172.25.254.ptr&#xff08;\u590d\u5236&#xff09;<br \/>\nvim   172.25.254.ptr&#xff08;\u6539\u8fd9\u4e2a\u6587\u4ef6&#xff09;<br \/>\n\u91cd\u542f\u670d\u52a1<br \/>\ndig   -x    172.25.254.111&#xff08;\u53cd\u5411\u89e3\u6790&#xff0c;\u68c0\u6d4b&#xff09;<\/p>\n<ul>\n<li>dns\u591a\u5411\u89e3\u6790<\/li>\n<\/ul>\n<p>\u4e24\u53f0\u4e3b\u673a&#xff0c;\u7b2c\u4e8c\u53f0\u4e3b\u673a\u4ec5\u4e3b\u673a&#xff0c;\u4e24\u4e2a\u7f51\u6bb5192.168.0.200&#xff0c;172.200\u7b2c\u4e00\u53f0\u662f\u53cc\u7f51\u5361&#xff0c;\u4e00\u4e2a\u4ec5\u4e3b\u673aeth1  192.168.0.100&#xff08;\u4e0d\u9700\u8981\u7f51\u5173&#xff09;&#xff0c;\u4e00\u4e2anat172.100<br \/>\n172.100\u5f97\u5230dns\u7684172<br \/>\n192.200\u5f97\u5230dns\u7684192<br \/>\n nmcli   networking on<br \/>\n\u5728172.100\u91cc\u8bbe\u5b9adns<br \/>\n[root&#064;localhost ~]# vim  \/etc\/resolv.conf<br \/>\n&#xff08;dns\u4e3a172.25.254.100&#xff09;<br \/>\n\u6d4b\u8bd5dig   www.timinglee.org&#xff08;172\u5f97172&#xff09;<br \/>\n\u5728192.200\u91cc\u8bbe\u5b9adns<br \/>\n[root&#064;localhost ~]# vim  \/etc\/resolv.conf<br \/>\n&#xff08;dns\u4e3a192.168.0.100&#xff09;<br \/>\n\u6d4b\u8bd5dig    www.timinglee.org&#xff08;192\u5f97192&#xff09;<br \/>\n\u9700\u8981\u4e24\u5957\u89e3\u6790\u6ee1\u8db3<br \/>\n\u590d\u5236&#xff0c;\u7f16\u8f91\u6587\u4ef6&#xff0c;\u5168\u6587\u66ff\u6362&#xff08;2\u6587\u4ef6&#xff09;<br \/>\n172.100\u91cc<br \/>\n[root&#064;localhost ~]# cd   \/var\/named\/<br \/>\n[root&#064;localhost named]# cp   -p   timinglee.org.zone   timinglee.org.192<br \/>\n[root&#064;localhost named]# vim   timinglee.org.192<br \/>\n[root&#064;localhost named]# cp   \/etc\/named.rfc1912.zones   \/etc\/named.rfc1912.zones.192  -p<br \/>\n[root&#064;localhost named]# vim    \/etc\/named.rfc1912.zones.192<br \/>\n\u7f16\u8f91\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff08;&#xff0c;\u4e4b\u524d\u6ce8\u91ca\u6389&#xff0c;\u6307\u5b9a\u4e24\u4e2a&#xff0c;\u6240\u6709\u548c192\u7684&#xff09;<br \/>\n[root&#064;localhost named]# vim   \/etc\/named.conf&#xff08;\u6307\u5b9a\u591a\u4e2azones&#xff09;<br \/>\n\u91cd\u542f\u670d\u52a1<br \/>\n\u4e24\u4e2a\u6d4b\u8bd5dig   www.timinglee.org&#xff08;172\u5f97172&#xff0c;192\u5f97192&#xff09;<br \/>\n\u5982\u679c\u8bf4\u662f\u6ca1\u6709servers,\u5173\u706b\u5899 systemctl  stop    firewalld<br \/>\n&#xff0c;dns\u6253\u5f00&#xff0c;dns\u914d\u7f6e&#xff0c;\u770b\u80fdping\u901a\u4e0d<\/p>\n<ul>\n<li>dns\u4e3b\u4ece<\/li>\n<\/ul>\n<p>&#xff08;\u540c\u6b65\u4e1c\u897f&#xff0c;\u51cf\u5c11\u4e3bdns\u538b\u529b&#xff0c;\u4ecedns\u53ebsalf&#xff09;&#xff0c;\u8f85\u52a9dns\u7684\u914d\u7f6e\u53ca\u4f18\u5316<br \/>\n\u600e\u6837\u5c06\u4e3bdns\u6570\u636e\u540c\u6b65\u5230\u4ecedns&#xff0c;\u7528192\u7f51\u6bb5\u6765\u505a<br \/>\n192.200&#xff08;\u5145\u5f53\u8f85\u52a9dns&#xff09;\u91cc\u505a\u7684zones.192\u8fd9\u4e2a\u6587\u4ef6<br \/>\n\u5b89\u88c5bind<br \/>\n\u7f16\u8f91\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff0c;\u65393\u4e2a<br \/>\n[root&#064;localhost ~]# vim    \/etc\/named.conf<br \/>\n\u518d\u7f16\u8f91\u4e00\u4e2a\u6587\u4ef6<br \/>\n\u6dfb\u52a0[root&#064;localhost ~]# vim   \/etc\/named.rfc1912.zones<br \/>\nzone &#034;timinglee.org&#034; IN {<br \/>\n        type slave;<br \/>\n        masters{192.168.0.100; };<br \/>\n        file &#034;slaves\/timinglee.org.192&#034;;<br \/>\n};<br \/>\n&#xff08;\u8fd9\u91cc\u7684salves\u6307\u7684\u662f\/var\/named\/\u4e0b\u7684\u4e00\u4e2a\u76ee\u5f55&#xff09;<br \/>\n\u91cd\u542f\u670d\u52a1<br \/>\nslaves,\u540c\u6b65&#xff0c;<br \/>\n\u5728172.100\u91cc<br \/>\n[root&#064;localhost named]# vim   \/etc\/resolv.conf&#xff08;\u6539\u6210192.100&#xff09;<br \/>\n\u5728192.200\u91cc<br \/>\n[root&#064;localhost ~]# cat   \/etc\/resolv.conf<br \/>\n# Generated by NetworkManager<br \/>\nsearch   timinglee.org<br \/>\nnameserver 192.168.0.200<br \/>\n\u9700\u8981\u4e24\u53f0\u6d4b\u8bd5\u4e3b\u673a&#xff0c;\u4e00\u4e2a\u6d4b\u8bd5192.168.0.100&#xff08;\u4e3b&#xff09;&#xff0c;\u4e00\u4e2a\u6d4b\u8bd5192.200&#xff08;\u4ece&#xff09;<br \/>\n\u4f46\u662f\u6709\u4e00\u4e2a\u95ee\u9898<br \/>\n\u5f53\u6539\u53d8172.100\u91cc<br \/>\n[root&#064;localhost named]# vim    timinglee.org.192<br \/>\n\u4e3b\u6539\u4e86&#xff0c;\u4f46\u4ece\u6ca1\u6539&#xff0c;\u56e0\u4e3a\u6570\u636e\u4e0d\u80fd\u53ca\u65f6\u540c\u6b65<br \/>\n[root&#064;localhost named]# vim    \/etc\/named.rfc1912.zones.192<br \/>\n    also-notify  {192.168.0.200  ;};&#xff08;\u901a\u77e5200&#xff09;<br \/>\n\u518d\u6539\u4e2a\u6587\u4ef6\u91cc\u4e1c\u897f[root&#064;localhost named]# vim    timinglee.org.192<br \/>\n 1       ; serial<br \/>\n\u5982\u679c\u5728\u6539\u53d8timinglee.org.192\u8fd9\u4e2a\u6587\u4ef6\u4e0b\u7684\u5185\u5bb9&#xff0c;\u5c31\u8981\u6539\u53d8 serial\u503c&#xff08;\u53ef\u4ee5\u4e3a2&#xff0c;\u6700\u591a\u6570\u5b57\u4e3a10\u4f4d&#xff09;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf27\u6b21\u3002\u7b80\u4ecb\uff1a\u4e3a\u4e86\u63d0\u9ad8\u57df\u540d\u670d\u52a1\u5668\u7684\u53ef\u9760\u6027\uff0cDNS\u57df\u540d\u670d\u52a1\u5668\u90fd\u628a\u6570\u636e\u590d\u5236\u5230\u51e0\u4e2a\u57df\u540d\u670d\u52a1\u5668\u6765\u4fdd\u5b58\uff0c\u5176\u4e2d\u7684\u4e00\u4e2a\u5c31\u662f\u4e3bDNS\u670d\u52a1\u5668\uff08Master name server\uff09\uff0c\u8d1f\u8d23\u89e3\u6790\u81f3\u5c11\u4e00\u4e2a\u57df\u3002\u200b\t\u5728\u4e0e\u73b0\u6709IPv4\u6839\u670d\u52a1\u5668\u4f53\u7cfb\u67b6\u6784\u5145\u5206\u517c\u5bb9\u57fa\u7840\u4e0a\uff0c\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\uff08\u4e92\u8054\u7f51\u534f\u8bae\u7b2c\u516d\u7248\uff09\u6839\u670d\u52a1\u5668\u67b6\u8bbe\uff0c\u4e8b\u5b9e\u4e0a\u5f62\u6210\u4e8613\u53f0\u539f\u6709\u6839\u52a025\u53f0IPv6\u6839\u7684\u65b0\u683c\u5c40\uff0c\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<\/p>\n","protected":false},"author":2,"featured_media":28458,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-28460","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668- Linux\u4e2d - \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\/28460.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- Linux\u4e2d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf27\u6b21\u3002\u7b80\u4ecb\uff1a\u4e3a\u4e86\u63d0\u9ad8\u57df\u540d\u670d\u52a1\u5668\u7684\u53ef\u9760\u6027\uff0cDNS\u57df\u540d\u670d\u52a1\u5668\u90fd\u628a\u6570\u636e\u590d\u5236\u5230\u51e0\u4e2a\u57df\u540d\u670d\u52a1\u5668\u6765\u4fdd\u5b58\uff0c\u5176\u4e2d\u7684\u4e00\u4e2a\u5c31\u662f\u4e3bDNS\u670d\u52a1\u5668\uff08Master name server\uff09\uff0c\u8d1f\u8d23\u89e3\u6790\u81f3\u5c11\u4e00\u4e2a\u57df\u3002\u200b \u5728\u4e0e\u73b0\u6709IPv4\u6839\u670d\u52a1\u5668\u4f53\u7cfb\u67b6\u6784\u5145\u5206\u517c\u5bb9\u57fa\u7840\u4e0a\uff0c\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\uff08\u4e92\u8054\u7f51\u534f\u8bae\u7b2c\u516d\u7248\uff09\u6839\u670d\u52a1\u5668\u67b6\u8bbe\uff0c\u4e8b\u5b9e\u4e0a\u5f62\u6210\u4e8613\u53f0\u539f\u6709\u6839\u52a025\u53f0IPv6\u6839\u7684\u65b0\u683c\u5c40\uff0c\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\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/28460.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-19T16:31:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419163109-6803cfcdcf80b.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=\"9 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/28460.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/28460.html\",\"name\":\"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668- Linux\u4e2d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T16:31:11+00:00\",\"dateModified\":\"2025-04-19T16:31:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/28460.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/28460.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/28460.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-- Linux\u4e2d\"}]},{\"@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- Linux\u4e2d - \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\/28460.html","og_locale":"zh_CN","og_type":"article","og_title":"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668- Linux\u4e2d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf27\u6b21\u3002\u7b80\u4ecb\uff1a\u4e3a\u4e86\u63d0\u9ad8\u57df\u540d\u670d\u52a1\u5668\u7684\u53ef\u9760\u6027\uff0cDNS\u57df\u540d\u670d\u52a1\u5668\u90fd\u628a\u6570\u636e\u590d\u5236\u5230\u51e0\u4e2a\u57df\u540d\u670d\u52a1\u5668\u6765\u4fdd\u5b58\uff0c\u5176\u4e2d\u7684\u4e00\u4e2a\u5c31\u662f\u4e3bDNS\u670d\u52a1\u5668\uff08Master name server\uff09\uff0c\u8d1f\u8d23\u89e3\u6790\u81f3\u5c11\u4e00\u4e2a\u57df\u3002\u200b \u5728\u4e0e\u73b0\u6709IPv4\u6839\u670d\u52a1\u5668\u4f53\u7cfb\u67b6\u6784\u5145\u5206\u517c\u5bb9\u57fa\u7840\u4e0a\uff0c\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\uff08\u4e92\u8054\u7f51\u534f\u8bae\u7b2c\u516d\u7248\uff09\u6839\u670d\u52a1\u5668\u67b6\u8bbe\uff0c\u4e8b\u5b9e\u4e0a\u5f62\u6210\u4e8613\u53f0\u539f\u6709\u6839\u52a025\u53f0IPv6\u6839\u7684\u65b0\u683c\u5c40\uff0c\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","og_url":"https:\/\/www.wsisp.com\/helps\/28460.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T16:31:11+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419163109-6803cfcdcf80b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"9 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/28460.html","url":"https:\/\/www.wsisp.com\/helps\/28460.html","name":"DNS\u57df\u540d\u89e3\u6790\u670d\u52a1\u5668- Linux\u4e2d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T16:31:11+00:00","dateModified":"2025-04-19T16:31:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/28460.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/28460.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/28460.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-- Linux\u4e2d"}]},{"@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\/28460","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=28460"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/28460\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/28458"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=28460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=28460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=28460"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=28460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}