"IP로 도메인 이름 알아내기"의 두 판 사이의 차이

 
(사용자 5명의 중간 판 11개는 보이지 않습니다)
9번째 줄: 9번째 줄:
==윈도우==
==윈도우==
===방법 1: nslookup===
===방법 1: nslookup===
<source lang='cli'>
<source lang='console'>
C:\Users\zetawiki>nslookup 8.8.8.8
C:\Users\zetawiki>nslookup 8.8.8.8
서버:    google-public-dns-a.google.com
서버:    google-public-dns-a.google.com
18번째 줄: 18번째 줄:
</source>
</source>


<source lang='cli'>
<source lang='console'>
C:\Users\zetawiki>nslookup 98.139.127.62
C:\Users\zetawiki>nslookup 98.139.127.62
서버:    google-public-dns-a.google.com
서버:    google-public-dns-a.google.com
28번째 줄: 28번째 줄:


===방법 2: tracert===
===방법 2: tracert===
<source lang='cli'>
<source lang='console'>
C:\Users\zetawiki>tracert 98.139.127.62
C:\Users\zetawiki>tracert 98.139.127.62


40번째 줄: 40번째 줄:
==리눅스==
==리눅스==
===방법 1: ipcalc===
===방법 1: ipcalc===
<source lang='cli'>
<source lang='console'>
[root@zetawiki ~]# ipcalc -h 8.8.8.8
[root@zetawiki ~]# ipcalc -h 8.8.8.8
HOSTNAME=google-public-dns-a.google.com
HOSTNAME=google-public-dns-a.google.com
</source>
</source>


===방법 2: nslookup===
===방법 2: dig===
<source lang='cli'>
<source lang='console'>
[root@zetawiki ~]# nslookup 8.8.8.8
[root@zetawiki ~]# dig +short -x 8.8.8.8
Server: 8.8.8.8
google-public-dns-a.google.com.
Address: 8.8.8.8#53
</source>
 
===방법 3: nslookup===
<source lang='console'>
[root@zetawiki ~]# nslookup 8.8.8.8
Server: 192.168.245.2
Address: 192.168.245.2#53


Non-authoritative answer:
Non-authoritative answer:
55번째 줄: 61번째 줄:


Authoritative answers can be found from:
Authoritative answers can be found from:
8.8.8.in-addr.arpa nameserver = ns3.google.com.
8.8.8.in-addr.arpa nameserver = ns1.google.com.
8.8.8.in-addr.arpa nameserver = ns4.google.com.
8.8.8.in-addr.arpa nameserver = ns2.google.com.
ns1.google.com internet address = 216.239.32.10
ns2.google.com internet address = 216.239.34.10
ns3.google.com internet address = 216.239.36.10
ns4.google.com internet address = 216.239.38.10
</source>
</source>


===방법 3: traceroute===
===방법 4: traceroute===
<source lang='cli'>
<source lang='console'>
[root@zetawiki ~]# traceroute 8.8.8.8
[root@zetawiki ~]# traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
69번째 줄: 83번째 줄:
==못 찾는 경우==
==못 찾는 경우==
도메인으로 IP를 찾는 일은 항상 가능하지만, IP로 도메인을 찾는 일은 항상 가능한 것은 아니다.<ref>IP만 있고, 도메인과 연결하지 않은 컴퓨터도 있기 때문이다.</ref>
도메인으로 IP를 찾는 일은 항상 가능하지만, IP로 도메인을 찾는 일은 항상 가능한 것은 아니다.<ref>IP만 있고, 도메인과 연결하지 않은 컴퓨터도 있기 때문이다.</ref>
<source lang='cli'>
<source lang='console'>
C:\Users\zetawiki>nslookup naver.com
C:\Users\zetawiki>nslookup naver.com
서버:    google-public-dns-a.google.com
서버:    google-public-dns-a.google.com
97번째 줄: 111번째 줄:
*[[whois]]
*[[whois]]


==주석==
==참고==
<references/>


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

2020년 2월 9일 (일) 14:40 기준 최신판

1 개요[ | ]

IP로 도메인 이름 알아내기
IP로 도메인명 알아내기
IP로 도메인명 확인
  • 모든 IP의 도메인 이름을 알아낼 수 있는 것은 아니다.
  • 도메인 이름이 없는 IP도 있을 수 있다. 예를 들어 대부분의 PC는 도메인 이름이 없다.
  • 서버 쪽에서 찾을 수 없도록 설정해둔 경우도 있다.

2 윈도우[ | ]

2.1 방법 1: nslookup[ | ]

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

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

이름:    ir2.fp.vip.sp2.yahoo.com
Address:  98.139.127.62

2.2 방법 2: tracert[ | ]

C:\Users\zetawiki>tracert 98.139.127.62

최대 30홉 이상의
ir2.fp.vip.sp2.yahoo.com [98.139.127.62](으)로 가는 경로 추적:

  1    <1 ms    <1 ms    <1 ms  192.168.0.1
... (생략)

3 리눅스[ | ]

3.1 방법 1: ipcalc[ | ]

[root@zetawiki ~]# ipcalc -h 8.8.8.8
HOSTNAME=google-public-dns-a.google.com

3.2 방법 2: dig[ | ]

[root@zetawiki ~]# dig +short -x 8.8.8.8
google-public-dns-a.google.com.

3.3 방법 3: nslookup[ | ]

[root@zetawiki ~]#  nslookup 8.8.8.8
Server:		192.168.245.2
Address:	192.168.245.2#53

Non-authoritative answer:
8.8.8.8.in-addr.arpa	name = google-public-dns-a.google.com.

Authoritative answers can be found from:
8.8.8.in-addr.arpa	nameserver = ns3.google.com.
8.8.8.in-addr.arpa	nameserver = ns1.google.com.
8.8.8.in-addr.arpa	nameserver = ns4.google.com.
8.8.8.in-addr.arpa	nameserver = ns2.google.com.
ns1.google.com	internet address = 216.239.32.10
ns2.google.com	internet address = 216.239.34.10
ns3.google.com	internet address = 216.239.36.10
ns4.google.com	internet address = 216.239.38.10

3.4 방법 4: traceroute[ | ]

[root@zetawiki ~]# traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
 1  192.168.0.1 (192.168.0.1)  2.510 ms  2.401 ms  2.335 ms
... (생략)
15  * * *
16  google-public-dns-a.google.com (8.8.8.8)  70.546 ms  71.116 ms  70.643 ms

4 못 찾는 경우[ | ]

도메인으로 IP를 찾는 일은 항상 가능하지만, IP로 도메인을 찾는 일은 항상 가능한 것은 아니다.[1]

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

권한 없는 응답:
이름:    naver.com
Addresses:  220.95.233.171
          220.95.233.172
          202.131.30.11
          202.131.30.12

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

*** google-public-dns-a.google.com이(가) 220.95.233.171을(를) 찾을 수 없습니다.
Non-existent domain

5 같이 보기[ | ]

6 참고[ | ]

  1. IP만 있고, 도메인과 연결하지 않은 컴퓨터도 있기 때문이다.
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}