Solved

logical and physical hostname

Posted on 2010-11-29
4
3,442 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

627 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