• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

whois Command Examples in Linux

by admin

The whois command provides information on Internet DNS registrations for organizations. This can be useful for learning or verifying information regarding ownership of a domain name, contact information for an organization, etc.

Some examples include:

# whois google.com
# whois ubuntu.com

Syntax

The syntax of the whois command is:

# whois [options] {domain name}

whois is a client for the whois directory service that you can use to look up registration and user information. For example, if I want to find out who is behind the ietf.org domain (note that you can pay your domain registrar to keep that information private), I would do the following:

# whois ietf.org 1
% IANA WHOIS server
% for more information on IANA, visit http://www.iana.org
% This query returned 1 object

refer:        whois.pir.org

domain:       ORG

organisation: Public Interest Registry (PIR)
address:      11911 Freedom Drive 10th Floor,
address:      Suite 1000
address:      Reston, VA 20190
address:      United States

contact:      administrative
name:         Director of Operations, Compliance and Customer Support
organisation: Public Interest Registry (PIR)
address:      11911 Freedom Drive 10th Floor,
address:      Suite 1000
address:      Reston, VA 20190
address:      United States
phone:        +1 703 889 5778
fax-no:       +1 703 889 5779
e-mail:       ops@pir.org
...

whois Command Examples

1. Get information about a domain name:

# whois example.com

2. Get information about an IP address:

# whois 8.8.8.8

3. Get abuse contact for an IP address:

# whois -b 8.8.8.8

Filed Under: Linux

Some more articles you might also be interested in …

  1. ntpdate Command Examples in Linux
  2. Linux OS Service ‘sendmail’
  3. How to Resize / Expand a Btrfs Volume / Filesystem
  4. adig: command not found
  5. firewall-cmd Command Examples in Linux
  6. Linux OS Service ‘httpd’
  7. How to work with multiple java versions under Linux
  8. dbus-daemon Command Examples in Linux
  9. How to Map Static IP to your Domain (with GoDaddy example)
  10. jarsigner: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright