From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 21:14:02 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 367B77DD for ; Mon, 27 Apr 2015 21:14:02 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D99241E89 for ; Mon, 27 Apr 2015 21:14:01 +0000 (UTC) Received: from [192.168.1.35] (host86-132-232-69.range86-132.btcentralplus.com [86.132.232.69]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id t3RLDhQN002327 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Mon, 27 Apr 2015 22:13:47 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <553EA687.2040602@fjl.co.uk> Date: Mon, 27 Apr 2015 22:13:43 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: dig command ? References: <552001C0.6040304@gmail.com> In-Reply-To: <552001C0.6040304@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 21:14:02 -0000 On 04/04/2015 16:22, Ernie Luzar wrote: > running 10.1 and went to use the dig command and its no longer part of > the system. Why was it removed? As other's have said, this was removed (actually in 10.0) because it was compiled as part of BIND, and that was removed. You'll find nslookup has also gone, but host (which also part of BIND) is still there. BIND was considered over-kill as part of the base system, but it's still available in ports. This doesn't explain how the "host" utility escaped remained part of the base system, but dig and nslookup were dropped. I've done some historical research since I first drew attention to this, and it goes back at least as far as 4.3BSD in 1986 on a VAX, and apparently in 2.11BSD on a PDP-11. For a while ISC deprecated nslookup because it doesn't do its lookups the way some people might think it did. However, it's been around longer than dig and host, and people are used to it, so they un-deprecated it. dig, I believe, came in the middle and was also considered unworthy, in favour of the latest, greatest "host", which was dragged out of BIND and added to the base system. I've been around a while, like nslookup, and I appreciate it being there; it's even available on Windoze it's that universal! If you want nslookup or dig you DON'T have to install the whole BIND package as is often suggested; just find nslookup.c (it's in the same directory as host and dig on the ISC source bundle) and compile and copy in to /usr/bin.