Solved

logical and physical hostname

Posted on 2010-11-29
4
2,995 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: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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

860 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