July 26, 2017

How to Find the Owner of an IP Address on Unix, Linux and BSD Systems

Administration Logo

Every IP address is registered to an ISP or organisation. On Unix, Linux and BSD systems you can check the WHOIS database entry with the whois command in your command-line interface. The WHOIS record holds the name, email address, phone and many more of the IP address owner.

Root access is required to edit the following files and to execute commands. Log in as root (su) or simply prepend sudo to all commands that require root privileges.

Find the IPv4 or IPv6 address of a host name

First you need to find the IP address of the host name. For this you can use the host and nslookup command. For example to get the IPv4 address for bin63.com type in the following command:

host bin63.com

The following command will give you the IPv6 address of bin63.com if it exists.

nslookup bin63.com

Check the WHOIS database record of an IP address

Now, that you have find out the IP address of a host name you can check the WHOIS database record of this IP address. For example to get the WHOIS database record of the IPv4 IP address 69.64.37.178 type in the following command:

whois 69.64.37.178

Speak Your Mind