Solved

logical and physical hostname

Posted on 2010-11-29
4
3,331 Views
Last Modified: 2012-06-21
Hey how can I find logical and physical host name of a unix server. I really appreciate your help.
0
Comment
Question by:hussainkhan22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 34233591
Hi hussian,

I'm not sure what you mean by "physical host name".  Can you elaborate?

The logical host name is read or set by the (what else) hostname command.

  hostname


Kent
0
 

Author Comment

by:hussainkhan22
ID: 34233630
I mean how can we know whether the name mentioned in host name is physical name or logical name
0
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 250 total points
ID: 34233682

The server doesn't "know" the physical name, it returns the logical name.

I would expect the logical name to also be in the /etc/hosts file.  Either on the line the defines "localhost" or the line that defines the local machine's IP address.


Kent
0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 250 total points
ID: 34233818
There's no such thing as physical and logical hostname.  

There is only one hostname per host.

If you type in

hostname

or

uname -n

you'll see what the hostname is set to.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will giveā€¦
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question