From owner-freebsd-current@FreeBSD.ORG Sat Oct 12 08:45:17 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 19ACC1A4 for ; Sat, 12 Oct 2013 08:45:17 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C9194215A for ; Sat, 12 Oct 2013 08:45:16 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VUuou-0006rq-Pp for freebsd-current@freebsd.org; Sat, 12 Oct 2013 10:45:08 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Oct 2013 10:45:08 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Oct 2013 10:45:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Subject: Re: May you please add alias for nslookup? Date: Sat, 12 Oct 2013 10:44:56 +0200 Lines: 43 Message-ID: References: <52DAE42E-7A58-4A38-9FF4-3DF51866057D@ancientrocklab.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kXrPrqLnM19S0aq5mhQ0ADrb3SfV8P8Rl" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: <52DAE42E-7A58-4A38-9FF4-3DF51866057D@ancientrocklab.com> X-Enigmail-Version: 1.5.2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2013 08:45:17 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kXrPrqLnM19S0aq5mhQ0ADrb3SfV8P8Rl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/10/2013 08:10, zhifeng hu wrote: > I am noticed that the nslookup will not appear by default in freebsd 10= =2E > but this is a very basic tools, we need it very much more than you thin= k. > would you please add alias for nslookup ? such as=20 > alias nslookup=3D"host -v" >=20 > NOT FORCE USER TO INSTALL dns/bind-tool=20 >=20 > It's not good for human use experiences. nslookup is a very different tool, it has an interactive mode which is not available in e.g. the "host" utility and a specific output format (scripts will break if they attempt to parse the output of host -v as if it is coming from nslookup). But I agree that something should be done - maybe a script which checks if /usr/local/bin/nslookup exists, then executes it, and if it doesn't exist then outputs a message explaning the user what has happened and optionally invoking "host" or "dig". --kXrPrqLnM19S0aq5mhQ0ADrb3SfV8P8Rl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iKYEARECAGYFAlJZDAlfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDYxNDE4MkQ3ODMwNDAwMDJFRUIzNDhFNUZE MDhENTA2M0RGRjFEMkMACgkQ/QjVBj3/HSxUlgCgpA5ijlAiQZFllilt9ujuj/sb CB8AnRIhQ+/zQRhkFR+JeM3vFTgn6XmG =8ho+ -----END PGP SIGNATURE----- --kXrPrqLnM19S0aq5mhQ0ADrb3SfV8P8Rl--