I first came across the idea of running a local DNS server while running Debian and reading what Ubuntu heads were doing to speed up their navigation. I never gave it much thought, until I had to configure a custom Debian install to surf via a 3G mobile modem. I spent the a day investigating how to do it manually, only to find out it really is pretty easy –if you know what you’re doing. This Debian article is coming (it’s here!).
Anyway onto this OS X article, I thought to myself, considering the lousy service that VTR has given me over the years, I don’t know why I hadn’t done this on my Macs running OS X before. It’s even more imperative considering that surfing has always been slow on Macs, in my experience and that of others. So, I looked into the matter.
Some enthusiasts might (and do) protest the opinion that surfing on a Mac is slow, assuring it’s quite fast, despite anecdotal evidence to the contrary. They might also point this article out. If what that article says is true, OS X might not benefit all that much from having a local DNS server, Even so, I had a go at it.
The confusing bit about installing a local DNS server on OS X is that most articles are not even Tiger related (yes, I do run one computer on Tiger), and when they are Tiger specific they’re related to BIND, which is not all that great unless you never plan to turn you computer off; BIND does not retain its records after a reboot.
Luckily, there is another option. It’s called pdnsd, and it’s what I’ve used on Debian. Make sure you have Apple’s developer tools installed before attempting to compile it, though.
The general scheme proposed is as follows.
browser –> Polipo –> local DNS server
The browser communicates with Polipo (that caches, improving speed on commonly browsed pages, rather than wasting bandwidth downloading the same elements over and over again), which sends DNS requests locally (improving speed, rather than wasting time sending requests to remote [taking time] and slow/over worked servers [creating further lag]).
A side benefit is that you’re less likely to be tracked through DNS server requests, something that even “democratic” governments are reported to perform. In any case, surfing under the radar is not the topic herein.
(This article assumes you have a DSL style modem.)
Note: Although it’s not the subject at hand, I should warn that running a local DNS server is not recommended for Tor use. It poses a security threat.
Continue reading