{"id":1960,"date":"2019-05-13T00:03:39","date_gmt":"2019-05-12T16:03:39","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1960"},"modified":"2019-05-13T00:03:41","modified_gmt":"2019-05-12T16:03:41","slug":"host","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/host","title":{"rendered":"host\u547d\u4ee4 – \u57df\u540d\u67e5\u8be2"},"content":{"rendered":"\n

host\u547d\u4ee4\u662f\u4e00\u4e2a\u7528\u4e8e\u6267\u884cDNS\u67e5\u627e\u7684\u7b80\u5355\u5b9e\u7528\u7a0b\u5e8f\u3002\u5b83\u901a\u5e38\u7528\u4e8e\u5c06\u540d\u79f0\u8f6c\u6362\u4e3aIP\u5730\u5740\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002 \u5982\u679c\u6ca1\u6709\u7ed9\u51fa\u53c2\u6570\u6216\u9009\u9879\uff0chost\u5c06\u6253\u5370\u5176\u547d\u4ee4\u884c\u53c2\u6570\u548c\u9009\u9879\u7684\u7b80\u77ed\u6458\u8981\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a <\/strong>host [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-a<\/td>\u663e\u793a\u8be6\u7ec6\u7684DNS\u4fe1\u606f <\/td><\/tr>
-c<\/td>\u6307\u5b9a\u67e5\u8be2\u7c7b\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a\u201cIN\u201d<\/td><\/tr>
-C<\/td>\u67e5\u8be2\u6307\u5b9a\u4e3b\u673a\u7684\u5b8c\u6574\u7684SOA\u8bb0\u5f55<\/td><\/tr>
-r<\/td>\u4e0d\u4f7f\u7528\u9012\u5f52\u7684\u67e5\u8be2\u65b9\u5f0f\u67e5\u8be2\u57df\u540d<\/td><\/tr>
-t<\/td>\u6307\u5b9a\u67e5\u8be2\u7684\u57df\u540d\u4fe1\u606f\u7c7b\u578b<\/td><\/tr>
-v<\/td>\u663e\u793a\u6307\u4ee4\u6267\u884c\u7684\u8be6\u7ec6\u4fe1\u606f<\/td><\/tr>
-w<\/td>\u5982\u679c\u57df\u540d\u670d\u52a1\u5668\u6ca1\u6709\u7ed9\u51fa\u5e94\u7b54\u4fe1\u606f\uff0c\u5219\u603b\u662f\u7b49\u5f85\uff0c\u76f4\u5230\u57df\u540d\u670d\u52a1\u5668\u7ed9\u51fa\u5e94\u7b54<\/td><\/tr>
-W<\/td>\u6307\u5b9a\u57df\u540d\u67e5\u8be2\u7684\u6700\u957f\u65f6\u95f4\uff0c\u5982\u679c\u5728\u6307\u5b9a\u65f6\u95f4\u5185\u57df\u540d\u670d\u52a1\u5668\u6ca1\u6709\u7ed9\u51fa\u5e94\u7b54\u4fe1\u606f\u5219\u9000\u51fa<\/td><\/tr>
-4<\/td>\u4f7f\u7528IPv4\u67e5\u8be2\u4f20\u8f93 \uff08\u9ed8\u8ba4\uff09<\/td><\/tr>
-6<\/td>\u4f7f\u7528IPv6\u67e5\u8be2\u4f20\u8f93<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u8be2\u57df\u540d\u5bf9\u5e94\u7684IP\u5730\u5740\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# host linuxcool.com<\/pre>\n\n\n\n

\u663e\u793a\u6267\u884c\u57df\u540d\u67e5\u8be2\u7684\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# host -v linuxcool.com<\/pre>\n\n\n\n

\u67e5\u8be2\u57df\u540d\u7684MX\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# host -t MX linuxcool.com<\/pre>\n","protected":false},"excerpt":{"rendered":"

host\u547d\u4ee4\u662f\u4e00\u4e2a\u7528\u4e8e\u6267\u884cDNS\u67e5\u627e\u7684\u7b80\u5355\u5b9e\u7528\u7a0b\u5e8f\u3002\u5b83\u901a\u5e38\u7528\u4e8e\u5c06\u540d\u79f0\u8f6c\u6362\u4e3aIP\u5730\u5740\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002 \u5982\u679c\u6ca1\u6709\u7ed9\u51fa\u53c2 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1960"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=1960"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1960\/revisions"}],"predecessor-version":[{"id":1992,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1960\/revisions\/1992"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}