Subject: Re: [vserver] Fail to ping guest hostname
From: Stephen Liu <satimis@yahoo.com>
Date: Sat, 30 Aug 2008 23:33:56 +0800 (CST)


--- Gilles Sadowski <gilles@harfang.homelinux.org> wrote:

> Hi.
> 
> > 
> > Host - Debian Etch
> > 
> > 
> > [Host]$ ping -c3 vserver1.satimis.com
> > ping: unknown host vserver1.satimis.com
> > 
> > 
> > ping its ip works
> > 
> > [Host]$ ping -c3 192.168.0.111
> > PING 192.168.0.111 (192.168.0.111) 56(84) bytes of data.
> > 64 bytes from 192.168.0.111: icmp_seq=1 ttl=64 time=0.027 ms
> > 64 bytes from 192.168.0.111: icmp_seq=2 ttl=64 time=0.022 ms
> > 64 bytes from 192.168.0.111: icmp_seq=3 ttl=64 time=0.022 ms
> > 
> > --- 192.168.0.111 ping statistics ---
> > 3 packets transmitted, 3 received, 0% packet loss, time 2001ms
> > rtt min/avg/max/mdev = 0.022/0.023/0.027/0.006 ms
> > * end *
> > 
> 
> File "/etc/hosts" (on the host system) might be missing a line such
> as:
> 
> 192.168.0.111   vserver1.satimis.com        vserver1


Hi Gilles,


Thanks for your advice.


I already have that line on /etc/hosts (Guest).  But it can't work.  I
can't resolve why that line must be on /etc/hosts (Host) to make;

$ ping -c3 vserver1.satimis.com

work.  "192.168.0.111" is the local IP of the guest. 
vserver1.satimis.com is hostname of the guest as well.


Also there is another line "192.168.0.1 vserver1.satimis.com" on
/etc/hosts (Guest).  I suppose it was created when building the Guest. 
I have no idea what is it for.  192.168.0.1 is the gateway on the
router.  Could you please shed me some light?  TIA


B.R.
Stephen Liu

Send instant messages to your online friends http://uk.messenger.yahoo.com