How do I find out my computer network name (Linux)?

32,401

Solution 1

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.

Solution 2

You can try nslookup.

nslookup 192.168.0.1

Substituting the IP address you use, of course.

Share:
32,401

Related videos on Youtube

Rafael S. Calsaverini
Author by

Rafael S. Calsaverini

Physicist, interested in agent-based simulation and statistical physics of models inspired by economic and biological reasoning. Programming in C and Python.

Updated on September 17, 2022

Comments

  • Rafael S. Calsaverini
    Rafael S. Calsaverini over 1 year

    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?