there is another way to add a host file in OS 10.anything without going
into that scary terminal window. (I for one like the comfort of the GUI)
In applications/utilities find and launch the app "NetInfo Manager"
you will need to "unlock" at the lower left of the window with the admin
password to make changes.
this app is set up like the column browser of finder in 10.
go to / in the first window. machines in the second window. and
highlight localhost in the third window.
next duplicate these settings with the "duplicate" in the upper left.
now enter your ip in the ip field. enter the server name in the name
field and delete the servers field.
that is it. all from the comfort of the ol point and click interface.
this will work if you re running OS X, and running 9 in classic mode,
but not if you are launching from classic.
The Hosts file is found in the System's Preferences folder. This file is
parsed when Open Transport/TCP is initialized.
If you don't have a file there, you can create one with any text editor.
getting tech on ya:
Data entry must follow the format:
<domain><rr>[<comment>]
where <domain-name> is an absolute or Fully Qualified domain name
(which, however, need not be terminated by a dot, but must contain at
least one dot internally) and where
<rr>=[<ttl>][<class>]<type><rdata> OR [<class>][<ttl>]<type><rdata>
The only class currently supported is IN (Internet Domain); ttl (time to
live; indicates the record's configured lifetime) is in seconds; and
type can be A (host address), CNAME (canonical name of an alias), or NS
(name server). If ttl is not present the entry is assumed to have an
infinite lifetime; this may also be indicated by specifying a ttl of
minus-one (-1).
$INCLUDE and $ORIGIN are not supported.
short answer in classic...try something like:
apple.com A 130.43.2.2
hope this helps ya with the host thing.
-dennis