[Shell] DNS lookup 커맨드

by 스뎅(thDeng) on

nslookup

$ nslookup daum.net
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	daum.net
Address: 203.133.167.16
Name:	daum.net
Address: 211.231.99.17
Name:	daum.net
Address: 203.133.167.81
Name:	daum.net
Address: 211.231.99.80

dig

짧게

$ dig +short daum.net
203.133.167.16
211.231.99.17
203.133.167.81
211.231.99.80

자세하게

$ dig daum.net

; <<>> DiG 9.10.6 <<>> daum.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37676
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;daum.net.			IN	A

;; ANSWER SECTION:
daum.net.		247	IN	A	203.133.167.16
daum.net.		247	IN	A	203.133.167.81
daum.net.		247	IN	A	211.231.99.17
daum.net.		247	IN	A	211.231.99.80

;; Query time: 77 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Jul 27 17:37:14 KST 2021
;; MSG SIZE  rcvd: 101
별도로 명시하지 않을 경우, 이 블로그의 포스트는 다음 라이선스에 따라 사용할 수 있습니다: Creative Commons License CC Attribution-NonCommercial-ShareAlike 4.0 International License