본문 바로가기

리눅스

[명령어] whois 명령어

728x90

whois 명령어

whois(whois-5.1.1) 패키지 설치

 개선된 WHOIS 클라이언트

$ yum install -y whois


$ whois --version
Version 5.1.1.

Report bugs to <md+whois@linux.it>.

Usage: whois [OPTION]... OBJECT...

$ whois --help
Usage: whois [OPTION]... OBJECT...

-h HOST, --host HOST   connect to server HOST
-p PORT, --port PORT   connect to PORT
-H                     hide legal disclaimers
      --verbose        explain what is being done
      --help           display this help and exit
      --version        output version information and exit

These flags are supported by whois.ripe.net and some RIPE-like servers:
-l                     find the one level less specific match
-L                     find all levels less specific matches
-m                     find all one level more specific matches
-M                     find all levels of more specific matches
-c                     find the smallest match containing a mnt-irt attribute
-x                     exact match
-b                     return brief IP address ranges with abuse contact
-B                     turn off object filtering (show email addresses)
-G                     turn off grouping of associated objects
-d                     return DNS reverse delegation objects too
-i ATTR[,ATTR]...      do an inverse look-up for specified ATTRibutes
-T TYPE[,TYPE]...      only look for objects of TYPE
-K                     only primary keys are returned
-r                     turn off recursive look-ups for contact information
-R                     force to show local copy of the domain object even
                       if it contains referral
-a                     also search all the mirrored databases
-s SOURCE[,SOURCE]...  search the database mirrored from SOURCE
-g SOURCE:FIRST-LAST   find updates from SOURCE from serial FIRST to LAST
-t TYPE                request template for object of TYPE
-v TYPE                request verbose template for object of TYPE
-q [version|sources|types]  query specified server info

whois(jwhois-4.0-47) 패키지 설치

 client 인터넷 whois/nicname 클라이언트

$ yum install -y jwhois


$ whois --version
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]

$ whois --help
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, --force-ipv4           force ipv4 address resolution for whois host
-6, --force-ipv6           force ipv6 address resolution for whois host


Report bugs to bug-jwhois@gnu.org

whois domain 조회

- whois google.com

$ whois google.com
[Querying whois.verisign-grs.com]
[Redirected to whois.markmonitor.com]
[Querying whois.markmonitor.com]
[whois.markmonitor.com]
Domain Name: google.com
Registry Domain ID: 2138514_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.markmonitor.com
Registrar URL: http://www.markmonitor.com
Updated Date: 2019-09-09T15:39:04+0000
Creation Date: 1997-09-15T07:00:00+0000
Registrar Registration Expiration Date: 2028-09-13T07:00:00+0000
Registrar: MarkMonitor, Inc.
Registrar IANA ID: 292
Registrar Abuse Contact Email: abusecomplaints@markmonitor.com
Registrar Abuse Contact Phone: +1.2083895770
...

- whois draw.io -h whois.nic.io

$ whois draw.io -h whois.nic.io
[Querying whois.nic.io]
[whois.nic.io]
Domain Name: draw.io
Registry Domain ID: 9189657a52c748b29d77bf61c654f082-DONUTS
Registrar WHOIS Server: http://whois.cloudflare.com
Registrar URL: http://cloudflare.com
Updated Date: 2021-12-06T16:26:08Z
Creation Date: 2012-07-12T22:12:43Z
Registry Expiry Date: 2031-07-12T22:12:43Z
Registrar: Cloudflare, Inc
Registrar IANA ID: 1910
Registrar Abuse Contact Email:
Registrar Abuse Contact Phone:
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Registry Registrant ID: REDACTED FOR PRIVACY

whois 유틸을 이용한 ASN 정보조회

- dig google.co.kr

$ dig google.co.kr

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.amzn2.5 <<>> google.co.kr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39683
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;google.co.kr.                  IN      A

;; ANSWER SECTION:
google.co.kr.           300     IN      A       142.251.33.195

;; Query time: 9 msec
;; SERVER: 172.31.0.2#53(172.31.0.2)
;; WHEN: Tue Dec 07 14:19:58 KST 2021
;; MSG SIZE  rcvd: 57

- whois -h whois.cymru.com " -v 74.125.129.94"

$ whois -h whois.cymru.com "-v 74.125.129.94"
AS      | IP               | BGP Prefix          | CC | Registry | Allocated  | AS Name
15169   | 74.125.129.94    | 74.125.129.0/24     | US | arin     | 2007-03-13 | GOOGLE, US

 

 

728x90