"도메인명으로 IP 확인"의 두 판 사이의 차이

잔글 (106.244.86.149(토론)의 편집을 61.78.84.138의 마지막 판으로 되돌림)
태그: 일괄 되돌리기
(사용자 9명의 중간 판 29개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;도메인명으로 IP 확인
;도메인명으로 IP 확인
;도메인명으로 IP 주소 찾기
;도메인 이름으로 IP 알아내기
;도메인 이름으로 IP 알아내기
*윈도우에서는 nslookup, ping, tracert와 같은 명령어로 간단히 알 수 있다.
*윈도우에서는 nslookup, ping, tracert와 같은 명령어로 간단히 알 수 있다.


==윈도우==
==윈도우==
===nslookup===
===방법 1: ping===
<source lang='dos'>
<source lang='console'>
C:\Users\jmnote>nslookup google.com
C:\Users\zetawiki>ping google.com
 
Ping google.com [173.194.38.83] 32바이트 데이터 사용:
173.194.38.83의 응답: 바이트=32 시간=34ms TTL=50
173.194.38.83의 응답: 바이트=32 시간=32ms TTL=50
173.194.38.83의 응답: 바이트=32 시간=32ms TTL=50
173.194.38.83의 응답: 바이트=32 시간=32ms TTL=50
 
173.194.38.83에 대한 Ping 통계:
    패킷: 보냄 = 4, 받음 = 4, 손실 = 0 (0% 손실),
왕복 시간(밀리초):
    최소 = 32ms, 최대 = 34ms, 평균 = 32ms
</source>
 
===방법 2: nslookup===
<source lang='console'>
C:\Users\zetawiki>nslookup google.com
서버:    google-public-dns-a.google.com
서버:    google-public-dns-a.google.com
Address:  8.8.8.8
Address:  8.8.8.8


권한 없는 응답:
권한 없는 응답:
이름:    google.com
이름:    www.naver.com
Addresses:  173.194.38.83
Addresses:  173.194.38.83
           173.194.38.84
           173.194.38.84
22번째 줄: 39번째 줄:
:→ 필자는 DNS를 구글 것으로 사용하며, [[구글 DNS]]의 IP는 [[8.8.8.8]]이다.
:→ 필자는 DNS를 구글 것으로 사용하며, [[구글 DNS]]의 IP는 [[8.8.8.8]]이다.


===ping===
===방법 3: tracert===
<source lang='dos'>
<source lang='console'>
C:\Users\jmnote>ping google.com
C:\Users\zetawiki>tracert kt928.com
 
Ping google.com [173.194.38.83] 32바이트 데이터 사용:
173.194.38.83의 응답: 바이트=32 시간=34ms TTL=50
173.194.38.83의 응답: 바이트=32 시간=32ms TTL=50
173.194.38.83의 응답: 바이트=32 시간=32ms TTL=50
173.194.38.83의 응답: 바이트=32 시간=32ms TTL=50
 
173.194.38.83에 대한 Ping 통계:
    패킷: 보냄 = 4, 받음 = 4, 손실 = 0 (0% 손실),
왕복 시간(밀리초):
    최소 = 32ms, 최대 = 34ms, 평균 = 32ms
</source>
 
===tracert===
<source lang='dos'>
C:\Users\jmnote>tracert google.com


최대 30홉 이상의
최대 30홉 이상의
51번째 줄: 52번째 줄:
</source>
</source>


==map.google.com==
==리눅스==
<source lang='dos'>
===방법 1: host===
C:\Users\jmnote>nslookup map.google.com
{{참고|리눅스 host}}
서버:   google-public-dns-a.google.com
<source lang='console'>
Address: 8.8.8.8
[root@zetawiki ~]# host yahoo.com
yahoo.com has address 98.139.183.24
yahoo.com has address 206.190.36.45
yahoo.com has address 98.138.253.109
yahoo.com mail is handled by 1 mta5.am0.yahoodns.net.
yahoo.com mail is handled by 1 mta6.am0.yahoodns.net.
yahoo.com mail is handled by 1 mta7.am0.yahoodns.net.
</source>
 
===방법 2: ping===
<source lang='console'>
[root@zetawiki ~]# ping google.com -c 1
PING google.com (173.194.127.110) 56(84) bytes of data.
64 bytes from hkg03s12-in-f14.1e100.net (173.194.127.110): icmp_seq=1 ttl=52 time=68.7 ms
 
--- google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 133ms
rtt min/avg/max/mdev = 68.767/68.767/68.767/0.000 ms
</source>
:→ 173.194.127.110
 
===방법 3: nslookup===
<source lang='console'>
[root@zetawiki ~]# nslookup google.com
Server: 8.8.8.8
Address: 8.8.8.8#53
 
Non-authoritative answer:
Name: google.com
Address: 173.194.127.102
Name: google.com
Address: 173.194.127.103
Name: google.com
Address: 173.194.127.98
Name: google.com
Address: 173.194.127.110
Name: google.com
Address: 173.194.127.99
Name: google.com
Address: 173.194.127.104
Name: google.com
Address: 173.194.127.101
Name: google.com
Address: 173.194.127.97
Name: google.com
Address: 173.194.127.105
Name: google.com
Address: 173.194.127.100
Name: google.com
Address: 173.194.127.96
</source>
 
===방법 4: dig===
<source lang='console'>
[root@zetawiki ~]# dig any google.com
;; Truncated, retrying in TCP mode.
 
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6 <<>> any google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21523
;; flags: qr rd ra; QUERY: 1, ANSWER: 24, AUTHORITY: 0, ADDITIONAL: 0
 
;; QUESTION SECTION:
;google.com. IN ANY
 
;; ANSWER SECTION:
google.com. 300 IN A 173.194.127.103
google.com. 300 IN A 173.194.127.98
google.com. 300 IN A 173.194.127.99
google.com. 300 IN A 173.194.127.96
google.com. 300 IN A 173.194.127.100
google.com. 300 IN A 173.194.127.110
google.com. 300 IN A 173.194.127.105
google.com. 300 IN A 173.194.127.104
google.com. 300 IN A 173.194.127.101
google.com. 300 IN A 173.194.127.97
google.com. 300 IN A 173.194.127.102
google.com. 300 IN AAAA 2404:6800:4005:803::1005
google.com. 21600 IN NS ns2.google.com.
google.com. 21600 IN NS ns4.google.com.
google.com. 600 IN MX 50 alt4.aspmx.l.google.com.
google.com. 21600 IN SOA ns1.google.com. dns-admin.google.com. 2013100300 7200 1800 1209600 300
google.com. 21600 IN NS ns1.google.com.
google.com. 600 IN MX 10 aspmx.l.google.com.
google.com. 3600 IN TXT "v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"
google.com. 600 IN MX 30 alt2.aspmx.l.google.com.
google.com. 21600 IN TYPE257 \# 19 0005697373756573796D616E7465632E636F6D
google.com. 600 IN MX 20 alt1.aspmx.l.google.com.
google.com. 600 IN MX 40 alt3.aspmx.l.google.com.
google.com. 21600 IN NS ns3.google.com.


권한 없는 응답:
;; Query time: 78 msec
이름:    maps.l.google.com
;; SERVER: 8.8.8.8#53(8.8.8.8)
Addresses: 173.194.38.66
;; WHEN: Sat Dec 7 08:48:50 2013
          173.194.38.68
;; MSG SIZE  rcvd: 577
          173.194.38.67
          173.194.38.64
          173.194.38.65
          173.194.38.71
          173.194.38.69
          173.194.38.72
          173.194.38.76
          173.194.38.75
          173.194.38.74
          173.194.38.73
          173.194.38.79
          173.194.38.77
          173.194.38.70
          173.194.38.78
Aliasesmap.google.com
          maps.google.com
</source>
</source>
:→ 16개의 IP로 분산처리되며, 내 요청을 처리해주는 IP는 173.194.38.66이다.
:→ map.google.com, maps.google.com, maps.l.google.com은 모두 같은 도메인이라고 할 수 있다.
:→ 서브도메인인 map.google.com은 google.com과는 IP 대역이 다르다. 즉 요청을 처리해주는 IP가 다르다.


==같이 보기==
==같이 보기==
*[[IP로 도메인 이름 알아내기]]
*[[IP로 도메인 이름 알아내기]]
*[[리눅스 특정 DNS로 도메인 조회‎]]
*[[윈도우 ping]]
*[[윈도우 ping]]
*[[/usr/bin/dig]]
*[[/usr/bin/host]]
*[[DNS]]
*[[도메인명]]
*[[IP 주소]]


[[분류:네트워크]]
[[분류:네트워크]]

2020년 1월 23일 (목) 17:32 판

1 개요

도메인명으로 IP 확인
도메인명으로 IP 주소 찾기
도메인 이름으로 IP 알아내기
  • 윈도우에서는 nslookup, ping, tracert와 같은 명령어로 간단히 알 수 있다.

2 윈도우

2.1 방법 1: ping

C:\Users\zetawiki>ping google.com

Ping google.com [173.194.38.83] 32바이트 데이터 사용:
173.194.38.83의 응답: 바이트=32 시간=34ms TTL=50
173.194.38.83의 응답: 바이트=32 시간=32ms TTL=50
173.194.38.83의 응답: 바이트=32 시간=32ms TTL=50
173.194.38.83의 응답: 바이트=32 시간=32ms TTL=50

173.194.38.83에 대한 Ping 통계:
    패킷: 보냄 = 4, 받음 = 4, 손실 = 0 (0% 손실),
왕복 시간(밀리초):
    최소 = 32ms, 최대 = 34ms, 평균 = 32ms

2.2 방법 2: nslookup

C:\Users\zetawiki>nslookup google.com
서버:    google-public-dns-a.google.com
Address:  8.8.8.8

권한 없는 응답:
이름:    www.naver.com
Addresses:  173.194.38.83
          173.194.38.84
          173.194.38.80
          173.194.38.81
          173.194.38.82
→ google.com은 5개의 IP로 분산처리(Load Balancing)되며 내 요청에 응답하는 IP는 173.194.38.83이다.
→ 필자는 DNS를 구글 것으로 사용하며, 구글 DNS의 IP는 8.8.8.8이다.

2.3 방법 3: tracert

C:\Users\zetawiki>tracert kt928.com

최대 30홉 이상의
google.com [173.194.38.83](으)로 가는 경로 추적:

  1     2 ms   154 ms     1 ms  192.168.0.1
...(중략)...

추적을 완료했습니다.

3 리눅스

3.1 방법 1: host

[root@zetawiki ~]# host yahoo.com
yahoo.com has address 98.139.183.24
yahoo.com has address 206.190.36.45
yahoo.com has address 98.138.253.109
yahoo.com mail is handled by 1 mta5.am0.yahoodns.net.
yahoo.com mail is handled by 1 mta6.am0.yahoodns.net.
yahoo.com mail is handled by 1 mta7.am0.yahoodns.net.

3.2 방법 2: ping

[root@zetawiki ~]# ping google.com -c 1
PING google.com (173.194.127.110) 56(84) bytes of data.
64 bytes from hkg03s12-in-f14.1e100.net (173.194.127.110): icmp_seq=1 ttl=52 time=68.7 ms

--- google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 133ms
rtt min/avg/max/mdev = 68.767/68.767/68.767/0.000 ms
→ 173.194.127.110

3.3 방법 3: nslookup

[root@zetawiki ~]# nslookup google.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	google.com
Address: 173.194.127.102
Name:	google.com
Address: 173.194.127.103
Name:	google.com
Address: 173.194.127.98
Name:	google.com
Address: 173.194.127.110
Name:	google.com
Address: 173.194.127.99
Name:	google.com
Address: 173.194.127.104
Name:	google.com
Address: 173.194.127.101
Name:	google.com
Address: 173.194.127.97
Name:	google.com
Address: 173.194.127.105
Name:	google.com
Address: 173.194.127.100
Name:	google.com
Address: 173.194.127.96

3.4 방법 4: dig

[root@zetawiki ~]# dig any google.com
;; Truncated, retrying in TCP mode.

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6 <<>> any google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21523
;; flags: qr rd ra; QUERY: 1, ANSWER: 24, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com.			IN	ANY

;; ANSWER SECTION:
google.com.		300	IN	A	173.194.127.103
google.com.		300	IN	A	173.194.127.98
google.com.		300	IN	A	173.194.127.99
google.com.		300	IN	A	173.194.127.96
google.com.		300	IN	A	173.194.127.100
google.com.		300	IN	A	173.194.127.110
google.com.		300	IN	A	173.194.127.105
google.com.		300	IN	A	173.194.127.104
google.com.		300	IN	A	173.194.127.101
google.com.		300	IN	A	173.194.127.97
google.com.		300	IN	A	173.194.127.102
google.com.		300	IN	AAAA	2404:6800:4005:803::1005
google.com.		21600	IN	NS	ns2.google.com.
google.com.		21600	IN	NS	ns4.google.com.
google.com.		600	IN	MX	50 alt4.aspmx.l.google.com.
google.com.		21600	IN	SOA	ns1.google.com. dns-admin.google.com. 2013100300 7200 1800 1209600 300
google.com.		21600	IN	NS	ns1.google.com.
google.com.		600	IN	MX	10 aspmx.l.google.com.
google.com.		3600	IN	TXT	"v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"
google.com.		600	IN	MX	30 alt2.aspmx.l.google.com.
google.com.		21600	IN	TYPE257	\# 19 0005697373756573796D616E7465632E636F6D
google.com.		600	IN	MX	20 alt1.aspmx.l.google.com.
google.com.		600	IN	MX	40 alt3.aspmx.l.google.com.
google.com.		21600	IN	NS	ns3.google.com.

;; Query time: 78 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Dec  7 08:48:50 2013
;; MSG SIZE  rcvd: 577

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}