{"id":1882,"date":"2019-05-10T23:11:10","date_gmt":"2019-05-10T15:11:10","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1882"},"modified":"2019-05-11T12:20:56","modified_gmt":"2019-05-11T04:20:56","slug":"nslookup","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/nslookup","title":{"rendered":"nslookup\u547d\u4ee4 – \u57df\u540d\u67e5\u8be2"},"content":{"rendered":"\n

nslookup\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u4e3a \u201cquery Internet name server interactively \u201d\u3002nslookup\u547d\u4ee4\u4e3b\u8981\u7528\u6765\u67e5\u8be2\u57df\u540d\u7684DNS\u4fe1\u606f\u3002\u5728\u4f7f\u7528nslookup\u4e4b\u524d\uff0c\u5148\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86\u5b83\uff0cnslookup\u5c5e\u4e8ebind-utils\u5305\u4e0b\u4e00\u4e2a\u547d\u4ee4 \u3002<\/p>\n\n\n\n

nslookup\u6709\u4e24\u79cd\u5de5\u4f5c\u6a21\u5f0f\uff1a\u201c\u4ea4\u4e92\u6a21\u5f0f\u201d\u548c\u201c\u975e\u4ea4\u4e92\u6a21\u5f0f\u201d\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8f93\u5165nslookup\uff0c\u65e0\u9700\u8f93\u5165\u4efb\u4f55\u53c2\u6570\u5373\u8fdb\u5165\u4ea4\u4e92\u6a21\u5f0f\uff0c\u7531\u201c>\u201d<\/strong>\u63d0\u793a\u3002 <\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-sil<\/td>\u4e0d\u663e\u793a\u4efb\u4f55\u8b66\u544a\u4fe1\u606f<\/td><\/tr>
exit<\/td>\u9000\u51fa\u547d\u4ee4<\/td><\/tr>
server<\/td>\u6307\u5b9a\u89e3\u6790\u57df\u540d\u7684\u670d\u52a1\u5668\u5730\u5740<\/td><\/tr>
set type=soa<\/td>\u8bbe\u7f6e\u67e5\u8be2\u57df\u540d\u6388\u6743\u8d77\u59cb\u4fe1\u606f<\/td><\/tr>
set type=a<\/td>\u8bbe\u7f6e\u67e5\u8be2\u57df\u540dA\u8bb0\u5f55<\/td><\/tr>
set type=mx <\/td>\u8bbe\u7f6e\u67e5\u8be2\u57df\u540d\u90ae\u4ef6\u4ea4\u6362\u8bb0\u5f55 <\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u5728\u975e\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u67e5\u8be2\u57df\u540d\u57fa\u672c\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nslookup linuxcool.com\nServer:         180.76.76.76\nAddress:        180.76.76.76#53\nNon-authoritative answer:\nName:    linuxcool.com \nAddress: 216.218.186.2\nName:    linuxcool.com\nAddress: 2001:470:0:76::2<\/pre>\n\n\n\n

\u8fdb\u5165\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u67e5\u8be2\u57df\u540d\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nslookup\n>linuxcool.com\nServer:         180.76.76.76\nAddress:        180.76.76.76#53 \n\nNon-authoritative answer:\nName:   linuxcool.com\nAddress: 216.218.186.2\nName:   linuxcool.com\nAddress: 2001:470:0:76::2\n><\/pre>\n\n\n\n

\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u4f7f\u7528\u201cset\u201d\u9009\u9879\u8bbe\u7f6e\u57df\u540d\u67e5\u8be2\u7c7b\u578b\u8fdb\u884c\u67e5\u8be2\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nslookup\n>set type=mx     \n>linuxcool.com\nServer:         180.76.76.76\nAddress:        180.76.76.76#53 \n\nNon-authoritative answer:\nlinuxcool.com  mail exchanger = 1 linuxcool.com.\n\nAuthoritative answers can be found from:\nlinuxcool.com  internet address = 216.218.186.2\nlinuxcool.com  has AAAA address 2001:470:0:76::2<\/pre>\n","protected":false},"excerpt":{"rendered":"

nslookup\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u4e3a \u201cquery Internet name server interactiv […]<\/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\/1882"}],"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=1882"}],"version-history":[{"count":11,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1882\/revisions"}],"predecessor-version":[{"id":1962,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1882\/revisions\/1962"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}