There is one operation that’s completed very often when programs connect to servers on the internet — that’s resolving DNS names (finding out the server’s IP address by its name). Typically, you use a DNS server of your ISP. It’s relatively close to your network, so it may be fast. This short post is about setting up a local caching DNS server on OS X for even faster DNS responses.
Setting up dnsmasq
There is the canonical BIND DNS server, but I’ll use the lighter dnsmasq, which uses only ~470 KB of memory on my mac. Installing it on OS X is very easy:
$ brew install dnsmasq
Now, as suggested in the output caveats, copy the config file: