JF Possibilities, Inc.

Making computers work for you!



M
e
n
u

Mac OS X Host mapping

Mac OS X Host mapping

Submitted by jafcobend on Wed, 2007-04-11 19:39.

In this article I assume the user is familiar with the idea of a host name / domain name mapping. It is typically referred to as a "hosts" entry because the entry is made to a file usually called "hosts". I won't go into the details of what or why you might actually want to do this as it would require writing a document on how the Internet works, which is way beyond the scope of this simple HOW TO.

Setting up a mapping between an IP address and a host name can be accomplished in one of two ways. The first way may be easier for the average user while I find the second way simpler for me. Basically it would probably be easiest for any *nix (Unix, Linux, BSD, ...) familiar person.

Method 1:

  1. Login in as a user with "administer" privileges.
  2. Double-click your hard drive on the desktop.
  3. Go to "Applications / Utilities".
  4. Double-click "NetInfo Manager".
  5. Click the "lock" icon in the lower left corner of the window and provide the apropriate user name and password for admin privileges.
  6. Click on "machines" in the center column.
  7. Click the "new folder" icon.
  8. On the bottom half of the screen double-click on the entry in the value column on the same row as "name". It typically will read "new_directory".
  9. Change the value to the host name that you want (IE: www.mydomain.com)
  10. Click the "new folder" icon again and change the name to "serves". It should already be set to edit.
  11. Hit the [TAB] key to switch to the value column and type in "./local".
  12. Click the "new folder" icon again and enter "ip_address".
  13. Hit [TAB] and type in the IP address (IE: 192.168.1.1) to be used for this name.
  14. Click the "Domain | Save changes" menu item and then click the "update this copy" button.
  15. Repeat as many times as needed.
  16. Quit out of "NeInfo Manager".

Method 2 (for *nix people):

  1. Login as a user with
  2. Double-click your hard drive.
  3. Go to "Applications / Utilities".
  4. Double-click "Terminal".
  5. Type: sudo sh
  6. Enter your password.
  7. Type: vi /etc/hosts
  8. Being a *nix user going from here is the same as any other *nix system.
  9. Don't forget to logout and close the terminal application.