test website without dns

Discussion in 'General' started by dranach, Sep 16, 2011.

  1. dranach

    dranach New Member

    I have created a domain in sites, and added a website.

    I would like to test the website, even though dns is not yet ok.

    I tried




    but I had no success.

    Can anyone help me with the right URL please?

  2. Toucan

    Toucan New Member

    Your browser would normally make a dns query for the domain and then would know through an A record which ip the site would be served from and then the server would serve the correct site depending on the header information sent.

    Most computers are capable of bypassing the dns query if it already knows the correct ip. You can normally do this by editing the host file on your client computer.

    In most windows editions you can normally find the hosts file in:


    There are normally examples in this file that are commented out.
    Just add your own entry and save the file.

    For example:
    Code: yoursite.com

    Code: www.yoursite.com

    The browser will differentiate between the subdomain of www or without.

    This is a good method if you have access to the computer you want to preview from but not so good to explain to a client or otherwise.

    There are other more complicated methods.
  3. edge

    edge Active Member Moderator

    As explained on Webhostingtalk and here again by Toucan :)

    Add the domain in question with the IP of the ISPconfig server to your hosts file.
    Last edited: Sep 17, 2011
  4. dranach

    dranach New Member

    Following up on the solution given on webhostingtalk.nl, I should have marked it here as solved. My mistake.

    Anyway, thanks to you all for this provisional, but still rather elegant solution.
  5. edge

    edge Active Member Moderator

    No problem. We are here to help.

Share This Page