{"id":527807,"date":"2020-06-20T12:52:50","date_gmt":"2020-06-20T04:52:50","guid":{"rendered":"https:\/\/loyseo.com\/tutorial\/domain-name\/%e5%a6%82%e4%bd%95%e4%bf%ae%e6%94%b9hosts%e6%aa%94%e4%bb%a5%e8%a8%ad%e7%bd%ae%e5%8a%9f%e8%83%bd%e8%ae%8a%e6%95%b8%e5%90%8d%e7%a8%b1%e6%8c%87%e5%90%91\/"},"modified":"2023-08-24T18:15:28","modified_gmt":"2023-08-24T10:15:28","slug":"how-to-modify-hosts-file-to-configure-dns","status":"publish","type":"tutorial","link":"https:\/\/loyseo.com\/zh-hant\/tutorial\/domain-name\/how-to-modify-hosts-file-to-configure-dns\/","title":{"rendered":"\u5982\u4f55\u4fee\u6539Hosts\u6a94\u4ee5\u8a2d\u7f6e\u7db2\u57df\u6307\u5411"},"content":{"rendered":"\n<p>\u7576\u7db2\u57df\u672a\u5728\u7db2\u57df\u8a3b\u518a\u5546\u8655\u8a2d\u7f6e\u89e3\u6790\u6642\uff0c\u70ba\u4e86\u80fd\u5920\u81ea\u5df1\u8a2a\u554f\u7db2\u7ad9\uff0c\u4ee5\u4fbf\u7db2\u7ad9\u642c\u5bb6\u6216\u6e2c\u8a66\uff0c\u53ef\u4ee5\u901a\u904e\u5728\u81ea\u5df1\u96fb\u8166\u4e2d\u7d66Hosts\u6a94\u589e\u52a0\u7db2\u57df\u6307\u5411\u4f86\u5be6\u73fe;<\/p>\n\n<p>\u5982\u679c\u4f60\u9700\u8981\u5176\u4ed6\u670b\u53cb\u3001\u540c\u4e8b\u3001\u5ba2\u6236\u4e5f\u80fd\u5920\u8a2a\u554f\uff0c\u90a3\u4e5f\u662f\u540c\u7406\u64cd\u4f5c\uff0c\u6bcf\u53f0\u96fb\u8166\u90fd\u76f8\u61c9\u6dfb\u52a0\u57df\u540d\u6307\u5411\uff0c\u5177\u9ad4\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n\n<h2 class=\"wp-block-heading\">Windows\u7cfb\u7d71\u5982\u4f55\u4fee\u6539Hosts\u6a94<\/h2>\n\n<p>STEP1\uff1a\u5982\u4e0b\u5716\u6240\u793a\uff0c\u627e\u5230\u8a18\u4e8b\u672c\u4e26\u53f3\u9375\u9078\u64c7\u201c\u4ee5\u7ba1\u7406\u54e1\u8eab\u4efd\u904b\u884c\u201d\uff0c\u5982\u7cfb\u7d71\u63d0\u793a\uff1a\u201c\u5141\u8a31\u6b64\u61c9\u7528\u5c0d\u4f60\u7684\u8a2d\u5099\u9032\u884c\u4fee\u6539\u55ce\u201d\uff0c\u8acb\u9078\u64c7\u201c\u662f\u201d\uff0c\u7136\u5f8c\u8a18\u4e8b\u672c\u5c07\u6253\u958b<\/p>\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"401\" height=\"672\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/06\/modify-hosts-file-tutorial.png\" alt=\"modify hosts file tutorial\" class=\"wp-image-502615\" title=\"-\"><\/figure>\n\n<p>STEP2\uff1a\u5728\u8a18\u4e8b\u672c\u4e2d\uff0c\u6309\u4e0b\u5716\u5e8f\u865f\u6240\u793a\u4f9d\u6b21\u64cd\u4f5c\uff1a\u9078\u64c7\u5de6\u4e0a\u89d2\u6a94\u300b\u6253\u958b\u8cc7\u6599\u593eC\uff1a\\Windows\\System32\\drivers\\etc\uff0c\u5c07\u53f3\u4e0b\u89d2\u7684\u6a94\u985e\u578b\u9078\u70ba\u201c\u6240\u6709\u6a94\u201d\uff0c\u7136\u5f8c\u518d\u9ede\u9078\u201chosts\u201d\u6253\u958b\u3002<\/p>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1138\" height=\"639\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/06\/modify-hosts-file-tutorial-2-.png\" alt=\"modify hosts file tutorial 2\" class=\"wp-image-502618\" title=\"-\"><figcaption>modify hosts file tutorial 2<\/figcaption><\/figure>\n\n<p>STEP3\uff1a\u5728\u5df2\u6709\u5167\u5bb9\u672b\u5c3e\u589e\u52a0\u7db2\u57df\u6307\u5411\u8a18\u9304\uff0c\u683c\u5f0f\u70ba\uff1a\u4f60\u7684\u4f3a\u670d\u5668IP[\u7a7a\u683c]\u4f60\u7684\u7db2\u7ad9\u7db2\u57df\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n\n<pre class=\"wp-block-code\"><code>127.0.0.1 loyseo.com\n127.0.0.1 www.loyseo.com<\/code><\/pre>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1138\" height=\"591\" src=\"https:\/\/loyseo.com\/wp-content\/uploads\/2020\/06\/modify-hosts-file-tutorial-3-.png\" alt=\"modify hosts file tutorial 3\" class=\"wp-image-502621\" title=\"-\"><\/figure>\n\n<p>STEP4\uff1a\u6dfb\u52a0\u5b8c\u6210\u5f8c\u4fdd\u5b58hosts\u6a94\uff0c\u4e0d\u8981\u7528\u53e6\u5b58\u70ba\u54e6~\uff0c\u7136\u5f8c\u6253\u958b\u700f\u89bd\u5668\u8a2a\u554f\u7db2\u7ad9\uff0c\u5c31\u80fd\u770b\u5230\u7db2\u7ad9\u5566\u3002<\/p>\n\n<p>\u82e5\u7db2\u7ad9\u642c\u904b\u6216\u6e2c\u8a66\u5b8c\u6210\u5f8c\uff0c\u8acb\u53bb\u505a<a href=\"https:\/\/loyseo.com\/zh-hant\/build-website-with-elementor\/#elementor-toc__heading-anchor-5\" class=\"rank-math-link\">\u7db2\u57df\u89e3\u6790<\/a>\uff0c\u540c\u6642\u5c07Hosts\u6a94\u4e2d\u7684\u7db2\u57df\u6307\u5411\u8a18\u9304\u522a\u9664\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">MAC\u7cfb\u7d71\u5982\u4f55\u4fee\u6539Hosts\u6a94<\/h2>\n\n<p>\u6211\u5c0dMAC\u7cfb\u7d71\u9084\u4e0d\u719f\uff0c\u8acb\u524d\u5f80\u5982\u4e0b\u535a\u6587\u4e2d\u67e5\u770b\u8a2d\u7f6e\u65b9\u6cd5\uff1a<a href=\"https:\/\/blog.csdn.net\/qq_41162289\/article\/details\/80239468\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener nofollow\" class=\"rank-math-link\">https:\/\/blog.csdn.net\/qq_41162289\/article\/details\/80239468<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7576\u7db2\u57df\u672a\u5728\u7db2\u57df\u8a3b\u518a\u5546\u8655\u8a2d\u7f6e\u89e3\u6790\u6642\uff0c\u70ba\u4e86\u80fd\u5920\u81ea\u5df1\u8a2a\u554f\u7db2\u7ad9\uff0c\u4ee5\u4fbf\u7db2\u7ad9\u642c\u5bb6\u6216\u6e2c\u8a66\uff0c\u53ef\u4ee5\u901a\u904e\u5728\u81ea\u5df1\u96fb\u8166\u4e2d\u7d66Hosts\u6a94\u589e\u52a0\u7db2\u57df\u6307\u5411\u4f86\u5be6\u73fe; \u5982\u679c\u4f60\u9700\u8981\u5176\u4ed6\u670b\u53cb\u3001\u540c\u4e8b\u3001\u5ba2\u6236\u4e5f\u80fd\u5920\u8a2a\u554f\uff0c\u90a3\u4e5f\u662f\u540c\u7406\u64cd\u4f5c\uff0c\u6bcf\u53f0\u96fb\u8166\u90fd\u76f8\u61c9\u6dfb\u52a0\u57df\u540d\u6307\u5411\uff0c\u5177\u9ad4\u65b9\u6cd5\u5982\u4e0b\uff1a Windows\u7cfb\u7d71\u5982\u4f55\u4fee\u6539Hosts\u6a94 STEP1\uff1a\u5982\u4e0b\u5716\u6240\u793a\uff0c\u627e\u5230\u8a18\u4e8b\u672c\u4e26\u53f3\u9375\u9078\u64c7\u201c\u4ee5\u7ba1\u7406\u54e1\u8eab\u4efd\u904b\u884c\u201d\uff0c\u5982\u7cfb\u7d71\u63d0\u793a\uff1a\u201c\u5141\u8a31\u6b64\u61c9\u7528\u5c0d\u4f60\u7684\u8a2d\u5099\u9032\u884c\u4fee\u6539\u55ce\u201d\uff0c\u8acb\u9078\u64c7\u201c\u662f\u201d [&hellip;]<\/p>\n","protected":false},"featured_media":0,"parent":527723,"menu_order":369,"comment_status":"open","ping_status":"closed","template":"","hf_cat_tutorial":[],"class_list":["post-527807","tutorial","type-tutorial","status-publish","hentry"],"acf":[],"taxonomy_info":[],"featured_image_src_large":false,"author_info":[],"comment_info":0,"_links":{"self":[{"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/tutorial\/527807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/types\/tutorial"}],"replies":[{"embeddable":true,"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/comments?post=527807"}],"version-history":[{"count":0,"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/tutorial\/527807\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/tutorial\/527723"}],"wp:attachment":[{"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/media?parent=527807"}],"wp:term":[{"taxonomy":"hf_cat_tutorial","embeddable":true,"href":"https:\/\/loyseo.com\/zh-hant\/wp-json\/wp\/v2\/hf_cat_tutorial?post=527807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}