Hosts files?

TommyWillB

Registered
In OS 9 I am able to select a hosts file in the TCP/IP control panel, but I can find anything similar in 10.s's Network Preferences Panel.

Hoe do I get X to see a hosts file?
 

Solaris

Official something...
There is a /etc/hosts file in OS X, but is only used in single user mode.

In multiuser mode Netinfo looks after all that stuff.

Have a look in /machines/localhost in Netinfo. You can duplicate the localhost entry and change the values to suit.
 

TommyWillB

Registered
D'oh!!!

I deleted the machines branch and did not back it up before starting.

Can someone give me the list of keys and values that I should add back?
 

TommyWillB

Registered
Excellent!

Okay, I still have one outstanding issue:

I have a WinDoze server here at home that I use for ColdFusion Web work. It has multiple site domains (unregistered) that live on the same ip address.

When I set up NetInfo to map both of these domains to the same IP address, only one is visible in IE. The other is "Unfound".

Am I doing something wrong?

[localhost:~] tommywillb% nidump -r /machines /
{
"name" = ( "machines" );
CHILDREN = (
{
"ip_address" = ( "127.0.0.1" );
"name" = ( "localhost" );
"serves" = ( "./local" );
},
{
"ip_address" = ( "##.###.84.218" );
"name" = ( "w2k.<my domain>.com" );
"serves" = ( "./local" );
},
{
"ip_address" = ( "##.###.84.218" );
"name" = ( "karney.<my domain>.com" );
"serves" = ( "./local" );
},
{
"ip_address" = ( "255.255.255.255" );
"name" = ( "broadcasthost" );
"serves" = ( "../network" );
}
)
}
 

TommyWillB

Registered
When I do that it gives me an error sayging "Can't find process ID for 'nibindd'".

What does that mean?
 
Top