[oclug] ping timeouts
lists at L8R.net
Mon Nov 17 19:20:20 EST 2003
On Mon, 17 Nov 2003 16:15:45 -0700
tcruicksh at softhome.net wrote:
> I would be curious to know if there was a way to specify how long a
> time-out would be for a ping.
> For example. let's say that I wish to ping www.google.ca
> If I have no internet connection, ping will try pinging www.google.ca
> for about 40 seconds before it quits and gives me a message saying
> unknown host.
> Is there a way to specify 5 seconds or so instead of the default of
> about 40.
> Please let me know. If you know of a more appropriate list, feel free to
> direct me towards it.
Your delay here would be because of a DNS timeout. If you want to get
around this particular issue, use ping with -n and an IP for google.
That is, use:
ping -n 22.214.171.124
More information about the OCLUG