CentOS 5.x 에서 잘 사용하던 whois 를 상위 OS 버전에서는 사용할 수 없을 때
해결할 수 있는 작은 tip 입니다.
이럴 때는 jwhois 패키지를 설치하면 간단히 문제를 해결 할 수 있는데요.
패키지 검색으로도 jwhois 를 설치할 수 없을 때는 EPEL 를 먼저 설치해보세요.
-> EPEL 저장소 활성화 방법
http://idchowto.com/index.php/epel-%ec%a0%80%ec%9e%a5%ec%86%8c-%ed%99%9c%ec%84%b1%ed%99%94/
whois 명령은 도메인 주소와 네트워크 블록 단위 IP 주소를 검색할 때 매우 유용합니다.
1. 잘 사용하던 whois 명령은 어디로;
# whois
-bash: whois: command not found
2. jwhois 패키지를 설치합니다.
# yum install jwhois
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 4.7 kB 00:00
* base: centos.tt.co.kr
* epel: mirror.premi.st
* extras: centos.tt.co.kr
* updates: centos.tt.co.kr
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.7 MB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
Resolving Dependencies
–> Running transaction check
—> Package jwhois.x86_64 0:4.0-19.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================
Package Arch Version Repository Size
====================================================================================================================
Installing:
jwhois x86_64 4.0-19.el6 base 104 k
Transaction Summary
====================================================================================================================
Install 1 Package(s)
Total download size: 104 k
Installed size: 294 k
Is this ok [y/N]: y
Downloading Packages:
jwhois-4.0-19.el6.x86_64.rpm | 104 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : jwhois-4.0-19.el6.x86_64 1/1
Verifying : jwhois-4.0-19.el6.x86_64 1/1
Installed:
jwhois.x86_64 0:4.0-19.el6
Complete!
3. 설치 후 whois 명령이 잘 되네요.
# whois
jwhois version 4.0, Copyright (C) 1999-2007 Free Software Foundation, Inc.
This program is free software with ABSOLUTELY NO WARRANTY; you may
redistribute it under the terms of the GNU General Public License.
Usage: jwhois [OPTIONS] [QUERY]
–version display version number and patch level
–help display this help
-v, –verbose verbose debug output
-c FILE, –config=FILE use FILE as configuration file
-h HOST, –host=HOST explicitly query HOST
-n, –no-redirect disable content redirection
-s, –no-whoisservers disable whois-servers.net service support
-a, –raw disable reformatting of the query
-i, –display-redirections display all redirects instead of hiding them
-p PORT, –port=PORT use port number PORT (in conjunction with HOST)
-r, –rwhois force an rwhois query to be made
–rwhois-display=DISPLAY sets the display option in rwhois queries
–rwhois-limit=LIMIT sets the maximum number of matches to return
4. 도메인 주소 검색
# whois idchowto.com
[Querying whois.verisign-grs.com]
[Redirected to whois.gabia.com]
[Querying whois.gabia.com]
[whois.gabia.com]
Domain Name: idchowto.com
Registry Domain ID:
Registrar WHOIS Server: whois.gabia.com
Registrar URL: http://www.gabia.com
Updated Date: 2015-05-26
Creation Date: 2014-06-20 05:54:35 UTC
Registrar Registration Expiration Date: 2016-06-20 05:54:35 UTC
Registrar: Gabia, Inc.
Registrar IANA ID: 244
Registrar Abuse Contact Email: abuse@gabia.com
Registrar Abuse Contact Phone: +82.8293543
Reseller: Asadal Inc.
Domain Status: ok
Registry Registrant ID:
Registrant Name: Smileserv.inc
Registrant Organization: Smileserv.inc
Registrant Street: Yatap-dong Seongnam -si Bundang-gu Gyeonggi-do Korea 1078,343-2
Registrant City: Gyeonggi-do
5. IP 주소 검색
# whois 115.68.X.X
[Querying whois.arin.net]
[Redirected to whois.apnic.net]
[Querying whois.apnic.net]
[Redirected to whois.krnic.net]
[Querying whois.krnic.net]
[whois.krnic.net]
query : 115.68.X.X
# KOREAN(UTF8)
조회하신 IPv4주소는 한국인터넷진흥원으로부터 아래의 관리대행자에게 할당되었으며, 할당 정보는 다음과 같습니다.
[ 네트워크 할당 정보 ]
IPv4주소 : 115.68.0.0 – 115.68.255.255 (/16)
서비스명 : SMILESERV
기관명 : 주식회사 스마일서브
기관고유번호 : ORG841770
주소 : 경기도 성남시 분당구 대왕판교로644번길 86 (삼평동, KT동판교빌딩 3층)
우편번호 : 463-400
할당일자 : 20080716