From owner-freebsd-hackers Thu Feb 8 8:47:56 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 1AB0B37B401; Thu, 8 Feb 2001 08:47:34 -0800 (PST) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f18H91c99714; Thu, 8 Feb 2001 11:09:01 -0600 (CST) (envelope-from nick@rogness.net) Date: Thu, 8 Feb 2001 11:09:01 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Eric Fiterman Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: multiple IP addresses in /etc/hosts In-Reply-To: <3A82CC57.3D1F5AB4@torrentnet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 8 Feb 2001, Eric Fiterman wrote: > Hi: > > Is it possible to have an application like ping or telnet iterate > through IP addresses for a given hostname, if a previous attempt fails? > > For example: > > in /etc/hosts: > --------------- > 0.0.0.1 testhost > 0.0.0.2 testhost > 0.0.0.3 testhost > --------------- > > If I attempt to 'ping testhost', and the first entry (0.0.0.1) fails, is > there anything to configure which would allow an automatic attempt to > ping 0.0.0.2? Is this possible? AFAIK, not with /etc/hosts. You could do round-robin DNS with named but it will never be 100% of what you want to do. DNS does not keep track of which hosts are dead or alive. Nick Rogness - Keep on routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message