Child pages
  • nslookup 명령어 사용법 및 예제 정리

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ nslookup -query=mx google.com

Server:         192.168.152.2
Address:        192.168.152.2#53
Non-authoritative answer:
google.com      mail exchanger = 20 alt1.aspmx.l.google.com.
google.com      mail exchanger = 30 alt2.aspmx.l.google.com.
google.com      mail exchanger = 40 alt3.aspmx.l.google.com.
google.com      mail exchanger = 10 aspmx.l.google.com.
google.com      mail exchanger = 50 alt4.aspmx.l.google.com.
Authoritative answers can be found from:


CNAME 조회

Code Block
$  nslookup -q=cname example.com



NS 레코드로 DNS 목록 확인

Code Block
$ nslookup -type=ns google.com 

Server:         192.168.152.2
Address:        192.168.152.2#53
Non-authoritative answer:
google.com      nameserver = ns1.google.com.
google.com      nameserver = ns3.google.com.
google.com      nameserver = ns2.google.com.
google.com      nameserver = ns4.google.com.
Authoritative answers can be found from:

...