Linux / Unix: Look Up IP Addresses

You can use the nslookup command in Linux/Unix to look up IP addresses. The nslookup command can be used to find the IP address of a domain name or the domain name of an IP address.

For example, to look up the IP address of a domain name, run the following command:

nslookup example.com

This will return the IP address associated with the domain name “example.com”.

To look up the domain name associated with an IP address, run the following command:

nslookup <IP-address>

For example:

nslookup 192.168.1.1

This will return the domain name associated with the IP address “192.168.1.1”.

You can also use the host command to look up IP addresses. The syntax is similar to nslookup. For example:

host example.com

This will return the IP address associated with the domain name “example.com”.

(beyondbeaute.com)

Leave a Comment