Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
    
Thanks. It worked. –  Rafael S. Calsaverini Feb 18 '11 at 1:54
    
@RafaelS.Calsaverini don't forget to tick –  Hashbrown Nov 29 '13 at 3:13
add comment

You can try nslookup.

nslookup 192.168.0.1

Substituting the IP address you use, of course.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.