Table of Contents

Linux Commands#Network

nslookup : How to use nslookup command in Linux with examples



whois DOMAIN

whois -h WHOIS_SERVER  DOMAIN

LANG=C whois -h WHOIS_SERVER  DOMAIN

Example

facebook.com

#whois facebook.com

   Whois Server: whois.markmonitor.com

   Name Server: A.NS.FACEBOOK.COM
   Name Server: B.NS.FACEBOOK.COM

   Expiration Date: 30-mar-2020

Registrant Name: Domain Administrator
Registrant Organization: Facebook, Inc.

aws.com

#whois aws.com

   Whois Server: whois.networksolutions.com

   Name Server: NS-139.AWSDNS-17.COM
   Name Server: NS-1490.AWSDNS-58.ORG
   Name Server: NS-1818.AWSDNS-35.CO.UK
   Name Server: NS-527.AWSDNS-01.NET

   Expiration Date: 11-jan-2017

google.com (reverse)

# host google.com
google.com has address 216.58.221.14
google.com has IPv6 address 2404:6800:4004:815::200e


# whois 216.58.221.14

NetRange:       216.58.192.0 - 216.58.223.255
CIDR:           216.58.192.0/19
NetName:        GOOGLE

OrgName:        Google Inc.

OrgTechName:   Google Inc

210.193.112.0/24

$ whois -h whois.nic.ad.jp 210.193.112.0/24
[Querying whois.nic.ad.jp]
[whois.nic.ad.jp]
[ JPNIC database provides information regarding IP address and ASN. Its use   ]
[ is restricted to network administration purposes. For further information,  ]
[ use 'whois -h whois.nic.ad.jp help'. To only display English output,        ]
[ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'.      ]

Network Information:
a. [Network Number]             210.193.112.0/24
b. [Network Name]               SUBA-602-026
g. [Organization]               Internap Japan Co.,Ltd.
m. [Administrative Contact]     KM22988JP
n. [Technical Contact]          KM22988JP
p. [Nameserver]                 ns1.tok.pnap.net
p. [Nameserver]                 ns2.tok.pnap.net
[Assigned Date]                 2005/11/17
[Return Date]
[Last Update]                   2012/08/07 16:05:03(JST)

Less Specific Info.
----------
Internap Japan Co., LTD.
                     [Allocation]                              210.193.64.0/18

More Specific Info.
----------
TrueNetworks Japan Co., Ltd.
           TOK-TN-02 [Assignment]                             210.193.112.0/25
GMO CLICK Holdings, Inc.
          TOK-GMO-01 [Assignment]                           210.193.112.128/26
Hilton Grand Vacations Company
          TOK-HTLN-9 [Assignment]                           210.193.112.192/28
The MathWorks GK
         TOK-MATH-01 [Assignment]                           210.193.112.216/29
$