linux

dig명령으로 도메인 응답 추적하기

mysop 2022. 4. 27. 17:08
반응형

보통 nslookup로 도메인 응답을 체크를 많이 합니다.

 

그리고 dig라는 명령으로도 확인가능한데

 

도메인 응답되는 내역을 추적하는 방법이 있습니다.

 

# dig +trace and.kr

; <<>> DiG 9.8.2rc1-geoip-1.4-RedHat-9.8.2-0.68.rc1.an2.11 <<>> +trace and.kr
;; global options: +cmd
.			360158	IN	NS	f.root-servers.net.
.			360158	IN	NS	m.root-servers.net.
.			360158	IN	NS	b.root-servers.net.
.			360158	IN	NS	k.root-servers.net.
.			360158	IN	NS	j.root-servers.net.
.			360158	IN	NS	d.root-servers.net.
.			360158	IN	NS	l.root-servers.net.
.			360158	IN	NS	h.root-servers.net.
.			360158	IN	NS	c.root-servers.net.
.			360158	IN	NS	e.root-servers.net.
.			360158	IN	NS	g.root-servers.net.
.			360158	IN	NS	i.root-servers.net.
.			360158	IN	NS	a.root-servers.net.
;; Received 492 bytes from 168.126.63.1#53(168.126.63.1) in 27 ms

kr.			172800	IN	NS	c.dns.kr.
kr.			172800	IN	NS	f.dns.kr.
kr.			172800	IN	NS	g.dns.kr.
kr.			172800	IN	NS	d.dns.kr.
kr.			172800	IN	NS	b.dns.kr.
kr.			172800	IN	NS	e.dns.kr.
;; Received 332 bytes from 192.33.4.12#53(192.33.4.12) in 148 ms

and.kr.			86400	IN	NS	hera.ns.cloudflare.com.
and.kr.			86400	IN	NS	brady.ns.cloudflare.com.
;; Received 80 bytes from 210.101.62.1#53(210.101.62.1) in 12 ms

and.kr.			300	IN	A	175.207.12.68
;; Received 40 bytes from 108.162.192.162#53(108.162.192.162) in 3 ms

도메인 응답을 추적하여 자세히 볼수 있다

반응형
1 2 3 4 5 6 7 8 9 ··· 120