From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 12:52:50 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F194840B for ; Sat, 3 Jan 2015 12:52:50 +0000 (UTC) Received: from oslo.ath.cx (oslo.ath.cx [IPv6:2a01:4f8:200:42e4::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "oslo.ath.cx", Issuer "oslo.ath.cx" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 488D066174 for ; Sat, 3 Jan 2015 12:52:49 +0000 (UTC) Received: by oslo.ath.cx (OpenSMTPD) with ESMTP id f2235e01; for ; Sat, 3 Jan 2015 13:52:46 +0100 (CET) Date: Sat, 3 Jan 2015 13:52:46 +0100 From: "Herbert J. Skuhra" To: freebsd-questions@freebsd.org Subject: Re: Follow up question, unbound drill command Message-ID: <20150103125246.GA99061@oslo.ath.cx> References: <54A7C54E.3000708@eskk.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54A7C54E.3000708@eskk.nu> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2015 12:52:51 -0000 On Sat, Jan 03, 2015 at 11:32:46AM +0100, Leslie Jensen wrote: > > I have two scripts that makes a table that I use in PF to allow access > from the outside to my local network. > > The command I use can look like the line below. > > for HOST in $HOSTS; do pfctl -t goodguys -T add `dig +short $HOST $NS`; done > > > Replacing dig with drill in the command does not work. > > > Making a symlink in /usr/bin > > ln -s drill dig > > solves the problem. > > > Any suggestions on what I need to do in the script in order to make > drill work? Accoding to the man pages host and drill have no short option! Why are you installing dns/bind-tools? -- Herbert