LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
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,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
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



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 08:10 PM.

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