Adding hosts to /etc/hosts on Leopard/Snow Leopard is a little simpler than earlier versions (see node:168)
Edit /private/etc/hosts
Run dscacheutil -flushcache
Since /etc is symlinked from /private/etc /private/etc/hosts is the same file as /etc/hosts