Lounge Network - Knowledge Base

  View Printer Friendly Version Search
KNOWLEDGE BASE HOME » 14. INFORMATION: CORPORATE & BUSINESS HOSTING Viewing Answer
[DOMAINS] How do I edit my hosts file?

From time to time you will need to edit your hosts file to ensure that your domain name is pointing to the correct website setup that you have. This is applicable to anyone who is transferring their website to us or who has just registered their domain name and don't want to wait for the DNS propagation to start work on their website.

The hosts file is an operation system (be it Linux or Windows) file which tells your computer to get the website files from the server that you specify in the hosts file.

This process shows you how to edit your hosts file:

  1. Locate your hosts file:
    - Windows 7 or newer / Vista: \system32\drivers\etc\hosts.
    - Linux and Mac OS X: /etc/hosts.
    - Windows XP: C:\windows\system32\drivers\etc
    - Windows NT / 2000 : C:\winnt\system32\drivers\etc
  2. Edit your hosts file: Depending on your user access rights to your operating system, open up Notepad and then open the hosts file found from the above respective directory. Please note, you need Administrator rights to edit this file.
  3. Add domain settings: You need to add following to your hosts file for our respective servers:


    LINUX SERVERS

    Standard Linux Web Cluster (PHP5.3, APC, Google Page Speed)
    Add the following line, replacing mydomain.co.nz with your actual domain name:
    119.47.114.163 www.mydomain.co.nz mydomain.co.nz

    Our PHP 5.3 cluster runs APC and Google Page Speed for extra performance.


    Alternative Linux Web Cluster (PHP5.2)
    Add the following line, replacing mydomain.co.nz with your actual domain name:
    119.47.114.165 www.mydomain.co.nz mydomain.co.nz

    Alternative Linux Web Cluster (PHP4)
    Add the following line, replacing mydomain.co.nz with your actual domain name:
    119.47.114.164 www.mydomain.co.nz mydomain.co.nz


    WINDOWS SERVERS

    Windows 1 server
    Add the following line, replacing mydomain.co.nz with your actual domain name:
    119.47.114.166 www.mydomain.co.nz mydomain.co.nz

    Windows 2 server
    Add the following line, replacing mydomain.co.nz with your actual domain name:
    119.47.114.167 www.mydomain.co.nz mydomain.co.nz

  4. Once you have added your respective line, save your hosts file and then open up www.mydomain.co.nz (replacing mydomain.co.nz with your actual domain name) in a browser which should be running through our servers.

KNOWLEDGE BASE HOME » 14. INFORMATION: CORPORATE & BUSINESS HOSTING Viewing Answer




Knowledgebase Manager

© Copyright Lounge Network 2001-2017