I work with a few people who are staunch Mac OS X lovers. I admit it’s neat, but for me, there isn’t anything there I need, that isn’t already satisfied by my Ubuntu box. Then I found out about a feature in Mac OS X, that allowed for the definition of per-domain DNS servers. So for most of the DNS the general default/public/dhcp provided DNS server was great, but for servers and such on the other side of the company VPN I had to kludge around it. Then I figured out how to do the same thing on my laptop.
The setup is really rather simple:
- install dnsmasq (sudo apt-get install dnsmasq)
- configure dnsmasq (vi /etc/dnsmasq.conf and add lines like server=/corporate-domain.com/192.233.17.8), one for each domain
- edit your dhcp configs to make the localhost your default nameserver (vi /etc/dhcp3/dhclient.conf and find the line that says prepend domain-name-servers 127.0.0.1;. uncomment it and make sure it points to 127.0.0.1)
- start dnsmasq (/etc/init.d/dnsmasq start)
- and reconnect to your network
And that’s it. I’ve been running that way for a couple of days now and it’s working rather well.
\\@matthias