Accessing domain name but pointing it to your local machine
There’s a simple trick I used to point a www.SomebodysDomain.com to my local machine since I’m doing development. He had hardcoded his domain name into his application which causes problems for when you don’t want to test on the production server.
I just edited my hosts file and added the line in /etc/hosts (OSX)
127.0.0.1 www.SomebodysDomain.com