Editing Host File - Custom DNS

Sometimes we have clients who need to create content before their websites are live.  Okay, that is always a need.  

So, having them use a host file hack is the cleanest way for us to get sites setup, but not have to remember any odd links or amazon ec2 subdomains etc.

Custom Domain Pointer for your local machine:

These instructions require that you have administrator rights on your machine.

  1. Start - Run - Notepad (Hold "Shift" and Right Click on Notepad, choose "run as administrator") 
  2. File - Open
  3. Navigate to "C:\Windows\System32\drivers\etc"
  4. Open "Hosts"
  5. At the end of the file, on a new line enter "xx.xx.xx.xx  DomainName.Com"  where xx.xx.xx.xx is the IP address of the new site setup and DomainName.Com is the new site domain that is not setup yet.
  6. Save the File.
  7. Go to your browser and type in DomainName.Com
      

Post a comment