I have always used BIND on OSX to provide a local DNS resolver for my local development machines, particularly to facilitate virtual machines accessing my local dev environment.
Foolishly I decided to upgrade to OSX Mavericks overnight and it appears BIND is no longer installed - even when the command line developer tools are added.
Anyone have a suggestion of how to restore this functionality, or if the latest OSX has an alternative DNS solution in place?
Thanks, Steve
You can install bind with Homebrew: http://brew.sh/
Try this http://blakeembrey.com/articles/local-development-with-dnsmasq/
It worked well for me after installed mavericks.
I used to use a local DNS server running on the MAC until I discovered DNSMasq on DD-WRT
I setup a DD-WRT router for my LAN and WIFI and then used the DNSMasq feature of DD-WRT to list all entires that should map to development machines.
Log into your DD-WRT router:
Under Services, Enable DNSMasq
Under "Additional DNSMasq options" list each entry you want to mask:
Examples:
This is almost like running your own DNS server on the router just for local addresses but without the overhead.
This way I can connect to local development machines via the LAN and all mobile devices via WIFI without much hassle.
Advantages:
Install BIND9 using Homebrew. The current brew install isn't as complete as I'd like, so when I ran into this issue myself, I updated the brew file to generate initial config files (to match the system install in Mountain Lion) as well as include a launchd plist.
Though my changes haven't been merged in yet, you can see the updated file here: github.com/mxcl/homebrew/pull/23598 Use
brew edit bind
to open the formula for BIND, and copy in my forked version, save, and reinstall with brew usingbrew install bind
.Installing Homebrew and using it to installing bind seems the best route.
There are few little "gotcha's", so I put together this bash script to simplify it all.
1) Install Homebrew.
2) Save this file to your Mac as "ConfigureBrewBindOnOSX10_9.sh" and run it (
sh ./ConfigureBrewBindOnOSX10_9.sh
) , or run it's commands line-by-line by hand (if you want to see more detail as you go.Contents of ConfigureBrewBindOnOSX10_9.sh
Let me know if you need any help, I've successfully configured this on quiet a few machines.
Bind is installed in Mavericks. Just files have moved. You can find all the zone files in /Library/Server/named/.
Apple actually have done a good job going for a more compliant implementation compared to 10.6.8.
It's easy to modify the files by hand.
My $0.02
LL