How to Get Domain and IP Address Information Using WHOIS Command

[‘

n

WHOIS is a TCP-based query and response protocol that is commonly used to provide information services to Internet users. It returns information about the registered Domain Names, an IP address block, Name Servers and a much wider range of information services.

n

In Linux, the whois command line utility is a WHOIS client for communicating with the WHOIS server (or database host) which listen to requests on the well-known port number 43, which stores and delivers database content in a human-readable format.

n

Read Also: 10 Linux Dig (Domain Information Groper) Commands to Query DNS

n

whois command line utility does not come pre-installed on many Linux distributions, run the appropriate command below for your distribution to install it.

n

# yum install whoistt#RHEL/CentOSrn# dnf install whoistt#Fedora 22+rn$ sudo apt install whoist#Debian/Ubunturn

n

How to Find IP Address Information

n

To get the information about specific IP Address issue the command as shown in the below example.

n

$ whois 216.58.206.46rnrn#rn# ARIN WHOIS data and services are subject to the Terms of Usern# available at: https://www.arin.net/whois_tou.htmlrn#rn# If you see inaccuracies in the results, please report atrn# https://www.arin.net/public/whoisinaccuracy/index.xhtmlrn#rnrnrn#rn# The following results may also be obtained via:rn# https://whois.arin.net/rest/nets;q=216.58.206.46?showDetails=true&showARIN=false&showNonArinTopLevelNet=false&ext=netref2rn#rnrnNetRange:       216.58.192.0 - 216.58.223.255rnCIDR:           216.58.192.0/19rnNetName:        GOOGLErnNetHandle:      NET-216-58-192-0-1rnParent:         NET216 (NET-216-0-0-0-0)rnNetType:        Direct AllocationrnOriginAS:       AS15169rnOrganization:   Google LLC (GOGL)rnRegDate:        2012-01-27rnUpdated:        2012-01-27rnRef:            https://whois.arin.net/rest/net/NET-216-58-192-0-1rnrnrnrnOrgName:        Google LLCrnOrgId:          GOGLrnAddress:        1600 Amphitheatre ParkwayrnCity:           Mountain ViewrnStateProv:      CArnPostalCode:     94043rnCountry:        USrnRegDate:        2000-03-30rnUpdated:        2017-12-21rnRef:            https://whois.arin.net/rest/org/GOGLrn...rn

n

How to Find Domain Information

n

To get the information about the registered domain, simply issue the following command with the domain name. It will retrieve domain data including availability, ownership, creation, expiration details, name servers, etc.

n

$ whois google.comrnrnDomain Name: GOOGLE.COMrn   Registry Domain ID: 2138514_DOMAIN_COM-VRSNrn   Registrar WHOIS Server: whois.markmonitor.comrn   Registrar URL: http://www.markmonitor.comrn   Updated Date: 2011-07-20T16:55:31Zrn   Creation Date: 1997-09-15T04:00:00Zrn   Registry Expiry Date: 2020-09-14T04:00:00Zrn   Registrar: MarkMonitor Inc.rn   Registrar IANA ID: 292rn   Registrar Abuse Contact Email: [emailxa0protected]rn   Registrar Abuse Contact Phone: +1.2083895740rn   Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibitedrn   Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibitedrn   Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibitedrn   Domain Status: serverDeleteProhibited https://icann.org/epp#serverDeleteProhibitedrn   Domain Status: serverTransferProhibited https://icann.org/epp#serverTransferProhibitedrn   Domain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibitedrn   Name Server: NS1.GOOGLE.COMrn   Name Server: NS2.GOOGLE.COMrn   Name Server: NS3.GOOGLE.COMrn   Name Server: NS4.GOOGLE.COMrn....rn

n

The formatting of information will differ based on the WHOIS server used. In addition, one downside of WHOIS is the lack of full access to the data, therefore check out these useful guides for querying DNS information in Linux:

n

    n

  1. Useful ‘host’ Command Examples for Querying DNS Lookups
  2. n

  3. 8 Linux Nslookup Commands to Troubleshoot DNS (Domain Name Server)
  4. n

n

If you have any queries or information about the article that you want to share with us, use the comment form below.

n

‘]