UPDATE – This article was written a while back, before Mac OS 10.5 ‘Leopard’ came out. One of the few things I did know about Leopard from my previous beta testing was that ‘lookupd’ was heading the way of the Apple Newton, and finally getting an update it needed.
This article has now been updated for those using 10.5 and above. I dont know about you, but for some reason, the internet has been REALLY slow the past few days, and a few times, it really has made me think it all may be DNS related. Well, things are picking up now, but I have still been having issues with some DNS Queries, espc. getting a SERVFAIL error a lot. This sometimes can be due to a incorrect DNS entry, or also issues with your local lookup or DNS cache.
So, for safe keeping, I wanted to write something down, and also really hope that it could help a few other people.The Mac OS has a feature called ‘lookupd’ that has its ups and downs. While it handles your DNS, it also handles a LOT more on your system to. For example, if you wake a laptop up from sleep sometimes, and your network has changed, lookupd is the little bastard that usually makes your laptop just not wake up. I have also had this when the network I am on requires some type of authentication, where the ONLY way to get back into my laptop is to reboot and hopefully get out of the range of the wireless signal!
Well, if your having DNS issues, clearing your cache may be good.
To do this on the Mac, all you have to do is type:
Mac OS 10.4 and below -> sudo lookupd -flushcache
Mac OS 10.5 and above -> dscacheutil -flushcache
And you are done!
Listening To: ‘In Your Room’ by Depeche Mode