Subdoamins, DNS, Name servers etc

Discussion in 'Installation/Configuration' started by timaaarrreee, Apr 15, 2008.

  1. timaaarrreee

    timaaarrreee ISPConfig Developer ISPConfig Developer

    Hi all,

    I have very recently installed ispconfig on an debian system and have purchased a domain to go with it. I am wanting the server to give subdomains as a website to my friends But i have a few problems:

    1. I want to run my run my website the server itself but there is a shared IP page there (How do i access that page with FTP to put my own files there instead?)

    2. Will i need to do something with DNS records or something to get sub-dmaains to work for example leave the hostname to www and make the domain (user).khost.co.nz?

    3. How do i issue domains that offer email e.g pop.khost.co.nz and smtp.khost.co.nz?

    Hope that is not asking for too much :eek:
    Tim.
     
  2. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    1. create a email user and add the Administrator tick.
    There is only one Admin user per domain possible.
    If you want to create subdomains for your friends I advice you to create a new page and fill in the subdomain name under Hostname instead of "www"
    In this case you can create a Admin user for your friends and they can't login to your web

    To access just use www.yourdomain.tld as address your email account (e.g. web1_admin) as user and the password

    2. I would create the following entrys:
    yourdomain.tld A yourIP
    *.yourdomain.tld CNAME yourdomain.tld
    mail.yourdomain.tld MX 10 yourdomain.tld
    yourdomain.tld TXT v=spf1 a mx ~all

    3. if you have installed ISPConfig following the perfect setup then emails are available as soon as you create a email user.
    Address is whatever you want and have in your DNS. (e.g. mail.yourdomain.tld)
     
  3. timaaarrreee

    timaaarrreee ISPConfig Developer ISPConfig Developer

    thanks, im not sure what you mean with the "yourdomain.tld TXT v=spf1 a mx ~all" part how do i enter that.

    I also thought id let you know that i am using a dynamic IP so i have a dns service at afraid.org
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Take a look at http://www.howtoforge.com/ispconfig_dns_providerdomain_schlund

    In this case you don't need ISPConfig's DNS Manager at all. You need it only if you want to run your own DNS server.
     
  5. timaaarrreee

    timaaarrreee ISPConfig Developer ISPConfig Developer

  6. timaaarrreee

    timaaarrreee ISPConfig Developer ISPConfig Developer

    should i get a static IP to save the stress:eek:
     
  7. falko

    falko Super Moderator ISPConfig Developer

    There's no DNS record for that hostname:

    Code:
    server2:~# dig www.tim.khost.co.nz
    
    ; <<>> DiG 9.3.4 <<>> www.tim.khost.co.nz
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 5064
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;www.tim.khost.co.nz.           IN      A
    
    ;; AUTHORITY SECTION:
    khost.co.nz.            3600    IN      SOA     ns1.afraid.org. dnsadmin.afraid.org. 804170001 86400 7200 3600000 3600
    
    ;; Query time: 458 msec
    ;; SERVER: 213.191.92.84#53(213.191.92.84)
    ;; WHEN: Thu Apr 17 22:44:47 2008
    ;; MSG SIZE  rcvd: 96
    
    server2:~#
    Please create one.
     
  8. timaaarrreee

    timaaarrreee ISPConfig Developer ISPConfig Developer

    Will this have to ba a type A record and how will this link to my users onces it goes to my ip address?

    i have this subdomain working to my server but it just loads the default page of apache "It Works"
     
  9. timaaarrreee

    timaaarrreee ISPConfig Developer ISPConfig Developer

    Just the same as www.khost.co.nz
     
  10. falko

    falko Super Moderator ISPConfig Developer

    It can be an A or CNAME record.

    What do you mean with "link"?
     
  11. timaaarrreee

    timaaarrreee ISPConfig Developer ISPConfig Developer

    when i create an A record off my domain it simply does to my homepage instead of the users page. Thats what i mean by linking to their site.
     
  12. falko

    falko Super Moderator ISPConfig Developer

    What do you mean with "homepage" and "user's page"? Can you describe the problem in more detail?
     
  13. timaaarrreee

    timaaarrreee ISPConfig Developer ISPConfig Developer

    when i add a subdomain in my freedns.afraid.org (as an 'A' record) service it goes to the shared IP page instead of going the the users virtual site. I cant see how it supose to know which site to go to.

    HERE IS A DIAGRAM I MADE TO EXPLAIN:

    [​IMG]
     
  14. falko

    falko Super Moderator ISPConfig Developer

    You must create a web site for that subdomain in ISPConfig, or add this subdomain as a Co-Domain to an existing web site.
     

Share This Page