Changing the order of lookups in lookupd

[ Posted by Urban Hafner Tue, 28 Nov 2006 13:45:33 GMT ]

So I was starting some web development these days and the code I was working on had the name of the website hardcoded. So I thought that the easiest way would be to add a new entry to the machines directory in Netinfo Manager. Unfortunately that didn’t work. It still resolved the IP address to the real one and not to 127.0.0.1. After a while I found out that lookupd (the program responsible for the actual DNS look up) searched the DNS server before the Netinfo Manager entries!

After searching for a long long time I found the article MacOSX lookupd and NetInfo by A.P. Lawrence. Changing the order of the search path of lookupd boiled down to the following lines:

sudo mkdir /etc/lookupd
echo LookupOrder Cache NI DNS FF DS  > hosts
sudo mv hosts /etc/lookupd
sudo kill -1 `cat /var/run/lookupd.pid`

This was done on Mac OS X 10.4.8 but according to the article from above it works on 10.2.6, too.

Tags , , , ,  | 1 comment | no trackbacks

CocoaDevHouse Munich

[ Posted by Urban Hafner Sat, 24 Jun 2006 21:27:49 GMT ]

cocoadevhousemunich.jpg I went to the first CocoaDevHouse in Munich today. It took place at the office of Boinx Software.

We were planning on doing some hacking but at least I didn’t do much. That’s of course mostly because I’m not good at Cocoa programming, yet. But I had some nice chats with people who make there living with Cocoa programming.

The Boinx office was really nice and they did a really good job at providing the right environment for happy geeks (Pizza, M&Ms, ...). I also felt really important as this was the first time I got a badge ;)

So, thanks to Boinx and TheCodingMonkeys for organizing this meeting and I hope for another meeting. Until then I assume I’ll have learnt some more Cocoa and will be able to do some real hacking.

Tags , , , ,  | no comments