Newbie DNS totally confuse.

Discussion in 'General' started by Rock, May 23, 2006.

  1. Rock

    Rock New Member


    Total newbie to linux and ISPConfig here, please be patient.

    Been trying to find out more about ISPConfig but getting real confused here. Here are some of my questions.

    Basic ones to start with;
    1. What is the correct default page to see? (Apache home page, or a page that says welcome to!)
    2. What is Master DNS/ Slave DNS?
    3. What is SOA?
    4. What is DMZ?

    5. Senario question:
    I wish to host multiple sites from a dynamic ip. How are things suppose to work? Below is my understanding, correct me if I am wrong.

    I register 2 domain name with (eg,,
    From domain registar (, i set the Nameserver to point to DNS (, free dns service). From I point it to my external ip.
    On my router (ip, I forward it to my internal ip ( - my server, CentOS).

    Here is the problem;
    - Do I have to create a DNS record within ISPConfig DNS Manager for each domain that points to me? (ie. Enter the for SOA and give it an internal ip? eg. and
    - Do I need to create a new Master DNS and Slave DNS for each domain ( and
    - Under DNS Manager option tab, what should I set the Name Server 1 and Name Server 2 to be?
    - Under the ISP Manager, I should create a new site and set the ip address to the internal ip that is assigned to each domain? eg.> and>
    - And finally I have to set a Co-domain for each one site?

    6. Also a little confuse with the different directory.
    - /var/www/ and /usr/www/, what is their purpose and difference?

    Thanks in advance
  2. falko

    falko Super Moderator Howtoforge Staff

    If you have create the web site in ISPConfig, then it's welcome to

    Have a look here:
    Have a look here:

    No, because you're using an external DNS service. In this case you don't need the DNS Manager at all.

    Yes, use the internal IP address because they're known to Apache.

    You don't have to, but it makes sense that if you create the web site you add the Co-Domain (otherwise your visitors can use, but not

    These are just two directories, nothing more, nothing less. What's the problem with these?
  3. Rock

    Rock New Member

    I have created two web site in my ISPConfig, but I still get the apache web page. I checked the Vhost_ISPConfig, it looks okie.

    read somewhere in this forum to try execute the following (httpd -V and -t) so I did (got no idea what the command does.)

    when I execute httpd -V
    Do you mean to say I can run my own DNS if I want to? Is that a better way? If so, do I set NameServer under the Domain Registar ( to my own ip? I need two Nameserver, what else should I set?

    ISPConfig does not allow me to change the IP. It is the same as the server ip under Management server tab.
  4. falko

    falko Super Moderator Howtoforge Staff

    Please check if you have the line
    Include [...]Vhosts_ispconfig.conf 
    twice in your Apache configuration. If so, remove one of them and restart Apache.

    Yes, you can do it, but if GoDaddy provides you DNS management, you should use that. It saves you some trouble. ;)

    Which IP do you have there?
    What's the output of
  5. Rock

    Rock New Member

    Can't find that function in godaddy. Anyway, like to learn how to set my my DNS server too. If it is not too difficult.

    Under Management -> Server -> DNS tab,
    Does this act as a DNS server that broadcast all the domain names I have on my server to the internet?

    There is this Default Ns1 and Default Ns2, what should be the value? As in should it be an internal ip or external ip?

    My output for ifconfig:
    This is the ip I assign for my linux box within my network.
  6. falko

    falko Super Moderator Howtoforge Staff

    You enter two DNS servers here that should be authoritative for your domains. Typically that would be the ISPConfig system itself and then a second server (I for example have a second ISPConfig server that I enter here). You must enter FQDNs here like; IP addresses don't work.

    It's a FQDN, no IP address.
    Have a look here:

    Then you should have used during ISPConfig installation. This output:

    shows that you used
  7. Rock

    Rock New Member

    Can I run both ns1 and ns2 from the same machine?

    Is "Managed DNS" something like a license so that one can run our own DNS server? Or is it just a service for you to state the NameServer of your choice?

    How can I change the ip now? I would have to learn to change it later, when I move my machine to a data centre with a static ip.

    I also realised that I have 2 httpd directory located at /etc/httpd/ and /root/ispconfig/httpd/, does this mean I have 2 installation of the web server?
    For each of the website that I create, should I be getting a new entry of virtualhost in httpd.conf?
  8. falko

    falko Super Moderator Howtoforge Staff

    Yes, though it's not optimal. In this case you create only master records, no slave records (the slave records would be on the same machine anyway, so that makes no sense).

    It's a service I buy from my registry. I buy Managed DNS for my domain, so I can create ns1 - which I can then use to run my own name servers.

    Have a look here:

    /etc/httpd is for your main Apache, and /root/ispconfig/httpd is for ISPConfig's Apache (the one running on port 81). IT is used only for ISPConfig, not for your web sites, and if your main Apache fails you can still access ISPConfig.
  9. anton

    anton New Member

    Runnin 2 nameserver

    Hi Falko,

    I read your post about etc and have done as you said.

    I have created a domain and custom nameservers at the registrar.

    The ns are working fine. I would like to know how to either run the ns's on the one ispconfig machine so each time I create accounts they will both be authorative, or how to create the second ispconfig machine as seond ns only - and if you can explain briefly how i do that. Also would I have to create the entries for domains I want to register on each ispconfig server, and how would I avoid the mail www etc requests getting mixed up.

    Your help will be greatly appreciated.

  10. falko

    falko Super Moderator Howtoforge Staff

Share This Page