With OS X, this is something so simple that doesn't "just work".
On one system, I copied my hosts file to /etc and made another file named "hosts" in my user's home directory with one line: "LookupOrder Cache NI FF DNS DS". This changes the order in which OS X looks for server addresses. This configuration is working, and it was simple.
Now I'm trying this with another Mac system and it doesn't work. It's possible that I forgot about some command I had entered on the system that is working. I looked on the Web, but there are so many different and incompatible ways of using a hosts file, and I want to use the method that is already working on the first system. Is there a command missing?