ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [Linux] 도메인으로 IP 확인
    서버 2016. 11. 26. 20:21

    host

    # 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.

    ping

    # 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

    nslookup

    # 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

    nslookup명령어는 반대로 ip를 입력해 dns를 확인할 수도 있습니다. 그러나 ip를 입력해 dns를 반드시 찾을 수 있는 것은 아닙니다. IP만 있고, 도메인과 연결하지 않은 컴퓨터도 있기 때문입니다.

    댓글