Urban Hafner : Tag apple, everything about apple http://bettong.net/tag/apple.rss en-us 40 Changing the order of lookups in lookupd <p>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&#8217;t work. It still resolved the IP address to the real one and not to <code>127.0.0.1</code>. After a while I found out that <code>lookupd</code> (the program responsible for the actual <span class="caps">DNS</span> look up) searched the <span class="caps">DNS</span> server before the Netinfo Manager entries!</p> <p>After searching for a long long time I found the article <a href="http://aplawrence.com/MacOSX/macosxlookupd.html">MacOSX lookupd and NetInfo</a> by A.P. Lawrence. Changing the order of the search path of <code>lookupd</code> boiled down to the following lines:</p> <div class="textmate-source twilight"> <pre class="textmate-source"><span class="source source_shell">sudo mkdir /etc/lookupd echo LookupOrder Cache NI DNS FF DS <span class="keyword keyword_operator keyword_operator_redirect keyword_operator_redirect_shell">&gt;</span> hosts sudo mv hosts /etc/lookupd sudo kill -1 <span class="string string_interpolated string_interpolated_backtick string_interpolated_backtick_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">`</span>cat /var/run/lookupd.pid<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">`</span></span></span></pre> </div> <p>This was done on Mac <span class="caps">OS X 10</span>.4.8 but according to the article from above it works on 10.2.6, too.</p> Tue, 28 Nov 2006 15:47:57 +0000 urn:uuid:2281bd2c-60a6-4958-b296-174443031103 urban@bettong.net (Urban Hafner) http://bettong.net/2006/11/28/changing-the-order-of-lookups-in-lookupd#comments web lookupd apple osx mac http://bettong.net/trackbacks?article_id=changing-the-order-of-lookups-in-lookupd&day=28&month=11&year=2006 http://bettong.net/2006/11/28/changing-the-order-of-lookups-in-lookupd CocoaDevHouse Munich <p><img src="http://bettong.net/files/cocoadevhousemunich.jpg" border="0" height="150" width="150" alt="cocoadevhousemunich.jpg" align="left" vspace="10" hspace="10" /> I went to the first <a href="http://wiki.cocoadevhouse.org/CocoaDevHouseMunich">CocoaDevHouse</a> in Munich today. It took place at the office of <a href="http://www.boinx.com/">Boinx Software</a>.</p> <p>We were planning on doing some hacking but at least I didn&#8217;t do much. That&#8217;s of course mostly because I&#8217;m not good at Cocoa programming, yet. But I had some nice chats with people who make there living with Cocoa programming.</p> <p>The Boinx office was really nice and they did a really good job at providing the right environment for happy geeks (Pizza, M&#38;Ms, ...). I also felt really important as this was the first time I got a badge ;)</p> <p>So, thanks to Boinx and <a href="http://www.codingmonkeys.de/">TheCodingMonkeys</a> for organizing this meeting and I hope for another meeting. Until then I assume I&#8217;ll have learnt some more Cocoa and will be able to do some real hacking.</p> Sat, 24 Jun 2006 21:27:49 +0000 urn:uuid:91876a72-70d2-4114-8a50-61881fe4f9ca urban@bettong.net (Urban Hafner) http://bettong.net/2006/06/24/cocoadevhouse-munich#comments munich cocoa apple macosx cocoadevhouse http://bettong.net/2006/06/24/cocoadevhouse-munich