Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a linux machine on my university network where I usually log in via ssh from home. I have know the ip, so this is what I use to log in, but it would convenient to know if my computer have a hostname on the local network (it's easier than remembering the ip).

I set up a hostname when I installed linux on my pc, but it's not the name associated with that ip on the network. Is there a way to find out if there's a name associated with that ip?

share|improve this question
up vote 3 down vote accepted

On a computer that is using the University's DNS servers, you can try ping -a x.x.x.x (Windows) or host x.x.x.x (Linux).

If your University's DNS servers are not set up for dynamic DNS entries, you will not receive a name for the host. I'm suprised your University allows SSH connections (or allocates you public addresses) for that matter. You may want to set up your own name using DynDNS.

share|improve this answer

You can try nslookup.


Substituting the IP address you use, of course.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .