[ Posted by Urban Hafner
Fri, 02 Mar 2007 14:45:59 GMT ]
It might be surprising to write about the novelties in 10.4, but I’m currently writing an application that might need some of this stuff. And when you don’t know the right terms for things it’s hard to find what you are looking for. That’s why a high level, but technical, article like this is really helpful.
Tags developer, mac, novelties, osx, tiger | no comments | no trackbacks
[ 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 apple, lookupd, mac, osx, web | 1 comment | no trackbacks