In Unix, how can I find out the domain name associated with an IP number?

To find the domain name associated with an IP number, use the nslookup command. At the Unix shell prompt, enter nslookup followed by the IP address, for example:

  nslookup 129.79.5.100

This command will return the following information:

  Server:  ns.indiana.edu
  Address:  129.79.1.1

  Name:    ns2.indiana.edu
  Address:  129.79.5.100

You can also specify a hostname on the command line to find out its IP number.

You can use the nslookup command interactively. For more information, at the Unix shell prompt, enter:

  man nslookup

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document ackg in the Knowledge Base.
Last modified on 2017-05-16 11:53:09.

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.