I live in Silicon Valley. I'm really into machine learning and Formula 1. I'm 24 years old. More about me…

Friend me up! Here's where I'm at…

LinkedIn
Flickr
Delicious

Introduce yourself! Feel free to IM (Jabber/Gtalk) or email me.

Top Posts:
So I went to Startup School
Waking from a 64-bit nightmare
A quick foray into linear algebra and Python: tf-idf
Explaining my addiction
The importance of being abstract

Top Commentors:
Paul Stamatiou (4)
Gordon (4)
Arthur (2)
Anton Lindstrom (2)
m13 (2)

Friends
James Broad
Mike Speiser
Mike Heijmans
Annie Lausier
Jay Liew
Gabriel Serafini
Kevin Pratt
Ben Wann
Bart Chapin

Recommended Reading
Joel on Software
Rands in Repose
Paul Graham
Gary Vaynerchuk
Coding Horror
xkcd

All content © 2008 Tim Trueman unless otherwise noted.

Subscribe in a reader Article archives

Frigtarded Leopard DNS issue

February 28, 2008 Link

Audi R8So ever since Leopard shipped in October, I’ve had serious problems with using the Internet. I had just moved to Silicon Valley and the process of new OS, new ISP, and a new router complicated tracking down the issue. Let me assure you, AT&T is by no means a reliable (or fast or cheap) service. Their Uverse service requires you to use their 2Wire “residential gateway”. I’ve got no nice things to say about 2Wire but this time I think the ultimate blame goes to Leopard.

I’ll be the first to admit Apple probably let this one slip through their QA process and that I’m kind of disappointed (perhaps even upset). The problem lies in a newly implemented Request For Comments (RFC), numero 2308. This RFC outlines “Negative Caching of DNS Queries”. Negative caching of DNS queries is a proposal for a way to speed up the user’s experience when network problems arise. Instead of waiting for a timeout to occur, the negative cache resolves near-instantaneously and lets the request know that it’s not going to work. Brilliant idea…right?

Not so fast. Remember my shitty Internet connection? AT&T’s DNS servers are spotty at best and from time to time a lookup will take longer than expected, timing out and creating a negative cache entry. For the next hour. Even though I could perform the look up again and this time it would work, the negative cache entry stops the second lookup from ever happening. So that’s it, I’m hosed right? Nope, Apple has provided a handy command-line application that can manage these negative cache entries. It’s called dscacheutil and it can “gather information, statistics and initiate queries to the Directory Service cache”. For instance to see if there are any negative cache entries run this command:

dscacheutil -cachedump -entries

There’s a column labelled “Neg” and if you see a “YES” then you may be able to solve your problems by flushing the cache manually (instead of waiting an hour):

dscacheutil -flushcache

Thanks to this discussion on Apple’s support website for helping me out! Now I just want Apple, AT&T, and 2Wire to take note and nip this one in the bud.

Tell me if you’ve had this problem or another similar one!

I too have seen some of the problems with the AT&T 2Wire setup. We used to have one of those here at Asher House (where I’m living), and one day when it was having enough troubles that it warranted a call to tech support, they only made things worse. I’m somewhat convinced that they have a magic kill switch to send a signal to fuck with the gateway, because it seems like that’s exactly what they did. Fortunately, though, we aren’t using Macs.

Gordon on February 28, 2008 at 10:38 AM

Have your say

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Safari hates me