Skip to content

whois

7 commands

Looks up registration records for domains, IP addresses and autonomous systems — ownership, dates and abuse contacts for attack-surface mapping.

  • WHOIS
  • recon
  • OSINT
  • DNS

Install whois

sudo apt install whois

Domains3

whois <domain>

Registration details: registrar, creation and expiry dates, name servers and (unless redacted) contacts.

Link
whois <domain> | grep -iE "registrar|creat|expir|name server"

Pulls the lines that matter most for recon.

Link
whois -h <server> <query>

Queries a specific WHOIS server.

Link

IP addresses & networks4

whois <ip>

The organisation, network range and abuse contact that owns an IP — maps targets to owners.

Link
whois <ip> | grep -iE "orgname|netrange|cidr|country"

The ownership summary for an address.

Link
whois -h whois.cymru.com " -v <ip>"

Team Cymru: maps an IP to its ASN, owner and country in one line.

Link
whois AS<number>

Details of an autonomous system.

Link