From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 10:32:48 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 771FEBDA for ; Sat, 3 Jan 2015 10:32:48 +0000 (UTC) Received: from smtp-out11.han.skanova.net (smtp-out11.han.skanova.net [195.67.226.200]) by mx1.freebsd.org (Postfix) with ESMTP id 3E6A864F45 for ; Sat, 3 Jan 2015 10:32:48 +0000 (UTC) Received: from Leslies-MacBook-Pro.local (194.237.176.105) by smtp-out11.han.skanova.net (8.5.142.07) id 544A6E2E01FD4B8D for freebsd-questions@freebsd.org; Sat, 3 Jan 2015 11:32:46 +0100 Message-ID: <54A7C54E.3000708@eskk.nu> Date: Sat, 03 Jan 2015 11:32:46 +0100 From: Leslie Jensen User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Follow up question, unbound drill command Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 10:32:48 -0000 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? Thanks /Leslie