From owner-freebsd-questions@FreeBSD.ORG Mon Apr 5 18:10:42 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D11F61065679 for ; Mon, 5 Apr 2010 18:10:42 +0000 (UTC) (envelope-from walterk1@earthlink.net) Received: from pop-satin.atl.sa.earthlink.net (pop-satin.atl.sa.earthlink.net [207.69.195.63]) by mx1.freebsd.org (Postfix) with ESMTP id AAA5A8FC16 for ; Mon, 5 Apr 2010 18:10:42 +0000 (UTC) Received: from user-0c6sn0e.cable.mindspring.com ([24.110.92.14] helo=[192.168.0.100]) by pop-satin.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1Nyqkx-0005WI-00; Mon, 05 Apr 2010 14:10:39 -0400 Message-ID: <4BBA279D.7010102@earthlink.net> Date: Mon, 05 Apr 2010 13:10:37 -0500 From: Walter User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Walt Pawley , Questions References: <4BB9FCFB.40103@earthlink.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: ftp giving url but i want the IP address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2010 18:10:42 -0000 On 4/5/10 10:08 AM -0500, Walter wrote: >Walter, > >I do some similar sounding things for my gateway just to >keep the logs from filling up with attack drivel. But it's >not quite the same problem as your question, so I don't do >what I'm about to recommend - it's more complex, involving >several formats, IPv4 and IPv6. > >If, by "host-specific url" you mean the name associated with >the IP address, you should be able to get the IP address by >using the "host" command. > > "host xxxxxxx" does the trick. Thanks. But another user has suggested a ready-built package, which I'll look into before coding it to work in my program.