본문 바로가기

리눅스

nslookup 명령어

반응형

nslookup 명령어

nslookup 사용법

nslookup /?

n1
n2

Default server 네임서버 지정

server 168.126.63.1
$ nslookup
> server 168.126.63.1
Default server: 168.126.63.1
Address: 168.126.63.1#53
>

mx 레코드 확인

set type=mx

(또는)

 set q=mx
$ nslookup
> set type=mx
> google.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
google.com	mail exchanger = 10 aspmx.l.google.com.
google.com	mail exchanger = 50 alt4.aspmx.l.google.com.
google.com	mail exchanger = 40 alt3.aspmx.l.google.com.
google.com	mail exchanger = 20 alt1.aspmx.l.google.com.
google.com	mail exchanger = 30 alt2.aspmx.l.google.com.

Authoritative answers can be found from:
>

SPF레코드 확인

set type=txt
$ nslookup
> set type=txt
> google.com
;; Truncated, retrying in TCP mode.
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
google.com	text = "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289"
google.com	text = "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="
google.com	text = "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ"
google.com	text = "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o"
google.com	text = "v=spf1 include:_spf.google.com ~all"
google.com	text = "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e"
google.com	text = "facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95"
google.com	text = "apple-domain-verification=30afIBcvSuDV2PLX"
google.com	text = "MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB"

Authoritative answers can be found from:
>
728x90

Default server 네임서버 지정

nslookup google.com 168.126.63.1
$ nslookup google.com 168.126.63.1
Server:		168.126.63.1
Address:	168.126.63.1#53

Non-authoritative answer:
Name:	google.com
Address: 216.58.220.206
Name:	google.com
Address: 2404:6800:4005:80d::200e

mx 레코드 확인

nslookup -querytype=mx google.com
$ nslookup -querytype=mx google.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
google.com	mail exchanger = 10 aspmx.l.google.com.
google.com	mail exchanger = 50 alt4.aspmx.l.google.com.
google.com	mail exchanger = 40 alt3.aspmx.l.google.com.
google.com	mail exchanger = 20 alt1.aspmx.l.google.com.
google.com	mail exchanger = 30 alt2.aspmx.l.google.com.

Authoritative answers can be found from:

SPF 레코드 확인

nslookup -querytype=txt google.com
$ nslookup -querytype=txt google.com
;; Truncated, retrying in TCP mode.
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
google.com	text = "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ"
google.com	text = "MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB"
google.com	text = "apple-domain-verification=30afIBcvSuDV2PLX"
google.com	text = "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e"
google.com	text = "facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95"
google.com	text = "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289"
google.com	text = "v=spf1 include:_spf.google.com ~all"
google.com	text = "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="
google.com	text = "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o"

Authoritative answers can be found from:

 

728x90
반응형