Possible Duplicate:
How to use DNS to redirect domain to specific port on my server
I want to trick my browser into going to localhost:3000 instead of xyz.com. I went into /etc/hosts on OS X 10.5 and added the following entry:
127.0.0.1:3000 xyz.com
That does not work but without specifying the port the trick works. Is there a way to do this specifying the port?