From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 9 21:48:33 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 938351065674; Mon, 9 Jul 2012 21:48:33 +0000 (UTC) (envelope-from mark@exonetric.com) Received: from relay0.exonetric.net (relay0.exonetric.net [178.250.72.161]) by mx1.freebsd.org (Postfix) with ESMTP id 4D8E78FC16; Mon, 9 Jul 2012 21:48:33 +0000 (UTC) Received: from [192.168.1.21] (unknown [78.86.207.85]) by relay0.exonetric.net (Postfix) with ESMTP id 95DF757012; Mon, 9 Jul 2012 22:49:20 +0100 (BST) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Mark Blackman In-Reply-To: <86a9z8mxa1.fsf@ds4.des.no> Date: Mon, 9 Jul 2012 22:47:59 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <8D942592-3662-4FBA-BA61-2A010452BF70@exonetric.com> References: <4FF2E00E.2030502@FreeBSD.org> <86bojxow6x.fsf@ds4.des.no> <89AB703D-E075-4AAC-AC1B-B358CC4E4E7F@lists.zabbadoz.net> <4FF8C3A1.9080805@FreeBSD.org> <20472.51031.308284.775990@hergotha.csail.mit.edu> <4FF8C890.9030408@FreeBSD.org> <4FFA7174.7050604@FreeBSD.org> <4FFA7980.4000707@FreeBSD.org> <4FFB46A4.5050504@FreeBSD.org> <1E29121E-62B1-4929-BB7B-4FCA5D893F51@exonetric.com> <86a9z8mxa1.fsf@ds4.des.no> To: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.1278) Cc: "Bjoern A. Zeeb" , Doug Barton , Garrett Wollman , Avleen Vig , FreeBSD Hackers Subject: Re: Replacing BIND with unbound X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2012 21:48:33 -0000 On 9 Jul 2012, at 22:37, Dag-Erling Sm=F8rgrav wrote: > Mark Blackman writes: >> my DNS resolution is broken, so my ports can't download any tarballs.=20= >> In this case, I reach for dig to see which part of the DNS resolution >> chain is failing me.=20 >>=20 >> At the bare minimum, 'dig' should be an alias for 'drill', which I = have=20 >> to say isn't working brilliantly for me on OS X. It suggests I use = '-t'=20 >> and then keeps suggesting I use '-t' even when I do use it. >>=20 >> drill feels a bit rough around the edges to me. >=20 > This reminds me of the (probably apocryphal) American grade school > teacher who complained that the metric system was so inexact; for > instance, a meter is _approximately_ a yard, a kilometer is > _approximately_ two thirds of a kilometer, etc. >=20 > By which I mean, of course, that you are blaming drill not for its own > shortcomings, but for those of the wrapper you use to _approximate_ = dig > with drill. >=20 > The -t option doesn't mean the same for drill as for dig. A proper = dig > wrapper for drill would have to translate one to the other. However, > you should never need the -t option when using dig; I suspect that it > exists only for people who are so used to host that they want to use = the > same command line except for s/host/dig/. I never use '-t' with dig. drill *told* me I should use '-t' then completely failed to acknowledge I had done so. Marks-Macbook% drill -t www.google.com ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 14583 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0=20 ;; QUESTION SECTION: ;; www.google.com. IN A ;; ANSWER SECTION: www.google.com. 44089 IN CNAME www.l.google.com. www.l.google.com. 147 IN A 173.194.67.106 www.l.google.com. 147 IN A 173.194.67.147 www.l.google.com. 147 IN A 173.194.67.104 www.l.google.com. 147 IN A 173.194.67.105 www.l.google.com. 147 IN A 173.194.67.103 www.l.google.com. 147 IN A 173.194.67.99 ;; AUTHORITY SECTION: ;; ADDITIONAL SECTION: ;; Query time: 34 msec ;; SERVER: 178.250.72.130 ;; WHEN: Mon Jul 9 22:46:13 2012 ;; MSG SIZE rcvd: 148 ;; WARNING: The answer packet was truncated; you might want to ;; query again with TCP (-t argument), or EDNS0 (-b for buffer size)