Solved

logical and physical hostname

Posted on 2010-11-29
4
2,681 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
  • 2
4 Comments
 
LVL 45

Expert Comment

by:Kdo
Comment Utility
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
Comment Utility
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:
Kdo earned 250 total points
Comment Utility

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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Usually shares are where we want them for our users and we tend to take them for granted. There are times, however, when those shares may disappear causing difficulty for your users. One of the first things to try is searching for files that shou…
Learn about cloud computing and its benefits for small business owners.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now