linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ping  by name does not work (sometimes)
@ 2004-07-14 15:51 Luca Ferrari
  2004-07-15  9:06 ` Benoit Desforges
  2004-07-21 16:31 ` Luca Ferrari
  0 siblings, 2 replies; 10+ messages in thread
From: Luca Ferrari @ 2004-07-14 15:51 UTC (permalink / raw)
  To: linux-admin

Hi,
I've found this problem on a suse 8.0 machine: if I try to ping a machine by 
its name the program stay locked (no messages, neither errors). If I ping 
with the IP address everything works. A problem of DNS? I thought this, but 
other users on the same machine can ping by a DNS name. I'm talking, of 
course, of non privileged users.
Any idea?

Luca

-- 
Luca Ferrari,
fluca1978@infinito.it


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Il pensiero del giorno e':

Si scelgano degli identificatori mnemonici.
Se non ci si ricorda cosa vuol dire "mnemonico",
è un bel problema.
(Larry Wall)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ping by name does not work (sometimes)
  2004-07-14 15:51 ping by name does not work (sometimes) Luca Ferrari
@ 2004-07-15  9:06 ` Benoit Desforges
  2004-07-16 13:33   ` Luca Ferrari
  2004-07-21 16:31 ` Luca Ferrari
  1 sibling, 1 reply; 10+ messages in thread
From: Benoit Desforges @ 2004-07-15  9:06 UTC (permalink / raw)
  To: fluca1978; +Cc: linux-admin

On Wed, 14 Jul 2004 17:51:42 +0200, Luca Ferrari <fluca1978@infinito.it> wrote:
> Hi,
> I've found this problem on a suse 8.0 machine: if I try to ping a machine by
> its name the program stay locked (no messages, neither errors). If I ping
> with the IP address everything works. A problem of DNS? I thought this, but
> other users on the same machine can ping by a DNS name. I'm talking, of
> course, of non privileged users.
> Any idea?
> 
> Luca
> 
> --
> Luca Ferrari,
> fluca1978@infinito.it
> 

Are you sure that all the different users can read the /etc/host file ?
I would sugest you to check if this actualy readable by everybody. but
I may be wrong ...

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ping by name does not work (sometimes)
  2004-07-15  9:06 ` Benoit Desforges
@ 2004-07-16 13:33   ` Luca Ferrari
  2004-07-16 13:46     ` Jeff Largent
  2004-07-16 16:14     ` jim roy
  0 siblings, 2 replies; 10+ messages in thread
From: Luca Ferrari @ 2004-07-16 13:33 UTC (permalink / raw)
  To: linux-admin

On Thursday 15 July 2004 11:06 Benoit Desforges's cat walking on the keyboard  
wrote:

> On Wed, 14 Jul 2004 17:51:42 +0200, Luca Ferrari <fluca1978@infinito.it> 
wrote:
> > Hi,
> > I've found this problem on a suse 8.0 machine: if I try to ping a machine
> > by its name the program stay locked (no messages, neither errors). If I
> > ping with the IP address everything works. A problem of DNS? I thought
> > this, but other users on the same machine can ping by a DNS name. I'm
> > talking, of course, of non privileged users.
> > Any idea?
> >
> > Luca
> >
> > --
> > Luca Ferrari,
> > fluca1978@infinito.it
>
> Are you sure that all the different users can read the /etc/host file ?
> I would sugest you to check if this actualy readable by everybody. but
> I may be wrong ...

The file is readable by everyone
-rw-r--r--    1 root     root          677 2003-10-18 11:37 /etc/hosts
and furthermore the entry I'm trying to ping is not included in the file (and 
there's not a NIS file sharing), thus it must be requested thru DNS.
Any idea?

Luca

-- 
Luca Ferrari,
fluca1978@infinito.it

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ping by name does not work (sometimes)
  2004-07-16 13:33   ` Luca Ferrari
@ 2004-07-16 13:46     ` Jeff Largent
  2004-07-16 14:17       ` Luca Ferrari
  2004-07-16 16:14     ` jim roy
  1 sibling, 1 reply; 10+ messages in thread
From: Jeff Largent @ 2004-07-16 13:46 UTC (permalink / raw)
  To: fluca1978; +Cc: Linux Admin

Are you trying to ping host or ping host.domain.com?

if your just trying host make sure you have a search line
in you /etc/resolve.conf


On Fri, 2004-07-16 at 09:33, Luca Ferrari wrote:
> On Thursday 15 July 2004 11:06 Benoit Desforges's cat walking on the keyboard  
> wrote:
> 
> > On Wed, 14 Jul 2004 17:51:42 +0200, Luca Ferrari <fluca1978@infinito.it> 
> wrote:
> > > Hi,
> > > I've found this problem on a suse 8.0 machine: if I try to ping a machine
> > > by its name the program stay locked (no messages, neither errors). If I
> > > ping with the IP address everything works. A problem of DNS? I thought
> > > this, but other users on the same machine can ping by a DNS name. I'm
> > > talking, of course, of non privileged users.
> > > Any idea?
> > >
> > > Luca
> > >
> > > --
> > > Luca Ferrari,
> > > fluca1978@infinito.it
> >
> > Are you sure that all the different users can read the /etc/host file ?
> > I would sugest you to check if this actualy readable by everybody. but
> > I may be wrong ...
> 
> The file is readable by everyone
> -rw-r--r--    1 root     root          677 2003-10-18 11:37 /etc/hosts
> and furthermore the entry I'm trying to ping is not included in the file (and 
> there's not a NIS file sharing), thus it must be requested thru DNS.
> Any idea?
> 
> Luca


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ping by name does not work (sometimes)
  2004-07-16 13:46     ` Jeff Largent
@ 2004-07-16 14:17       ` Luca Ferrari
  0 siblings, 0 replies; 10+ messages in thread
From: Luca Ferrari @ 2004-07-16 14:17 UTC (permalink / raw)
  To: linux-admin

On Friday 16 July 2004 15:46 Jeff Largent's cat walking on the keyboard  
wrote:

> Are you trying to ping host or ping host.domain.com?
>
> if your just trying host make sure you have a search line
> in you /etc/resolve.conf

Both, and in resolv.conf there's a line with my search domain.

Luca

-- 
Luca Ferrari,
fluca1978@infinito.it

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ping by name does not work (sometimes)
  2004-07-16 13:33   ` Luca Ferrari
  2004-07-16 13:46     ` Jeff Largent
@ 2004-07-16 16:14     ` jim roy
  2004-07-16 16:41       ` Luca Ferrari
  1 sibling, 1 reply; 10+ messages in thread
From: jim roy @ 2004-07-16 16:14 UTC (permalink / raw)
  To: fluca1978; +Cc: linux-admin

On 2004.07.16 06:33 Luca Ferrari wrote:
> On Thursday 15 July 2004 11:06 Benoit Desforges's cat walking on the keyboard  
> wrote:
> 
> > On Wed, 14 Jul 2004 17:51:42 +0200, Luca Ferrari <fluca1978@infinito.it> 
> wrote:
> > > Hi,
> > > I've found this problem on a suse 8.0 machine: if I try to ping a machine
> > > by its name the program stay locked (no messages, neither errors). If I
> > > ping with the IP address everything works. A problem of DNS? I thought
> > > this, but other users on the same machine can ping by a DNS name. I'm
> > > talking, of course, of non privileged users.
> > > Any idea?
> > >
> > > Luca
> > >
> > > --
> > > Luca Ferrari,
> > > fluca1978@infinito.it
> >
> > Are you sure that all the different users can read the /etc/host file ?
> > I would sugest you to check if this actualy readable by everybody. but
> > I may be wrong ...
> 
> The file is readable by everyone
> -rw-r--r--    1 root     root          677 2003-10-18 11:37 /etc/hosts
> and furthermore the entry I'm trying to ping is not included in the file (and 
> there's not a NIS file sharing), thus it must be requested thru DNS.
> Any idea?


Are you sure the other users are using the same ping?



 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ping by name does not work (sometimes)
  2004-07-16 16:14     ` jim roy
@ 2004-07-16 16:41       ` Luca Ferrari
  2004-07-19 12:46         ` Jeff Largent
  0 siblings, 1 reply; 10+ messages in thread
From: Luca Ferrari @ 2004-07-16 16:41 UTC (permalink / raw)
  To: linux-admin

On Friday 16 July 2004 18:14 jim roy's cat walking on the keyboard  wrote:

> On 2004.07.16 06:33 Luca Ferrari wrote:
> > On Thursday 15 July 2004 11:06 Benoit Desforges's cat walking on the
> > keyboard
> >
> > wrote:
> > > On Wed, 14 Jul 2004 17:51:42 +0200, Luca Ferrari
> > > <fluca1978@infinito.it>
> >
> > wrote:
> > > > Hi,
> > > > I've found this problem on a suse 8.0 machine: if I try to ping a
> > > > machine by its name the program stay locked (no messages, neither
> > > > errors). If I ping with the IP address everything works. A problem of
> > > > DNS? I thought this, but other users on the same machine can ping by
> > > > a DNS name. I'm talking, of course, of non privileged users.
> > > > Any idea?
> > > >
> > > > Luca
> > > >
> > > > --
> > > > Luca Ferrari,
> > > > fluca1978@infinito.it
> > >
> > > Are you sure that all the different users can read the /etc/host file ?
> > > I would sugest you to check if this actualy readable by everybody. but
> > > I may be wrong ...
> >
> > The file is readable by everyone
> > -rw-r--r--    1 root     root          677 2003-10-18 11:37 /etc/hosts
> > and furthermore the entry I'm trying to ping is not included in the file
> > (and there's not a NIS file sharing), thus it must be requested thru DNS.
> > Any idea?
>
> Are you sure the other users are using the same ping?
>
>
Yes, indeed.

magroup1:~ # ping cabri
PING cabri.ing.unimo.it (155.185.48.114) from 155.185.48.60 : 56(84) bytes of 
data.
64 bytes from cabri.ing.unimo.it (155.185.48.114): icmp_seq=1 ttl=128 
time=19.0 ms

--- cabri.ing.unimo.it ping statistics ---
1 packets transmitted, 1 received, 0% loss, time 0ms
rtt min/avg/max/mdev = 19.015/19.015/19.015/0.000 ms
magroup1:~ # which ping
/bin/ping

magroup1:~ # su - luca
luca@magroup1:~> which ping
/bin/ping
luca@magroup1:~> ping cabri

luca@magroup1:~>

(last line due to my ^C).

It's weird, isn't it?

Luca

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ping by name does not work (sometimes)
  2004-07-16 16:41       ` Luca Ferrari
@ 2004-07-19 12:46         ` Jeff Largent
  2004-07-19 14:10           ` Luca Ferrari
  0 siblings, 1 reply; 10+ messages in thread
From: Jeff Largent @ 2004-07-19 12:46 UTC (permalink / raw)
  To: fluca1978; +Cc: Linux Admin

What are the permissions on /bin/ping??
should be root:root and 4755 for users other than root to be able to
ping.


On Fri, 2004-07-16 at 12:41, Luca Ferrari wrote:
> On Friday 16 July 2004 18:14 jim roy's cat walking on the keyboard  wrote:
> 
> > On 2004.07.16 06:33 Luca Ferrari wrote:
> > > On Thursday 15 July 2004 11:06 Benoit Desforges's cat walking on the
> > > keyboard
> > >
> > > wrote:
> > > > On Wed, 14 Jul 2004 17:51:42 +0200, Luca Ferrari
> > > > <fluca1978@infinito.it>
> > >
> > > wrote:
> > > > > Hi,
> > > > > I've found this problem on a suse 8.0 machine: if I try to ping a
> > > > > machine by its name the program stay locked (no messages, neither
> > > > > errors). If I ping with the IP address everything works. A problem of
> > > > > DNS? I thought this, but other users on the same machine can ping by
> > > > > a DNS name. I'm talking, of course, of non privileged users.
> > > > > Any idea?
> > > > >
> > > > > Luca
> > > > >
> > > > > --
> > > > > Luca Ferrari,
> > > > > fluca1978@infinito.it
> > > >
> > > > Are you sure that all the different users can read the /etc/host file ?
> > > > I would sugest you to check if this actualy readable by everybody. but
> > > > I may be wrong ...
> > >
> > > The file is readable by everyone
> > > -rw-r--r--    1 root     root          677 2003-10-18 11:37 /etc/hosts
> > > and furthermore the entry I'm trying to ping is not included in the file
> > > (and there's not a NIS file sharing), thus it must be requested thru DNS.
> > > Any idea?
> >
> > Are you sure the other users are using the same ping?
> >
> >
> Yes, indeed.
> 
> magroup1:~ # ping cabri
> PING cabri.ing.unimo.it (155.185.48.114) from 155.185.48.60 : 56(84) bytes of 
> data.
> 64 bytes from cabri.ing.unimo.it (155.185.48.114): icmp_seq=1 ttl=128 
> time=19.0 ms
> 
> --- cabri.ing.unimo.it ping statistics ---
> 1 packets transmitted, 1 received, 0% loss, time 0ms
> rtt min/avg/max/mdev = 19.015/19.015/19.015/0.000 ms
> magroup1:~ # which ping
> /bin/ping
> 
> magroup1:~ # su - luca
> luca@magroup1:~> which ping
> /bin/ping
> luca@magroup1:~> ping cabri
> 
> luca@magroup1:~>
> 
> (last line due to my ^C).
> 
> It's weird, isn't it?
> 
> Luca
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ping by name does not work (sometimes)
  2004-07-19 12:46         ` Jeff Largent
@ 2004-07-19 14:10           ` Luca Ferrari
  0 siblings, 0 replies; 10+ messages in thread
From: Luca Ferrari @ 2004-07-19 14:10 UTC (permalink / raw)
  To: linux-admin

On Monday 19 July 2004 14:46 Jeff Largent's cat walking on the keyboard  
wrote:

> What are the permissions on /bin/ping??
> should be root:root and 4755 for users other than root to be able to
> ping.
>

Permissions are right, and today it seems working with all accounts. The only 
thing happens between Saturday (not working) and today (working) was the 
change of the network socket (i.e., the switch port the computer is tied to). 
Can be a cable problem or something else?

Luca

-- 
Luca Ferrari,
fluca1978@infinito.it

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ping  by name does not work (sometimes)
  2004-07-14 15:51 ping by name does not work (sometimes) Luca Ferrari
  2004-07-15  9:06 ` Benoit Desforges
@ 2004-07-21 16:31 ` Luca Ferrari
  1 sibling, 0 replies; 10+ messages in thread
From: Luca Ferrari @ 2004-07-21 16:31 UTC (permalink / raw)
  To: linux-admin

On Wednesday 14 July 2004 17:51 Luca Ferrari's cat walking on the keyboard  
wrote:

> Hi,
> I've found this problem on a suse 8.0 machine: if I try to ping a machine
> by its name the program stay locked (no messages, neither errors). If I
> ping with the IP address everything works. A problem of DNS? I thought
> this, but other users on the same machine can ping by a DNS name. I'm
> talking, of course, of non privileged users.
> Any idea?
>
> Luca

I've solved the problem, or at least I hope!
It was a nisplus problem. In fact there were different configurations among 
nsswitch.conf and host.conf of the resolution of a name. Even if I don't 
export servers thru nis, removing the nisplus entry in the "host" row of the 
nsswitch.conf solved the problem.
Thanks to everyone for the assistance.

Luca

-- 
Luca Ferrari,
fluca1978@virgilio.it

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-07-21 16:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-14 15:51 ping by name does not work (sometimes) Luca Ferrari
2004-07-15  9:06 ` Benoit Desforges
2004-07-16 13:33   ` Luca Ferrari
2004-07-16 13:46     ` Jeff Largent
2004-07-16 14:17       ` Luca Ferrari
2004-07-16 16:14     ` jim roy
2004-07-16 16:41       ` Luca Ferrari
2004-07-19 12:46         ` Jeff Largent
2004-07-19 14:10           ` Luca Ferrari
2004-07-21 16:31 ` Luca Ferrari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).