Views
Lookupd and Netinfo OS X
Set up for localhost virtual domains on Mac OS X, this doesn't cover the apache vhost setup, only the name lookup.
--
http://evolt.org/node/13138#comment-25920
Submitted by cmartin on April 30, 2002 - 12:37.
Ok, figured it out...Here's how to reorder name lookups in lookupd:
USE AT YOUR OWN RISK: READ 'man lookupd' FIRST!
Summary: As root, I created the directory /etc/lookupd, and created two files within that directory named 'global' and 'host' with the new lookup orders, and then restarted lookupd...
% su -
# mkdir /etc/lookupd
# cd /etc/lookupd
# echo "LookupOrder? CacheAgent? NIAgent? NILAgent?" > global
# echo "LookupOrder? CacheAgent? NIAgent? DNSAgent? NILAgent?" > hosts
# /System/Library/SystemConfiguration?/Kicker.bundle/Resources/restart-lookupd
That did it for me...now whatever network I connect to, my virtual hosts will resolve correctly.
Cheers!
-Chris
Ugh. Wiki links break this. --pf, Mon, 19 Feb 2007 19:24:21 -0600 reply
Ignore the ? marks in the "echo" lines!! See the evolt.org link... Also 'restart-lookupd' doesn't exist in OS X 10.4. I'm using
kill -HUP cat /var/run/lookupd.pid
and then
lookupd -flushcache
