Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Feb 2001 11:09:01 -0600 (CST)
From:      Nick Rogness <nick@rogness.net>
To:        Eric Fiterman <fiterman@torrentnet.com>
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: multiple IP addresses in /etc/hosts
Message-ID:  <Pine.BSF.4.21.0102081106440.99347-100000@cody.jharris.com>
In-Reply-To: <3A82CC57.3D1F5AB4@torrentnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <nick@rogness.net>
- Keep on routing in a Free World...  
  "FreeBSD: The Power to Serve!"



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0102081106440.99347-100000>