In Mac OS X 10.1.x, the host table was disabled so that it was quite difficult to add host aliases (eg: "flare" is the alias I use for 192.168.0.2 on my home network). It was possible to do it using NetInfo, but it was not very clear how to do it and was very error prone.
In OS X 10.2 (Jaguar), the hosts table is now active ... even though the hosts file itself says that it only works in single user console mode. So, if you're in a hurry to add hosts that Rendezvous can't find, then simply edit your /etc/hosts file (as root) and add lines for each host alias.
But wait, there's more. It turns out that there's an even better way to do it. Simply create a temporary hosts table file with the extras and then use the niload command to add your host entries directly to NetInfo. This is especially helpful because you can copy a hosts table from some other machine on your network and use niload to import all of the entries for you.
Credit for this hint goes to bnenning, who posted it as part of a response to my Apple Slasdot posting.
In OS X 10.2 (Jaguar), the hosts table is now active ... even though the hosts file itself says that it only works in single user console mode. So, if you're in a hurry to add hosts that Rendezvous can't find, then simply edit your /etc/hosts file (as root) and add lines for each host alias.
But wait, there's more. It turns out that there's an even better way to do it. Simply create a temporary hosts table file with the extras and then use the niload command to add your host entries directly to NetInfo. This is especially helpful because you can copy a hosts table from some other machine on your network and use niload to import all of the entries for you.
Credit for this hint goes to bnenning, who posted it as part of a response to my Apple Slasdot posting.
•
[22,601 views]

