I know the default value is 'localhost' but I want the real network name. How can I determine the network name of my server inside of a Linux from an SSH command prompt?
Do:
Which should give you the host name.Code:# cat /etc/hosts
Can't you also connect to a network share and see it? Or do a reverse resolve?
Doesn't Linux has something like 'localhost'??
I know localhost, all computers (Win, Mac, Linux) have localhost which equals 127.0.0.1. I need the fully qualified host name.
Have you tried hostname?
Code:$ hostname
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks