On 9 Jul 2012, at 22:37, Dag-Erling Smørgrav wrote:

> Mark Blackman <m...@exonetric.com> writes:
>> my DNS resolution is broken, so my ports can't download any tarballs. 
>> In this case, I reach for dig to see which part of the DNS resolution
>> chain is failing me. 
>> 
>> At the bare minimum, 'dig' should be an alias for 'drill', which I have 
>> to say isn't working brilliantly for me on OS X. It suggests I use '-t' 
>> and then keeps suggesting I use '-t' even when I do use it.
>> 
>> drill feels a bit rough around the edges to me.
> 
> 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.
> 
> 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.
> 
> 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 
;; 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)


_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to