I don't know for OS X, off the top of my head, but in Mac OS 9, you can create a standard UNIX-format hosts file and save it somewhere on your hard drive. Then open the TCP/IP control panel, set it to Advanced user mode, after which a "Select Hosts File..." button will appear. Click it and choose your hosts file. Voila!
tooki
tooki