LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2017, 01:55 PM   #1
jera45
LQ Newbie
 
Registered: May 2017
Posts: 1

Rep: Reputation: Disabled
Physical hostname?


I am running a Red Hat rel 7 Linux VM. How can I find the hostname of the physical host?
 
Old 05-23-2017, 02:19 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
https://www.computerhope.com/unix/uhostnam.htm

hostname

https://access.redhat.com/solutions/1381903

sorry didn't catch that VBox looking for the hosts hostname sorry

Last edited by BW-userx; 05-23-2017 at 02:20 PM.
 
Old 05-23-2017, 02:50 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
Quote:
Originally Posted by jera45 View Post
I am running a Red Hat rel 7 Linux VM. How can I find the hostname of the physical host?
You can answer that yourself by stating how they are networked and why you want to do this.
 
Old 05-23-2017, 03:39 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,985

Rep: Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405
Hello and welcome to LQ.

I may not fully understand your question. Your question suggests more than a simple computer with a single OS on it.

However if it is such a simple question then the usual way is to do as above and use the command hostname in a terminal or shell.
 
Old 05-23-2017, 11:35 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010
If I understand correctly, you want to find the host host name from inside a guest VM. The whole purpose of VMs is isolation, so I don't think it's possible. You could configure "bridged" networking. That gives the VM its own network connection, vs NAT, which translates a unique address but really uses the host connection.
 
1 members found this post helpful.
Old 05-24-2017, 11:22 PM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,861

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Cool

Quote:
Originally Posted by jera45 View Post
I am running a Red Hat rel 7 Linux VM. How can I find the hostname of the physical host?
just type hostname, on the physical host of course.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOSTNAME = hostname -> HOSTNAME: command not found ? thomas2004ch Linux - Software 2 08-26-2013 08:25 PM
clients CAN resolve hostname of server w/nslookup, but CANNOT access by hostname WTF? psycroptic Linux - Networking 9 11-10-2012 11:24 AM
https://hostname:1800/ or any hostname:port/ is blocked by smoothwall edgarhmg Linux - Security 3 02-23-2011 07:39 PM
Changed hostname during install, now CUPS has wrong hostname on web interface slinx Linux - Software 1 08-07-2009 08:01 PM
after hostname change, syslogd still output previous hostname to messages file tiger2000 Linux - General 3 07-22-2009 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration