Make your hostname stick in MacOSX

Using MacOSX, when your ISP or wireless access point is changing your hostname, make it sticky editing /etc/hostconfig.

Add or change the following line in /etc/hostconfig to reflect your hostname:

HOSTNAME="your hostname"

You could use [Terminal.app](http://en.wikipedia.org/wiki/Apple_Terminal) to do this, but using Finder works too.

  1. Open a Finder window.
  2. Using the Menu: Go > Go to Folder..
  3. In the dialog that’s opening, type: /etc/
  4. /etc/ should now be available in your Finder window.
  5. Locate the hostconfig-file and open it using your favorite text editor (e.g. TextEdit)
  6. Add or change this line to reflect your hostname: HOSTNAME="your hostname"
  7. Save it, enter your password, and be happy.