WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Getting hostname of DomainU from domain0

To: trilok nuwal <tc.nuwal@xxxxxxxxx>
Subject: Re: [Xen-users] Getting hostname of DomainU from domain0
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Fri, 08 Feb 2008 22:59:31 +0000
Cc: Nalini Vidapankal <nvidapan@xxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 08 Feb 2008 14:55:43 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=zw4nr6Irhrc1cNlzZdzH/yYuixLz7dURW/qB0J/usxo=; b=Vufg7VRNbmc8mz2tKvVsG4pdCpBMY8q4JTrbtc9YFTw4ATnNaEIrqSfcplYcHmq6ji0FDytAzC4eLE59LQfKwpPJBHF3IXS+lTNXsGsAERkj7zHFQNHqMP6XrnDZ3BvI+i08FndhdMdC6LetjeG8XQGdXMkTsKqV4hwzCtz64m8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=i1FLuQSDloOJ9R6Tip/bcyDyzY6c00mNFM62qNk6izieMAXP7tniD/s6xzkQcLMifGTs4KP5pOhUYr+2egxRj7NfF5Vc5gQGUCW8oCKwOd1M4zt0vUtNT4NsvMi698X6Vz4Qf1taAP1kYAB8sc1417DVaSh+FQUHNdNMat3583E=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <f58fc26d0802080419k5edff1eavec6518320af2659a@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <OF111BF1CC.D1A0CA45-ON652573E9.0041B87B-652573E9.004219C2@xxxxxxxxxx> <f58fc26d0802080419k5edff1eavec6518320af2659a@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)
trilok nuwal wrote:


Could you mount root file system of the guest domain ? If yes then you could mount and can see the /et/hosts file to know the host name, but it should be there.

Else if you know the ip address of the domain, then could ssh and see the hostname by running hostname command on domU via ssh.

Else you have to see the console of domU and see the ip and hostname via console of domU.

Thanks
Trilok
No, you can't. You will only see what the installer assigned there, if anything. The hostname is usually actually set in a configuration file read at boot time, /etc/sysconfig/network on RHEL and Fedora and many other Linuxes, or /etc/hostname on old BSD releases, etc., etc., etc. And for some setups, it is assigned by a DNS lookup from DHCP configurations at boot-time, and it can even be set in a dynamic DNS setup in /etc/dhclient-eth0

/etc/hosts is where a hostname may be *RECORDED* by many installers, but it's not where it is set. I've previously spent a long time divorcing people from publishing all their internal DNS information via /etc/hosts, which is very fragile and can be overridden by local dynamic DNS setups common to Active Directory environments.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>