From owner-freebsd-questions Thu Feb 8 10:41:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id C8D4137B6B2; Thu, 8 Feb 2001 10:40:56 -0800 (PST) Received: from amrelay2.boi.hp.com (amrelay2.boi.hp.com [15.56.8.41]) by palrel1.hp.com (Postfix) with ESMTP id 3199E4F7; Thu, 8 Feb 2001 10:40:55 -0800 (PST) Received: from xboibrg1.boi.hp.com (xboibrg1.boi.hp.com [15.56.8.167]) by amrelay2.boi.hp.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.02) with ESMTP id LAA26100; Thu, 8 Feb 2001 11:40:53 -0700 (MST) Received: by xboibrg1.boi.hp.com with Internet Mail Service (5.5.2653.19) id <1HY2AZ50>; Thu, 8 Feb 2001 11:40:50 -0700 Message-ID: From: "DINKEY,GENE (HP-Loveland,ex1)" To: "'Eric Fiterman'" , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Subject: RE: multiple IP addresses in /etc/hosts Date: Thu, 8 Feb 2001 11:39:13 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Eric Fiterman [mailto:fiterman@torrentnet.com] > Sent: Thursday, February 08, 2001 9:42 AM > To: freebsd-questions@freebsd.org; freebsd-hackers@freebsd.org > Subject: multiple IP addresses in /etc/hosts > > > 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? Not exactly sure what your trying to accomplish - just tryuing to verify that the ip addresses are operating the way they should? nmap will probably do what you need, it's a network scanner designed to do things like scan whole subnets. You will find it in ports/security/nmap IIRC, not only is it a great network scanner but it will do other tricks like jump through flaming hoops and TCP thumbprint remote OS's. Gene Dinkey aka Master of my domain aka gder@gder.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message