Re: [Vserver] How to discover the "real" IP Address?

From: Baltasar Cevc <baltasar_at_cevc-topp.de>
Date: Fri 07 Jul 2006 - 20:55:00 BST
Message-Id: <98af09cacb2359e07a45119a568bd8d0@cevc-topp.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Flavio,

> how can I check and discover the "real"
> hosts IP Address and hostname?
What do you mean by "real"?
There should not be any direct way to discover the host (the main linux
distro, which has access to all the vservers and can administer them)
from inside a guest (one of the vservers); if you want to know the guest
IP, use "ip addr show" (ifconfig will not work as expected, it's
deprecated
anyway).

You can get the system hostname using "hostname"; the network hostname
(which
is the same as far as I know) can also be displayed using "uname -n".
If you are interested in the hostname associated with that IP (which is
what's
important to network services), use "host <ip address>" if you have the
bind
DNS tools installed (which should be the case in most distributions).

Hope that helps,
Baltasar

((( Baltasar Cevc

) World wide web:
   * http://www.openairkino.net/ (a project for the local youth; German
only)
   * http://technik.juz-kirchheim.de/ (programming and admin projects)
   * http://baltasar.cevc-topp.de/ (private homepage)
) Phone:
   +49 176 232 20 822
)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFErrwXp2YsmzTbIwYRAts0AJsEZeWZoX1xRAfNvrO3y/NRCoWbigCfbaEG
omrWDq+ksSIW1XyYnFSqXnw=
=SnLF
-----END PGP SIGNATURE-----

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Jul 7 20:55:44 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 07 Jul 2006 - 20:55:48 BST by hypermail 2.1.8