Re: [Vserver] localhost

From: Andreas John <aj_at_net-lab.net>
Date: Wed 07 Jun 2006 - 21:39:35 BST
Message-ID: <44873987.8030907@net-lab.net>

Hello,

usually you set in you /etc/hosts file the host 'localhost' to the
public IP of the guest. There is no real need to have a 127.0.0.1
accessible. If you e.g. ping 127.0.0.1 from within a guest, it get
automatically mapped to the public IP of the guest.

If you need a 127-x address within your guest, you may add a 127.0.0.2
etc. to each guest.

HTH,
derjohn

Albert Shih wrote:
> Hi all
>
> I've a vserver running two guests.
>
> On one guest everything work fine. But on second I cannot have the name
> resolution for localhost. Hi don't know localhost is 127.0.0.1, for example
> I cannot make ping localhost.
>
> And I don't have /etc/hosts file on booth guest.
>
> How can I fix this.
>
> Regards.
>
> --
> Albert SHIH
> Universite de Paris 7 (Denis DIDEROT)
> U.F.R. de Mathematiques.
> 7 ième étage, plateau D, bureau 10
> Heure local/Local time:
> Wed Jun 7 22:23:23 CEST 2006
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
>

-- 
Andreas John
net-lab GmbH
Luisenstrasse 30b
63067 Offenbach
Tel: +49 69 85700331
http://www.net-lab.net
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed Jun 7 21:43:13 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 07 Jun 2006 - 21:43:19 BST by hypermail 2.1.8