Re: [Pyobjc-dev] Re: Editing /etc/hosts
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@ap...> - 2005-10-21 17:03:01
|
On Oct 21, 2005, at 7:36 AM, Zachery Bir wrote: > On 2005-10-20 21:41:53 -0400, Bob Ippolito <bo...@re...> said: >> /etc/hosts is only used when booting, NetInfo is used >> otherwise. You're still going to need admin to make any changes, >> but you'd be doing it through niload or one of the other NetInfo >> tools (niutil, nicl, blah blah). > > And yet, I make extensive use of /etc/hosts and it is picked up > immediately by net apps. I make lots of fake hostnames for local > virtual hosts in Apache, for instance. You can check the configuration of your machine with lookupd. FF means flat file. Note that if you hit ?, it'll show a list of commands. The commands look remarkably like ObjC methods that take no arguments. I found that amusing. lookupd -d Then: > configuration Array: "Configuration" ==> 8 objects [ Dictionary: "Global Configuration" ConfigSource: default LookupOrder: Cache NI DS MaxIdleServers: 4 MaxIdleThreads: 2 MaxThreads: 64 TimeToLive: 43200 Timeout: 30 ValidateCache: YES ValidationLatency: 15 _config_name: Global Configuration Dictionary: "Host Configuration" LookupOrder: Cache FF DNS NI DS _config_name: Host Configuration Dictionary: "Service Configuration" LookupOrder: Cache FF NI DS _config_name: Service Configuration Dictionary: "Protocol Configuration" LookupOrder: Cache FF NI DS _config_name: Protocol Configuration Dictionary: "Rpc Configuration" LookupOrder: Cache FF NI DS _config_name: Rpc Configuration Dictionary: "Group Configuration" TimeToLive: 60 ValidateCache: NO _config_name: Group Configuration Dictionary: "Initgroup Configuration" TimeToLive: 300 ValidateCache: NO _config_name: Initgroup Configuration Dictionary: "Network Configuration" LookupOrder: Cache FF DNS NI DS _config_name: Network Configuration ] <== 8 objects |