From owner-freebsd-questions@FreeBSD.ORG Mon May 12 19:08:51 2008 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 DA6EF1065677 for ; Mon, 12 May 2008 19:08:51 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id C5FF28FC13 for ; Mon, 12 May 2008 19:08:51 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay14.apple.com (relay14.apple.com [17.128.113.52]) by mail-out3.apple.com (Postfix) with ESMTP id AE46C2B6B92B; Mon, 12 May 2008 12:08:51 -0700 (PDT) Received: from relay14.apple.com (unknown [127.0.0.1]) by relay14.apple.com (Symantec Mail Security) with ESMTP id 9532128059; Mon, 12 May 2008 12:08:51 -0700 (PDT) X-AuditID: 11807134-a7ecbbb000000ed7-42-482895c327a9 Received: from cswiger1.apple.com (cswiger1.apple.com [17.214.13.96]) by relay14.apple.com (Apple SCV relay) with ESMTP id 759DC2804C; Mon, 12 May 2008 12:08:51 -0700 (PDT) Message-Id: From: Chuck Swiger To: Paul Schmehl In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Mon, 12 May 2008 12:08:51 -0700 References: X-Mailer: Apple Mail (2.919.2) X-Brightmail-Tracker: AAAAAA== Cc: FreeBSD Questions Subject: Re: Unexepcted behavior from read and cat 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, 12 May 2008 19:08:51 -0000 On May 12, 2008, at 11:59 AM, Paul Schmehl wrote: > WTF? Why do these utilities, which usually read all the lines in a > file now only work once when run through dig? Is there a way to > feed dig a list of IPs and have it return each and every one of them? The dig which comes with BIND 9 supports doing multiple queries; older versions of dig apparently will only do a single query. Try doing "dig -f iplist" for batch-mode multiple queries, but trying to feed other options (like +short) will cause it to not output anything when I just tested. (The command-line argument handling of this utility is wildly nonstandard and sometimes plainly broken, IMO....) -- -Chuck