DNS help needed

Discussion in 'Installation/Configuration' started by teves, Oct 20, 2006.

  1. teves

    teves Member


    I'm sorry but I am new to this.
    I have hired a root server and have installed ISPConfig on a SuSE 10.1 basis (following the 'perfect setup'). It's all up and running; everything fine so far.
    Now I wish to take the next step and put up a site to test if all is working well.
    My idea (perhaps a stupid one) was to just set up a site 'testsite.test' in ISPConfig and to let ISPConfig create the dns entries. As far as I understand it, these entries are just created locally (on the server), in this case into the file pri.testsite.test. I hoped I might be able to view the testpage in some way via my browser, but I can't find out how this could be done. Could someone give me a hint please?

    Thank you,
  2. sjau

    sjau Local Meanie Moderator

    Hello Tom

    you can easily view them.

    if you are on linux edit the /etc/hosts file and add the following:

    YOUR_SERVER_IP testsite.test
    YOUR_SERVER_IP pri.testsite.test
    YOUR_SERVER_IP www.testsite.test

    For windows it's the same but the file is at a different location ( http://accs-net.com/hosts/how_to_use_hosts.html )
    It will be found either in:


    You can use that to let your browser go to a certain IP and make a query there for the domain. This is especially usefull when the DNS hasn't propagated.

    More infos:

  3. teves

    teves Member


    thank you for your reply, but it doesn't seem to work for me. What exactly would I have to type into my browsers address line? After updating the hosts file I tried http://xxx.xxx.xxx.xxx/testsite.test (with xxx... being my servers IP address).

    Perhaps I've done wrong something else while creating the page.
    What is the difference between the 'server' and 'host' entries in the ISPConfig web creation page? Server is the name of my server, but what is host?

    Thank you,
  4. sjau

    sjau Local Meanie Moderator

    Ok, currently I'm playing a bit around with www.piraten-partei.ch.

    I have added the domain through my control panel (not ISPConfig as it came with Confixx).

    However since I don't own that domain so the nameservers aren't set to my server.

    So I needed to cheat. I entered to following in my hosts file:

    # Piratenpartei piraten-partei.ch www.piraten-partei.ch
    I saved the modified hosts file and entered in my browser "www.piraten-partei.ch" and the browser then firsts checks the hosts files, whether there is an entry in there.
    In my case there is now and so the browser queries the server for that domain. Since I apache does have it as virtual hosting apache will then server the correct information for the query of "www.piraten-partei.ch" on

    So, all you need to do is somehow add a domain in ISPConfig and then modify your hosts files. Then you can access it in your browser.
  5. falko

    falko Super Moderator ISPConfig Developer

    If your site is called testsite.test, you must use http://testsite.test in your browser.
  6. teves

    teves Member


    yes, it also works for me now..... :eek:
    You should have told me to alter the local hosts file...
    And I should have known... :eek:

    Thank you,

Share This Page