Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jul 2012 22:47:59 +0100
From:      Mark Blackman <mark@exonetric.com>
To:        =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>, Doug Barton <dougb@FreeBSD.org>, Garrett Wollman <wollman@bimajority.org>, Avleen Vig <avleen@gmail.com>, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Replacing BIND with unbound
Message-ID:  <8D942592-3662-4FBA-BA61-2A010452BF70@exonetric.com>
In-Reply-To: <86a9z8mxa1.fsf@ds4.des.no>
References:  <CA%2BQLa9B-Dm-=hQCrbEgyfO4sKZ5aG72_PEFF9nLhyoy4GRCGrA@mail.gmail.com> <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> <CAMjP1KmVDJuKw09UFXb2M6QaL1dD1ocSjMOZLtjKiYFYoF9f4Q@mail.gmail.com> <4FFA7174.7050604@FreeBSD.org> <CAMjP1K=MahXEgHM-gKHFfDpQRDXY_0LGTn0JEE0Zm43%2Bh5jfPA@mail.gmail.com> <4FFA7980.4000707@FreeBSD.org> <CAMjP1K=b8mwqe31m=OqjUV%2BF=B85L4vpfT%2BDj00a1voPB-8TwA@mail.gmail.com> <D49E4B08-AC64-48C0-B918-94A7E30AB981@exonetric.com> <4FFB46A4.5050504@FreeBSD.org> <1E29121E-62B1-4929-BB7B-4FCA5D893F51@exonetric.com> <86a9z8mxa1.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help

On 9 Jul 2012, at 22:37, Dag-Erling Sm=F8rgrav wrote:

> Mark Blackman <mark@exonetric.com> 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)





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8D942592-3662-4FBA-BA61-2A010452BF70>